@activepieces/piece-bokio 0.0.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 (44) hide show
  1. package/README.md +7 -0
  2. package/package.json +28 -0
  3. package/src/index.d.ts +4 -0
  4. package/src/index.js +52 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/add-line-item-to-invoice.d.ts +14 -0
  7. package/src/lib/actions/add-line-item-to-invoice.js +63 -0
  8. package/src/lib/actions/add-line-item-to-invoice.js.map +1 -0
  9. package/src/lib/actions/create-a-journal-entry.d.ts +8 -0
  10. package/src/lib/actions/create-a-journal-entry.js +66 -0
  11. package/src/lib/actions/create-a-journal-entry.js.map +1 -0
  12. package/src/lib/actions/create-an-item.d.ts +10 -0
  13. package/src/lib/actions/create-an-item.js +56 -0
  14. package/src/lib/actions/create-an-item.js.map +1 -0
  15. package/src/lib/actions/create-customer.d.ts +18 -0
  16. package/src/lib/actions/create-customer.js +141 -0
  17. package/src/lib/actions/create-customer.js.map +1 -0
  18. package/src/lib/actions/create-invoice.d.ts +17 -0
  19. package/src/lib/actions/create-invoice.js +121 -0
  20. package/src/lib/actions/create-invoice.js.map +1 -0
  21. package/src/lib/actions/find-customer.d.ts +9 -0
  22. package/src/lib/actions/find-customer.js +74 -0
  23. package/src/lib/actions/find-customer.js.map +1 -0
  24. package/src/lib/actions/get-a-journal-entry.d.ts +6 -0
  25. package/src/lib/actions/get-a-journal-entry.js +30 -0
  26. package/src/lib/actions/get-a-journal-entry.js.map +1 -0
  27. package/src/lib/actions/get-an-invoice.d.ts +6 -0
  28. package/src/lib/actions/get-an-invoice.js +30 -0
  29. package/src/lib/actions/get-an-invoice.js.map +1 -0
  30. package/src/lib/actions/get-draft-invoice-by-customer-name.d.ts +8 -0
  31. package/src/lib/actions/get-draft-invoice-by-customer-name.js +71 -0
  32. package/src/lib/actions/get-draft-invoice-by-customer-name.js.map +1 -0
  33. package/src/lib/actions/update-an-invoice.d.ts +17 -0
  34. package/src/lib/actions/update-an-invoice.js +105 -0
  35. package/src/lib/actions/update-an-invoice.js.map +1 -0
  36. package/src/lib/common/auth.d.ts +4 -0
  37. package/src/lib/common/auth.js +45 -0
  38. package/src/lib/common/auth.js.map +1 -0
  39. package/src/lib/common/client.d.ts +3 -0
  40. package/src/lib/common/client.js +27 -0
  41. package/src/lib/common/client.js.map +1 -0
  42. package/src/lib/common/props.d.ts +9 -0
  43. package/src/lib/common/props.js +126 -0
  44. package/src/lib/common/props.js.map +1 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # pieces-bokio
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build pieces-bokio` to build the library.
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@activepieces/piece-bokio",
3
+ "version": "0.0.1",
4
+ "type": "commonjs",
5
+ "main": "./src/index.js",
6
+ "types": "./src/index.d.ts",
7
+ "dependencies": {
8
+ "@sinclair/typebox": "0.34.11",
9
+ "ai": "5.0.104",
10
+ "axios": "1.13.1",
11
+ "axios-retry": "4.4.1",
12
+ "deepmerge-ts": "7.1.0",
13
+ "form-data": "4.0.4",
14
+ "i18next": "23.13.0",
15
+ "mime-types": "2.1.35",
16
+ "nanoid": "3.3.8",
17
+ "semver": "7.6.0",
18
+ "socket.io-client": "4.8.1",
19
+ "tslib": "^2.3.0",
20
+ "zod": "4.1.13",
21
+ "@activepieces/pieces-common": "0.11.1",
22
+ "@activepieces/pieces-framework": "0.23.0",
23
+ "@activepieces/shared": "0.32.0"
24
+ },
25
+ "resolutions": {
26
+ "rollup": "npm:@rollup/wasm-node"
27
+ }
28
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare const bokio: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>>;
package/src/index.js ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bokio = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("./lib/common/auth");
7
+ const create_customer_1 = require("./lib/actions/create-customer");
8
+ const create_invoice_1 = require("./lib/actions/create-invoice");
9
+ const add_line_item_to_invoice_1 = require("./lib/actions/add-line-item-to-invoice");
10
+ const create_an_item_1 = require("./lib/actions/create-an-item");
11
+ const create_a_journal_entry_1 = require("./lib/actions/create-a-journal-entry");
12
+ const update_an_invoice_1 = require("./lib/actions/update-an-invoice");
13
+ const find_customer_1 = require("./lib/actions/find-customer");
14
+ const get_draft_invoice_by_customer_name_1 = require("./lib/actions/get-draft-invoice-by-customer-name");
15
+ const get_an_invoice_1 = require("./lib/actions/get-an-invoice");
16
+ const get_a_journal_entry_1 = require("./lib/actions/get-a-journal-entry");
17
+ const pieces_common_1 = require("@activepieces/pieces-common");
18
+ const shared_1 = require("@activepieces/shared");
19
+ exports.bokio = (0, pieces_framework_1.createPiece)({
20
+ displayName: 'Bokio',
21
+ auth: auth_1.bokioAuth,
22
+ minimumSupportedRelease: '0.36.1',
23
+ logoUrl: 'https://cdn.activepieces.com/pieces/bokio.png',
24
+ authors: ['sanket-a11y'],
25
+ categories: [shared_1.PieceCategory.ACCOUNTING],
26
+ description: 'Bokio is an accounting software platform which offers digital bookkeeping, invoicing, and financial management tools to help simplify accounting processes.',
27
+ actions: [
28
+ create_customer_1.createCustomer,
29
+ create_invoice_1.createInvoice,
30
+ add_line_item_to_invoice_1.addLineItemToInvoice,
31
+ create_an_item_1.createAnItem,
32
+ create_a_journal_entry_1.createAJournalEntry,
33
+ update_an_invoice_1.updateAnInvoice,
34
+ find_customer_1.findCustomer,
35
+ get_draft_invoice_by_customer_name_1.getDraftInvoiceByCustomerName,
36
+ get_an_invoice_1.getAnInvoice,
37
+ get_a_journal_entry_1.getAJournalEntry,
38
+ (0, pieces_common_1.createCustomApiCallAction)({
39
+ auth: auth_1.bokioAuth,
40
+ baseUrl: (auth) => {
41
+ return `https://api.bokio.se/v1/companies/${auth === null || auth === void 0 ? void 0 : auth.props.companyId}`;
42
+ },
43
+ authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
44
+ return {
45
+ Authorization: `Bearer ${auth === null || auth === void 0 ? void 0 : auth.props.api_key}`,
46
+ };
47
+ }),
48
+ }),
49
+ ],
50
+ triggers: [],
51
+ });
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/bokio/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,4CAA8C;AAC9C,mEAA+D;AAC/D,iEAA6D;AAC7D,qFAA8E;AAC9E,iEAA4D;AAC5D,iFAA2E;AAC3E,uEAAkE;AAClE,+DAA2D;AAC3D,yGAAiG;AACjG,iEAA4D;AAC5D,2EAAqE;AACrE,+DAAwE;AACxE,iDAAqD;AAExC,QAAA,KAAK,GAAG,IAAA,8BAAW,EAAC;IAC/B,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,gBAAS;IACf,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,+CAA+C;IACxD,OAAO,EAAE,CAAC,aAAa,CAAC;IACxB,UAAU,EAAE,CAAC,sBAAa,CAAC,UAAU,CAAC;IACtC,WAAW,EACT,6JAA6J;IAC/J,OAAO,EAAE;QACP,gCAAc;QACd,8BAAa;QACb,+CAAoB;QACpB,6BAAY;QACZ,4CAAmB;QACnB,mCAAe;QACf,4BAAY;QACZ,kEAA6B;QAC7B,6BAAY;QACZ,sCAAgB;QAChB,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,gBAAS;YACf,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;gBAChB,OAAO,qCAAqC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,SAAS,EAAE,CAAC;YACtE,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,OAAO,EAAE;iBAC/C,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const addLineItemToInvoice: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>, {
5
+ invoiceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
6
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
+ }>>;
9
+ itemType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
10
+ dynamicProps: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").CustomAuthProperty<{
11
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
12
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
+ }>>;
14
+ }>;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addLineItemToInvoice = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const client_1 = require("../common/client");
8
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
+ const props_1 = require("../common/props");
10
+ exports.addLineItemToInvoice = (0, pieces_framework_1.createAction)({
11
+ auth: auth_1.bokioAuth,
12
+ name: 'addLineItemToInvoice',
13
+ displayName: 'Add line item to invoice',
14
+ description: 'Adds a line item to an existing draft invoice',
15
+ props: {
16
+ invoiceId: props_1.invoiceIdDropdown,
17
+ itemType: pieces_framework_1.Property.StaticDropdown({
18
+ displayName: 'Item Type',
19
+ description: 'Type of the item',
20
+ required: true,
21
+ options: {
22
+ options: [
23
+ { label: 'Sales Item', value: 'salesItem' },
24
+ { label: 'Description Only Item', value: 'descriptionOnlyItem' },
25
+ ],
26
+ },
27
+ }),
28
+ dynamicProps: props_1.lineItemsProps,
29
+ },
30
+ run(context) {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
+ const { invoiceId, itemType, dynamicProps } = context.propsValue;
33
+ const { api_key, companyId } = context.auth.props;
34
+ const body = {
35
+ itemType,
36
+ description: dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['description'],
37
+ };
38
+ // Only add pricing fields for sales items
39
+ if (itemType === 'salesItem' && dynamicProps) {
40
+ body.quantity = dynamicProps['quantity'];
41
+ body.unitPrice = dynamicProps['unitPrice'];
42
+ if (dynamicProps['itemRefId']) {
43
+ body.itemRef = {
44
+ id: dynamicProps['itemRefId'],
45
+ };
46
+ }
47
+ if (dynamicProps['productType']) {
48
+ body.productType = dynamicProps['productType'];
49
+ }
50
+ if (dynamicProps['unitType']) {
51
+ body.unitType = dynamicProps['unitType'];
52
+ }
53
+ if (dynamicProps['taxRate'] !== undefined &&
54
+ dynamicProps['taxRate'] !== null) {
55
+ body.taxRate = dynamicProps['taxRate'];
56
+ }
57
+ }
58
+ const response = yield (0, client_1.makeRequest)(api_key, pieces_common_1.HttpMethod.POST, `/companies/${companyId}/invoices/${invoiceId}/line-items`, body);
59
+ return response;
60
+ });
61
+ },
62
+ });
63
+ //# sourceMappingURL=add-line-item-to-invoice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-line-item-to-invoice.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bokio/src/lib/actions/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AAO,GAAG;wBACb,EAAE,EAAE,YAAY,CAAC,WAAW,CAAC;qBAC9B,CAAC;gBACJ,CAAC;gBAED,IAAI,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;oBAChC,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;gBACjD,CAAC;gBAED,IAAI,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC7B,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;gBAC3C,CAAC;gBAED,IACE,YAAY,CAAC,SAAS,CAAC,KAAK,SAAS;oBACrC,YAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAChC,CAAC;oBACD,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;gBACzC,CAAC;YACH,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,EACP,0BAAU,CAAC,IAAI,EACf,cAAc,SAAS,aAAa,SAAS,aAAa,EAC1D,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const createAJournalEntry: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>, {
5
+ title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ date: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
+ items: import("@activepieces/pieces-framework").ArrayProperty<false>;
8
+ }>;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createAJournalEntry = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const client_1 = require("../common/client");
8
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
+ exports.createAJournalEntry = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.bokioAuth,
11
+ name: 'createAJournalEntry',
12
+ displayName: 'Create a journal entry',
13
+ description: 'Creates a new journal entry in Bokio',
14
+ props: {
15
+ title: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Title',
17
+ description: 'Title of the journal entry',
18
+ required: false,
19
+ }),
20
+ date: pieces_framework_1.Property.ShortText({
21
+ displayName: 'Date',
22
+ description: 'Journal entry date (YYYY-MM-DD)',
23
+ required: true,
24
+ }),
25
+ items: pieces_framework_1.Property.Array({
26
+ displayName: 'Items (JSON)',
27
+ description: 'Journal entry items as JSON array. Each item should have: account (account number), debit (optional), credit (optional)',
28
+ required: false,
29
+ properties: {
30
+ account: pieces_framework_1.Property.Number({
31
+ displayName: 'Account Number',
32
+ description: 'Account number for the journal entry item',
33
+ required: false,
34
+ }),
35
+ debit: pieces_framework_1.Property.Number({
36
+ displayName: 'Debit Amount',
37
+ description: 'Debit amount for the journal entry item',
38
+ required: false,
39
+ }),
40
+ credit: pieces_framework_1.Property.Number({
41
+ displayName: 'Credit Amount',
42
+ description: 'Credit amount for the journal entry item',
43
+ required: false,
44
+ }),
45
+ },
46
+ }),
47
+ },
48
+ run(context) {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
+ const { title, date, items } = context.propsValue;
51
+ const { api_key, companyId } = context.auth.props;
52
+ const body = {
53
+ date,
54
+ };
55
+ if (title) {
56
+ body.title = title;
57
+ }
58
+ if (items) {
59
+ body.items = items;
60
+ }
61
+ const response = yield (0, client_1.makeRequest)(api_key, pieces_common_1.HttpMethod.POST, `/companies/${companyId}/journal-entries`, body);
62
+ return response;
63
+ });
64
+ },
65
+ });
66
+ //# sourceMappingURL=create-a-journal-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-a-journal-entry.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bokio/src/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E,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;YAElD,MAAM,IAAI,GAAQ;gBAChB,IAAI;aACL,CAAC;YAEF,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACrB,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACrB,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,EACP,0BAAU,CAAC,IAAI,EACf,cAAc,SAAS,kBAAkB,EACzC,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const createAnItem: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>, {
5
+ itemType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
6
+ dynamicProps: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").CustomAuthProperty<{
7
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
+ }>>;
10
+ }>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createAnItem = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const client_1 = require("../common/client");
8
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
+ const props_1 = require("../common/props");
10
+ exports.createAnItem = (0, pieces_framework_1.createAction)({
11
+ auth: auth_1.bokioAuth,
12
+ name: 'createAnItem',
13
+ displayName: 'Create an item',
14
+ description: 'Creates a new item in Bokio',
15
+ props: {
16
+ itemType: pieces_framework_1.Property.StaticDropdown({
17
+ displayName: 'Item Type',
18
+ description: 'Type of the item',
19
+ required: true,
20
+ options: {
21
+ options: [
22
+ { label: 'Sales Item', value: 'salesItem' },
23
+ { label: 'Text', value: 'text' },
24
+ ],
25
+ },
26
+ }),
27
+ dynamicProps: props_1.lineItemsProps,
28
+ },
29
+ run(context) {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
+ const { itemType, dynamicProps } = context.propsValue;
32
+ const { api_key, companyId } = context.auth.props;
33
+ const body = {
34
+ itemType,
35
+ description: dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['description'],
36
+ };
37
+ if (dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['productType']) {
38
+ body.productType = dynamicProps['productType'];
39
+ }
40
+ if (dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['unitType']) {
41
+ body.unitType = dynamicProps['unitType'];
42
+ }
43
+ if ((dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['unitPrice']) !== undefined &&
44
+ (dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['unitPrice']) !== null) {
45
+ body.unitPrice = dynamicProps['unitPrice'];
46
+ }
47
+ if ((dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['taxRate']) !== undefined &&
48
+ (dynamicProps === null || dynamicProps === void 0 ? void 0 : dynamicProps['taxRate']) !== null) {
49
+ body.taxRate = dynamicProps['taxRate'];
50
+ }
51
+ const response = yield (0, client_1.makeRequest)(api_key, pieces_common_1.HttpMethod.POST, `/companies/${companyId}/items`, body);
52
+ return response;
53
+ });
54
+ },
55
+ });
56
+ //# sourceMappingURL=create-an-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-an-item.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bokio/src/lib/actions/create-an-item.ts"],"names":[],"mappings":";;;;AAAA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W,CAAC,MAAK,SAAS;gBACzC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,WAAW,CAAC,MAAK,IAAI,EACpC,CAAC;gBACD,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;YAC7C,CAAC;YAED,IACE,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,SAAS,CAAC,MAAK,SAAS;gBACvC,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,SAAS,CAAC,MAAK,IAAI,EAClC,CAAC;gBACD,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;YACzC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,EACP,0BAAU,CAAC,IAAI,EACf,cAAc,SAAS,QAAQ,EAC/B,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const createCustomer: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>, {
5
+ customerName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
6
+ type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
7
+ vatNumber: import("@activepieces/pieces-framework").ShortTextProperty<false>;
8
+ orgNumber: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
+ paymentTerms: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ customerNumber: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
+ phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
+ lin1: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
+ line2: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
+ zipCode: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
+ city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
17
+ country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
18
+ }>;
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
6
+ const auth_1 = require("../common/auth");
7
+ const client_1 = require("../common/client");
8
+ const pieces_common_1 = require("@activepieces/pieces-common");
9
+ exports.createCustomer = (0, pieces_framework_1.createAction)({
10
+ auth: auth_1.bokioAuth,
11
+ name: 'createCustomer',
12
+ displayName: 'Create Customer',
13
+ description: 'Creates a new customer in Bokio',
14
+ props: {
15
+ customerName: pieces_framework_1.Property.ShortText({
16
+ displayName: 'Customer Name',
17
+ description: 'Name of the customer',
18
+ required: true,
19
+ }),
20
+ type: pieces_framework_1.Property.StaticDropdown({
21
+ displayName: 'Customer Type',
22
+ description: 'Type of the customer',
23
+ required: true,
24
+ options: {
25
+ options: [
26
+ { label: 'Individual', value: 'private' },
27
+ { label: 'Company', value: 'company' },
28
+ ],
29
+ },
30
+ }),
31
+ vatNumber: pieces_framework_1.Property.ShortText({
32
+ displayName: 'VAT Number',
33
+ description: 'Customer VAT number',
34
+ required: false,
35
+ }),
36
+ orgNumber: pieces_framework_1.Property.ShortText({
37
+ displayName: 'Organization Number',
38
+ description: 'Customer organization number',
39
+ required: false,
40
+ }),
41
+ paymentTerms: pieces_framework_1.Property.ShortText({
42
+ displayName: 'Payment Terms',
43
+ description: 'Payment terms for the customer. Payment terms for the invoices. Payment terms can both take free text or days, in digits, until the payment is due.',
44
+ required: false,
45
+ }),
46
+ customerNumber: pieces_framework_1.Property.ShortText({
47
+ displayName: 'Customer Number',
48
+ description: 'Customer number (optional)',
49
+ required: false,
50
+ }),
51
+ email: pieces_framework_1.Property.ShortText({
52
+ displayName: 'Email',
53
+ description: 'Customer email address',
54
+ required: false,
55
+ }),
56
+ phone: pieces_framework_1.Property.ShortText({
57
+ displayName: 'Phone',
58
+ description: 'Customer phone number',
59
+ required: false,
60
+ }),
61
+ lin1: pieces_framework_1.Property.ShortText({
62
+ displayName: 'Address line 1',
63
+ description: 'Customer address line 1',
64
+ required: false,
65
+ }),
66
+ line2: pieces_framework_1.Property.ShortText({
67
+ displayName: 'Address line 2',
68
+ description: 'Customer address line 2',
69
+ required: false,
70
+ }),
71
+ zipCode: pieces_framework_1.Property.ShortText({
72
+ displayName: 'Zip Code',
73
+ description: 'Customer zip code',
74
+ required: false,
75
+ }),
76
+ city: pieces_framework_1.Property.ShortText({
77
+ displayName: 'City',
78
+ description: 'Customer city',
79
+ required: false,
80
+ }),
81
+ country: pieces_framework_1.Property.ShortText({
82
+ displayName: 'Country',
83
+ description: 'Customer country (ISO 3166-1 alpha-2 country code)',
84
+ required: false,
85
+ }),
86
+ },
87
+ run(context) {
88
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
89
+ const { customerName, type, vatNumber, orgNumber, paymentTerms, customerNumber, email, phone, lin1, line2, zipCode, city, country, } = context.propsValue;
90
+ const { api_key, companyId } = context.auth.props;
91
+ const body = {
92
+ name: customerName,
93
+ type: type,
94
+ };
95
+ if (vatNumber) {
96
+ body.vat_number = vatNumber;
97
+ }
98
+ if (orgNumber) {
99
+ body.org_number = orgNumber;
100
+ }
101
+ if (customerNumber) {
102
+ body.customer_number = customerNumber;
103
+ }
104
+ if (paymentTerms) {
105
+ body.payment_terms = paymentTerms;
106
+ }
107
+ const contactsDetails = {};
108
+ if (email) {
109
+ contactsDetails.email = email;
110
+ }
111
+ if (phone) {
112
+ contactsDetails.phone = phone;
113
+ }
114
+ if (Object.keys(contactsDetails).length > 0) {
115
+ body.contactsDetails = contactsDetails;
116
+ }
117
+ const addressDetails = {};
118
+ if (lin1) {
119
+ addressDetails.line_1 = lin1;
120
+ }
121
+ if (line2) {
122
+ addressDetails.line_2 = line2;
123
+ }
124
+ if (zipCode) {
125
+ addressDetails.zip_code = zipCode;
126
+ }
127
+ if (city) {
128
+ addressDetails.city = city;
129
+ }
130
+ if (country) {
131
+ addressDetails.country = country;
132
+ }
133
+ if (Object.keys(addressDetails).length > 0) {
134
+ body.address = addressDetails;
135
+ }
136
+ const response = yield (0, client_1.makeRequest)(api_key, pieces_common_1.HttpMethod.POST, `/companies/${companyId}/customers`, body);
137
+ return response;
138
+ });
139
+ },
140
+ });
141
+ //# sourceMappingURL=create-customer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-customer.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bokio/src/lib/actions/create-customer.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,yCAA2C;AAC3C,6CAA+C;AAC/C,+DAAyD;AAG5C,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,gBAAS;IACf,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACL,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE;oBACzC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;SACF,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qBAAqB;YAClC,QAAQ,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;YAC/B,IAAI,IAAI,EAAE,CAAC;gBACT,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;YAC/B,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACV,cAAc,CAAC,MAAM,GAAG,KAAK,CAAC;YAChC,CAAC;YACD,IAAI,OAAO,EAAE,CAAC;gBACZ,cAAc,CAAC,QAAQ,GAAG,OAAO,CAAC;YACpC,CAAC;YACD,IAAI,IAAI,EAAE,CAAC;gBACT,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;YAC7B,CAAC;YACD,IAAI,OAAO,EAAE,CAAC;gBACZ,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;YACnC,CAAC;YAED,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC3C,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC;YAChC,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAW,EAChC,OAAO,EACP,0BAAU,CAAC,IAAI,EACf,cAAc,SAAS,YAAY,EACnC,IAAI,CACL,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare const createInvoice: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>, {
5
+ invoiceType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
6
+ customerRef: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ invoiceDate: import("@activepieces/pieces-framework").ShortTextProperty<true>;
8
+ dueDate: import("@activepieces/pieces-framework").ShortTextProperty<true>;
9
+ orderNumberReference: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
+ currency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
+ currencyRate: import("@activepieces/pieces-framework").NumberProperty<false>;
12
+ itemType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
13
+ dynamicProps: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").CustomAuthProperty<{
14
+ companyId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
15
+ api_key: import("@activepieces/pieces-framework").ShortTextProperty<true>;
16
+ }>>;
17
+ }>;