Skip to content

Commit f906297

Browse files
committed
new sources
1 parent c168487 commit f906297

File tree

5 files changed

+164
-1
lines changed

5 files changed

+164
-1
lines changed

components/quickbooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/quickbooks",
3-
"version": "0.6.1",
3+
"version": "0.7.0",
44
"description": "Pipedream Quickbooks Components",
55
"main": "quickbooks.app.mjs",
66
"keywords": [
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import common from "../common/base.mjs";
2+
import sampleEmit from "./test-event.mjs";
3+
4+
export default {
5+
...common,
6+
key: "quickbooks-new-purchase-created",
7+
name: "New Purchase Created",
8+
description: "Emit new event when a new purchase is created.",
9+
version: "0.0.1",
10+
type: "source",
11+
dedupe: "unique",
12+
methods: {
13+
...common.methods,
14+
getQuery(lastDate) {
15+
return `select * from Purchase Where Metadata.CreateTime >= '${lastDate}' orderby Metadata.CreateTime desc`;
16+
},
17+
getFieldList() {
18+
return "Purchase";
19+
},
20+
getSummary(item) {
21+
return `New Purchase: ${item.Id}`;
22+
},
23+
},
24+
sampleEmit,
25+
};
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
export default {
2+
"AccountRef": {
3+
"value": "35",
4+
"name": "Checking"
5+
},
6+
"PaymentType": "Check",
7+
"TotalAmt": 1,
8+
"PrintStatus": "NotSet",
9+
"PurchaseEx": {
10+
"any": [
11+
{
12+
"name": "{http://schema.intuit.com/finance/v3}NameValue",
13+
"declaredType": "com.intuit.schema.finance.v3.NameValue",
14+
"scope": "javax.xml.bind.JAXBElement$GlobalScope",
15+
"value": {
16+
"Name": "TxnType",
17+
"Value": "3"
18+
},
19+
"nil": false,
20+
"globalScope": true,
21+
"typeSubstituted": false
22+
}
23+
]
24+
},
25+
"domain": "QBO",
26+
"sparse": false,
27+
"Id": "180",
28+
"SyncToken": "0",
29+
"MetaData": {
30+
"CreateTime": "2025-07-31T07:50:12-07:00",
31+
"LastUpdatedTime": "2025-07-31T07:50:12-07:00"
32+
},
33+
"TxnDate": "2025-07-31",
34+
"CurrencyRef": {
35+
"value": "USD",
36+
"name": "United States Dollar"
37+
},
38+
"Line": [
39+
{
40+
"Id": "1",
41+
"Amount": 1,
42+
"DetailType": "AccountBasedExpenseLineDetail",
43+
"AccountBasedExpenseLineDetail": {
44+
"AccountRef": {
45+
"value": "7",
46+
"name": "Advertising"
47+
},
48+
"BillableStatus": "NotBillable",
49+
"TaxCodeRef": {
50+
"value": "NON"
51+
}
52+
}
53+
}
54+
]
55+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import common from "../common/base.mjs";
2+
import sampleEmit from "./test-event.mjs";
3+
4+
export default {
5+
...common,
6+
key: "quickbooks-new-purchase-updated",
7+
name: "New Purchase Updated",
8+
description: "Emit new event when a purchase is updated.",
9+
version: "0.0.1",
10+
type: "source",
11+
dedupe: "unique",
12+
methods: {
13+
...common.methods,
14+
getQuery(lastDate) {
15+
return `select * from Purchase Where Metadata.LastUpdatedTime >= '${lastDate}' orderby Metadata.LastUpdatedTime desc`;
16+
},
17+
getFieldList() {
18+
return "Purchase";
19+
},
20+
getFieldDate() {
21+
return "LastUpdatedTime";
22+
},
23+
getSummary(item) {
24+
return `New Purchase Updated: ${item.Id}`;
25+
},
26+
},
27+
sampleEmit,
28+
};
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
export default {
2+
"AccountRef": {
3+
"value": "35",
4+
"name": "Checking"
5+
},
6+
"PaymentType": "Check",
7+
"TotalAmt": 1,
8+
"PrintStatus": "NotSet",
9+
"PurchaseEx": {
10+
"any": [
11+
{
12+
"name": "{http://schema.intuit.com/finance/v3}NameValue",
13+
"declaredType": "com.intuit.schema.finance.v3.NameValue",
14+
"scope": "javax.xml.bind.JAXBElement$GlobalScope",
15+
"value": {
16+
"Name": "TxnType",
17+
"Value": "3"
18+
},
19+
"nil": false,
20+
"globalScope": true,
21+
"typeSubstituted": false
22+
}
23+
]
24+
},
25+
"domain": "QBO",
26+
"sparse": false,
27+
"Id": "180",
28+
"SyncToken": "0",
29+
"MetaData": {
30+
"CreateTime": "2025-07-31T07:50:12-07:00",
31+
"LastUpdatedTime": "2025-07-31T07:55:00-00:00"
32+
},
33+
"TxnDate": "2025-07-31",
34+
"CurrencyRef": {
35+
"value": "USD",
36+
"name": "United States Dollar"
37+
},
38+
"Line": [
39+
{
40+
"Id": "1",
41+
"Amount": 1,
42+
"DetailType": "AccountBasedExpenseLineDetail",
43+
"AccountBasedExpenseLineDetail": {
44+
"AccountRef": {
45+
"value": "7",
46+
"name": "Advertising"
47+
},
48+
"BillableStatus": "NotBillable",
49+
"TaxCodeRef": {
50+
"value": "NON"
51+
}
52+
}
53+
}
54+
]
55+
}

0 commit comments

Comments
 (0)