@scopieflows/app-quickbooks 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +7 -0
  2. package/package.json +29 -0
  3. package/src/actions/create-expense.d.ts +8 -0
  4. package/src/actions/create-expense.js +192 -0
  5. package/src/actions/create-expense.js.map +1 -0
  6. package/src/actions/create-invoice.d.ts +11 -0
  7. package/src/actions/create-invoice.js +188 -0
  8. package/src/actions/create-invoice.js.map +1 -0
  9. package/src/actions/find-customer.d.ts +3 -0
  10. package/src/actions/find-customer.js +60 -0
  11. package/src/actions/find-customer.js.map +1 -0
  12. package/src/actions/find-invoice.d.ts +3 -0
  13. package/src/actions/find-invoice.js +60 -0
  14. package/src/actions/find-invoice.js.map +1 -0
  15. package/src/actions/find-payment.d.ts +3 -0
  16. package/src/actions/find-payment.js +53 -0
  17. package/src/actions/find-payment.js.map +1 -0
  18. package/src/index.d.ts +2 -0
  19. package/src/index.js +69 -0
  20. package/src/index.js.map +1 -0
  21. package/src/lib/common.d.ts +21 -0
  22. package/src/lib/common.js +12 -0
  23. package/src/lib/common.js.map +1 -0
  24. package/src/lib/types.d.ts +280 -0
  25. package/src/lib/types.js +3 -0
  26. package/src/lib/types.js.map +1 -0
  27. package/src/triggers/new-customer.d.ts +2 -0
  28. package/src/triggers/new-customer.js +78 -0
  29. package/src/triggers/new-customer.js.map +1 -0
  30. package/src/triggers/new-deposit.d.ts +2 -0
  31. package/src/triggers/new-deposit.js +78 -0
  32. package/src/triggers/new-deposit.js.map +1 -0
  33. package/src/triggers/new-expense.d.ts +2 -0
  34. package/src/triggers/new-expense.js +78 -0
  35. package/src/triggers/new-expense.js.map +1 -0
  36. package/src/triggers/new-invoice.d.ts +2 -0
  37. package/src/triggers/new-invoice.js +78 -0
  38. package/src/triggers/new-invoice.js.map +1 -0
  39. package/src/triggers/new-transfer.d.ts +2 -0
  40. package/src/triggers/new-transfer.js +78 -0
  41. package/src/triggers/new-transfer.js.map +1 -0
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.newExpense = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const index_1 = require("../index");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ const common_1 = require("../lib/common");
9
+ const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
10
+ const polling = {
11
+ strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
12
+ items(_a) {
13
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, lastFetchEpochMS }) {
14
+ var _b, _c, _d;
15
+ const { access_token } = auth;
16
+ const companyId = (_b = auth.props) === null || _b === void 0 ? void 0 : _b['companyId'];
17
+ const apiUrl = common_1.quickbooksCommon.getApiUrl(companyId);
18
+ const query = lastFetchEpochMS === 0
19
+ ? `SELECT * FROM Purchase ORDERBY Metadata.CreateTime DESC MAXRESULTS 10`
20
+ : `SELECT * FROM Purchase WHERE Metadata.CreateTime >= '${(0, dayjs_1.default)(lastFetchEpochMS).toISOString()}' ORDERBY Metadata.CreateTime DESC`;
21
+ const response = yield pieces_common_1.httpClient.sendRequest({
22
+ method: pieces_common_1.HttpMethod.GET,
23
+ url: `${apiUrl}/query`,
24
+ queryParams: { query: query, minorversion: '70' },
25
+ headers: {
26
+ Authorization: `Bearer ${access_token}`,
27
+ Accept: 'application/json',
28
+ },
29
+ });
30
+ const purchases = (_d = (_c = response.body.QueryResponse) === null || _c === void 0 ? void 0 : _c['Purchase']) !== null && _d !== void 0 ? _d : [];
31
+ return purchases.map((purchase) => {
32
+ var _a;
33
+ return ({
34
+ epochMilliSeconds: (0, dayjs_1.default)((_a = purchase.MetaData) === null || _a === void 0 ? void 0 : _a.CreateTime).valueOf(),
35
+ data: purchase,
36
+ });
37
+ });
38
+ });
39
+ },
40
+ };
41
+ exports.newExpense = (0, pieces_framework_1.createTrigger)({
42
+ auth: index_1.quickbooksAuth,
43
+ name: 'new_expense',
44
+ displayName: 'New Expense (Purchase)',
45
+ description: 'Triggers when an Expense (Purchase) is created.',
46
+ props: {},
47
+ type: pieces_framework_1.TriggerStrategy.POLLING,
48
+ onEnable(context) {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
+ yield pieces_common_1.pollingHelper.onEnable(polling, {
51
+ auth: context.auth,
52
+ store: context.store,
53
+ propsValue: context.propsValue,
54
+ });
55
+ });
56
+ },
57
+ onDisable(context) {
58
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
+ yield pieces_common_1.pollingHelper.onDisable(polling, {
60
+ auth: context.auth,
61
+ store: context.store,
62
+ propsValue: context.propsValue,
63
+ });
64
+ });
65
+ },
66
+ test(context) {
67
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
68
+ return yield pieces_common_1.pollingHelper.test(polling, context);
69
+ });
70
+ },
71
+ run(context) {
72
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
+ return yield pieces_common_1.pollingHelper.poll(polling, context);
74
+ });
75
+ },
76
+ sampleData: undefined,
77
+ });
78
+ //# sourceMappingURL=new-expense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-expense.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/quickbooks/src/triggers/new-expense.ts"],"names":[],"mappings":";;;;AAAA,oEAKuC;AACvC,oCAA0C;AAC1C,8DAMoC;AACpC,0CAA2E;AAE3E,0DAA0B;AAE1B,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAC5B,KAAK;qEAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE;;YACpC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;YAC9B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,KAAK,0CAAG,WAAW,CAAW,CAAC;YAEtD,MAAM,MAAM,GAAG,yBAAgB,CAAC,SAAS,CAAC,SAAU,CAAC,C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B,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,MAAM,6BAAa,CAAC,SAAS,CAAC,OAAO,EAAE;gBACrC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;IACK,IAAI,CAAC,OAAO;;YAChB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC;KAAA;IACD,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { TriggerStrategy } from '@scopieflows/pieces-framework';
2
+ export declare const newInvoice: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}>;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.newInvoice = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const index_1 = require("../index");
7
+ const pieces_common_1 = require("@scopieflows/pieces-common");
8
+ const common_1 = require("../lib/common");
9
+ const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
10
+ const polling = {
11
+ strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
12
+ items(_a) {
13
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, lastFetchEpochMS }) {
14
+ var _b, _c, _d;
15
+ const { access_token } = auth;
16
+ const companyId = (_b = auth.props) === null || _b === void 0 ? void 0 : _b['companyId'];
17
+ const apiUrl = common_1.quickbooksCommon.getApiUrl(companyId);
18
+ const query = lastFetchEpochMS === 0
19
+ ? `SELECT * FROM Invoice ORDERBY Metadata.CreateTime DESC MAXRESULTS 10`
20
+ : `SELECT * FROM Invoice WHERE Metadata.CreateTime >= '${(0, dayjs_1.default)(lastFetchEpochMS).toISOString()}' ORDERBY Metadata.CreateTime DESC`;
21
+ const response = yield pieces_common_1.httpClient.sendRequest({
22
+ method: pieces_common_1.HttpMethod.GET,
23
+ url: `${apiUrl}/query`,
24
+ queryParams: { query: query, minorversion: '70' },
25
+ headers: {
26
+ Authorization: `Bearer ${access_token}`,
27
+ Accept: 'application/json',
28
+ },
29
+ });
30
+ const invoices = (_d = (_c = response.body.QueryResponse) === null || _c === void 0 ? void 0 : _c['Invoice']) !== null && _d !== void 0 ? _d : [];
31
+ return invoices.map((invoice) => {
32
+ var _a;
33
+ return ({
34
+ epochMilliSeconds: (0, dayjs_1.default)((_a = invoice.MetaData) === null || _a === void 0 ? void 0 : _a.CreateTime).valueOf(),
35
+ data: invoice,
36
+ });
37
+ });
38
+ });
39
+ },
40
+ };
41
+ exports.newInvoice = (0, pieces_framework_1.createTrigger)({
42
+ auth: index_1.quickbooksAuth,
43
+ name: 'new_invoice',
44
+ displayName: 'New Invoice',
45
+ description: 'Triggers when an invoice is created .',
46
+ props: {},
47
+ type: pieces_framework_1.TriggerStrategy.POLLING,
48
+ onEnable(context) {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
+ yield pieces_common_1.pollingHelper.onEnable(polling, {
51
+ auth: context.auth,
52
+ store: context.store,
53
+ propsValue: context.propsValue,
54
+ });
55
+ });
56
+ },
57
+ onDisable(context) {
58
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
+ yield pieces_common_1.pollingHelper.onDisable(polling, {
60
+ auth: context.auth,
61
+ store: context.store,
62
+ propsValue: context.propsValue,
63
+ });
64
+ });
65
+ },
66
+ test(context) {
67
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
68
+ return yield pieces_common_1.pollingHelper.test(polling, context);
69
+ });
70
+ },
71
+ run(context) {
72
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
+ return yield pieces_common_1.pollingHelper.poll(polling, context);
74
+ });
75
+ },
76
+ sampleData: undefined,
77
+ });
78
+ //# sourceMappingURL=new-invoice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-invoice.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/quickbooks/src/triggers/new-invoice.ts"],"names":[],"mappings":";;;;AAAA,oEAKuC;AACvC,oCAA0C;AAC1C,8DAMoC;AACpC,0CAA2E;AAC3E,0DAA0B;AAG1B,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAC5B,KAAK;qEAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE;;YACpC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;YAC9B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,KAAK,0CAAG,WAAW,CAAW,CAAC;YAEtD,MAAM,MAAM,GAAG,yBAAgB,CAAC,SAAS,CAAC,SAAU,CAAC,CAAC;YAEtD,MAAM,KAAK,GACT,gBAAgB,KAAK,CAAC;gBACpB,CAAC,CAAC,sEAAsE;gBACxE,CAAC,CAAC,uDAAuD,IAAA,eAAK,EAC1D,gBAAgB,CACjB,CAAC,WAAW,EAAE,oCAAoC,CAAC;YAE1D,MAAM,Q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AAK,EAAE,OAAO,CAAC,KAAK;gBACpB,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;IACK,IAAI,CAAC,OAAO;;YAChB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,CAAC;KAAA;IACD,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { TriggerStrategy } from '@scopieflows/pieces-framework';
2
+ export declare const newTransfer: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").OAuth2Property<import("@scopieflows/pieces-framework").OAuth2Props>, {}>;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.newTransfer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const index_1 = require("../index");
7
+ const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
8
+ const pieces_common_1 = require("@scopieflows/pieces-common");
9
+ const common_1 = require("../lib/common");
10
+ const polling = {
11
+ strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
12
+ items(_a) {
13
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, lastFetchEpochMS }) {
14
+ var _b, _c, _d;
15
+ const { access_token } = auth;
16
+ const companyId = (_b = auth.props) === null || _b === void 0 ? void 0 : _b['companyId'];
17
+ const apiUrl = common_1.quickbooksCommon.getApiUrl(companyId);
18
+ const query = lastFetchEpochMS === 0
19
+ ? `SELECT * FROM Transfer ORDERBY Metadata.CreateTime DESC MAXRESULTS 10`
20
+ : `SELECT * FROM Transfer WHERE Metadata.CreateTime >= '${(0, dayjs_1.default)(lastFetchEpochMS).toISOString()}' ORDERBY Metadata.CreateTime DESC`;
21
+ const response = yield pieces_common_1.httpClient.sendRequest({
22
+ method: pieces_common_1.HttpMethod.GET,
23
+ url: `${apiUrl}/query`,
24
+ queryParams: { query: query, minorversion: '70' },
25
+ headers: {
26
+ Authorization: `Bearer ${access_token}`,
27
+ Accept: 'application/json',
28
+ },
29
+ });
30
+ const transers = (_d = (_c = response.body.QueryResponse) === null || _c === void 0 ? void 0 : _c['Transfer']) !== null && _d !== void 0 ? _d : [];
31
+ return transers.map((transfer) => {
32
+ var _a;
33
+ return ({
34
+ epochMilliSeconds: (0, dayjs_1.default)((_a = transfer.MetaData) === null || _a === void 0 ? void 0 : _a.CreateTime).valueOf(),
35
+ data: transfer,
36
+ });
37
+ });
38
+ });
39
+ },
40
+ };
41
+ exports.newTransfer = (0, pieces_framework_1.createTrigger)({
42
+ auth: index_1.quickbooksAuth,
43
+ name: 'new_transfer',
44
+ displayName: 'New Transfer',
45
+ description: 'Triggers when a Transfer is created.',
46
+ props: {},
47
+ type: pieces_framework_1.TriggerStrategy.POLLING,
48
+ onEnable(context) {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
+ yield pieces_common_1.pollingHelper.onEnable(polling, {
51
+ auth: context.auth,
52
+ store: context.store,
53
+ propsValue: context.propsValue,
54
+ });
55
+ });
56
+ },
57
+ onDisable(context) {
58
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
+ yield pieces_common_1.pollingHelper.onDisable(polling, {
60
+ auth: context.auth,
61
+ store: context.store,
62
+ propsValue: context.propsValue,
63
+ });
64
+ });
65
+ },
66
+ test(context) {
67
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
68
+ return yield pieces_common_1.pollingHelper.test(polling, context);
69
+ });
70
+ },
71
+ run(context) {
72
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
+ return yield pieces_common_1.pollingHelper.poll(polling, context);
74
+ });
75
+ },
76
+ sampleData: undefined,
77
+ });
78
+ //# sourceMappingURL=new-transfer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-transfer.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/quickbooks/src/triggers/new-transfer.ts"],"names":[],"mappings":";;;;AAAA,oEAKuC;AACvC,oCAA0C;AAC1C,0DAA0B;AAC1B,8DAMoC;AACpC,0CAA2E;AAG3E,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAC5B,KAAK;qEAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE;;YACpC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;YAC9B,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,KAAK,0CAAG,WAAW,CAAW,CAAC;YAEtD,MAAM,MAAM,GAAG,yBAAgB,CAAC,SAAS,CAAC,SAAU,CAAC,CAAC;YAEtD,MAAM,KAAK,GACT,gBAAgB,KAAK,CAAC;gBACpB,CAAC,CAAC,uEAAuE;gBACzE,CAAC,CAAC,wDAAwD,IAAA,eAAK,EAC3D,gBAAgB,CACjB,CAAC,WAAW,EAAE,oCAAoC,CAAC;YAE1D,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAE3C;gBACA,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,MAAM,QAAQ;gBACtB,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,E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