@activepieces/piece-bexio 0.1.4 → 0.1.6

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 (107) hide show
  1. package/package.json +7 -23
  2. package/src/index.js +13 -133
  3. package/README.md +0 -7
  4. package/src/index.d.ts +0 -2
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/create-company.d.ts +0 -27
  7. package/src/lib/actions/create-company.js +0 -457
  8. package/src/lib/actions/create-company.js.map +0 -1
  9. package/src/lib/actions/create-file.d.ts +0 -3
  10. package/src/lib/actions/create-file.js +0 -44
  11. package/src/lib/actions/create-file.js.map +0 -1
  12. package/src/lib/actions/create-manual-entry.d.ts +0 -6
  13. package/src/lib/actions/create-manual-entry.js +0 -422
  14. package/src/lib/actions/create-manual-entry.js.map +0 -1
  15. package/src/lib/actions/create-person.d.ts +0 -29
  16. package/src/lib/actions/create-person.js +0 -473
  17. package/src/lib/actions/create-person.js.map +0 -1
  18. package/src/lib/actions/create-product.d.ts +0 -33
  19. package/src/lib/actions/create-product.js +0 -523
  20. package/src/lib/actions/create-product.js.map +0 -1
  21. package/src/lib/actions/create-project.d.ts +0 -16
  22. package/src/lib/actions/create-project.js +0 -312
  23. package/src/lib/actions/create-project.js.map +0 -1
  24. package/src/lib/actions/create-sales-invoice.d.ts +0 -24
  25. package/src/lib/actions/create-sales-invoice.js +0 -611
  26. package/src/lib/actions/create-sales-invoice.js.map +0 -1
  27. package/src/lib/actions/create-sales-order.d.ts +0 -24
  28. package/src/lib/actions/create-sales-order.js +0 -638
  29. package/src/lib/actions/create-sales-order.js.map +0 -1
  30. package/src/lib/actions/create-sales-quote.d.ts +0 -27
  31. package/src/lib/actions/create-sales-quote.js +0 -662
  32. package/src/lib/actions/create-sales-quote.js.map +0 -1
  33. package/src/lib/actions/create-time-tracking.d.ts +0 -16
  34. package/src/lib/actions/create-time-tracking.js +0 -376
  35. package/src/lib/actions/create-time-tracking.js.map +0 -1
  36. package/src/lib/actions/export-invoice-pdf.d.ts +0 -4
  37. package/src/lib/actions/export-invoice-pdf.js +0 -90
  38. package/src/lib/actions/export-invoice-pdf.js.map +0 -1
  39. package/src/lib/actions/find-account.d.ts +0 -5
  40. package/src/lib/actions/find-account.js +0 -103
  41. package/src/lib/actions/find-account.js.map +0 -1
  42. package/src/lib/actions/find-company.d.ts +0 -7
  43. package/src/lib/actions/find-company.js +0 -156
  44. package/src/lib/actions/find-company.js.map +0 -1
  45. package/src/lib/actions/find-country.d.ts +0 -6
  46. package/src/lib/actions/find-country.js +0 -121
  47. package/src/lib/actions/find-country.js.map +0 -1
  48. package/src/lib/actions/find-person.d.ts +0 -8
  49. package/src/lib/actions/find-person.js +0 -171
  50. package/src/lib/actions/find-person.js.map +0 -1
  51. package/src/lib/actions/find-product.d.ts +0 -6
  52. package/src/lib/actions/find-product.js +0 -120
  53. package/src/lib/actions/find-product.js.map +0 -1
  54. package/src/lib/actions/search-invoice.d.ts +0 -6
  55. package/src/lib/actions/search-invoice.js +0 -136
  56. package/src/lib/actions/search-invoice.js.map +0 -1
  57. package/src/lib/actions/search-order.d.ts +0 -6
  58. package/src/lib/actions/search-order.js +0 -135
  59. package/src/lib/actions/search-order.js.map +0 -1
  60. package/src/lib/actions/search-quote.d.ts +0 -6
  61. package/src/lib/actions/search-quote.js +0 -136
  62. package/src/lib/actions/search-quote.js.map +0 -1
  63. package/src/lib/actions/send-sales-invoice.d.ts +0 -8
  64. package/src/lib/actions/send-sales-invoice.js +0 -106
  65. package/src/lib/actions/send-sales-invoice.js.map +0 -1
  66. package/src/lib/actions/update-company.d.ts +0 -28
  67. package/src/lib/actions/update-company.js +0 -502
  68. package/src/lib/actions/update-company.js.map +0 -1
  69. package/src/lib/actions/update-person.d.ts +0 -30
  70. package/src/lib/actions/update-person.js +0 -520
  71. package/src/lib/actions/update-person.js.map +0 -1
  72. package/src/lib/actions/update-product.d.ts +0 -33
  73. package/src/lib/actions/update-product.js +0 -552
  74. package/src/lib/actions/update-product.js.map +0 -1
  75. package/src/lib/common/client.d.ts +0 -12
  76. package/src/lib/common/client.js +0 -62
  77. package/src/lib/common/client.js.map +0 -1
  78. package/src/lib/common/index.d.ts +0 -4
  79. package/src/lib/common/index.js +0 -8
  80. package/src/lib/common/index.js.map +0 -1
  81. package/src/lib/common/props.d.ts +0 -13
  82. package/src/lib/common/props.js +0 -116
  83. package/src/lib/common/props.js.map +0 -1
  84. package/src/lib/common/types.d.ts +0 -88
  85. package/src/lib/common/types.js +0 -4
  86. package/src/lib/common/types.js.map +0 -1
  87. package/src/lib/triggers/new-order.d.ts +0 -10
  88. package/src/lib/triggers/new-order.js +0 -147
  89. package/src/lib/triggers/new-order.js.map +0 -1
  90. package/src/lib/triggers/new-product.d.ts +0 -2
  91. package/src/lib/triggers/new-product.js +0 -106
  92. package/src/lib/triggers/new-product.js.map +0 -1
  93. package/src/lib/triggers/new-project.d.ts +0 -10
  94. package/src/lib/triggers/new-project.js +0 -136
  95. package/src/lib/triggers/new-project.js.map +0 -1
  96. package/src/lib/triggers/new-quote.d.ts +0 -10
  97. package/src/lib/triggers/new-quote.js +0 -148
  98. package/src/lib/triggers/new-quote.js.map +0 -1
  99. package/src/lib/triggers/new-sales-invoice.d.ts +0 -10
  100. package/src/lib/triggers/new-sales-invoice.js +0 -148
  101. package/src/lib/triggers/new-sales-invoice.js.map +0 -1
  102. package/src/lib/triggers/new-updated-company.d.ts +0 -2
  103. package/src/lib/triggers/new-updated-company.js +0 -117
  104. package/src/lib/triggers/new-updated-company.js.map +0 -1
  105. package/src/lib/triggers/new-updated-person.d.ts +0 -2
  106. package/src/lib/triggers/new-updated-person.js +0 -117
  107. package/src/lib/triggers/new-updated-person.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/common/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,uBAAuB;IAChC,WAAW,EAAE,KAAK;CACnB,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const bexioCommonProps: {
2
- account: (options: {
3
- displayName: string;
4
- description?: string;
5
- required: boolean;
6
- }) => import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
7
- tax: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- currency: (options: {
9
- displayName: string;
10
- description?: string;
11
- required: boolean;
12
- }) => import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
13
- };
@@ -1,116 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bexioCommonProps = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const client_1 = require("./client");
7
- const __1 = require("../..");
8
- exports.bexioCommonProps = {
9
- account: (options) => {
10
- return pieces_framework_1.Property.Dropdown({
11
- auth: __1.bexioAuth,
12
- displayName: options.displayName,
13
- description: options.description,
14
- required: options.required,
15
- refreshers: [],
16
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
17
- if (!auth) {
18
- return {
19
- disabled: true,
20
- placeholder: 'Connect your Bexio account first',
21
- options: [],
22
- };
23
- }
24
- try {
25
- const client = new client_1.BexioClient(auth);
26
- const accounts = yield client.get('/accounts');
27
- return {
28
- disabled: false,
29
- options: accounts.map((account) => ({
30
- label: `${account.account_no} - ${account.name}`,
31
- value: account.id,
32
- })),
33
- };
34
- }
35
- catch (error) {
36
- return {
37
- disabled: true,
38
- placeholder: 'Failed to load accounts',
39
- options: [],
40
- };
41
- }
42
- }),
43
- });
44
- },
45
- tax: pieces_framework_1.Property.Dropdown({
46
- auth: __1.bexioAuth,
47
- displayName: 'Tax',
48
- description: 'Select a tax rate',
49
- required: false,
50
- refreshers: [],
51
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
52
- if (!auth) {
53
- return {
54
- disabled: true,
55
- placeholder: 'Connect your Bexio account first',
56
- options: [],
57
- };
58
- }
59
- try {
60
- const client = new client_1.BexioClient(auth);
61
- const taxes = yield client.get('/taxes');
62
- return {
63
- disabled: false,
64
- options: taxes.map((tax) => ({
65
- label: `${tax.name} (${tax.percentage}%)`,
66
- value: tax.id,
67
- })),
68
- };
69
- }
70
- catch (error) {
71
- return {
72
- disabled: true,
73
- placeholder: 'Failed to load taxes',
74
- options: [],
75
- };
76
- }
77
- }),
78
- }),
79
- currency: (options) => {
80
- return pieces_framework_1.Property.Dropdown({
81
- auth: __1.bexioAuth,
82
- displayName: options.displayName,
83
- description: options.description,
84
- required: options.required,
85
- refreshers: [],
86
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
87
- if (!auth) {
88
- return {
89
- disabled: true,
90
- placeholder: 'Connect your Bexio account first',
91
- options: [],
92
- };
93
- }
94
- try {
95
- const client = new client_1.BexioClient(auth);
96
- const currencies = yield client.get('/3.0/currencies');
97
- return {
98
- disabled: false,
99
- options: currencies.map((currency) => ({
100
- label: currency.name,
101
- value: currency.id,
102
- })),
103
- };
104
- }
105
- catch (error) {
106
- return {
107
- disabled: true,
108
- placeholder: 'Failed to load currencies',
109
- options: [],
110
- };
111
- }
112
- }),
113
- });
114
- },
115
- };
116
- //# sourceMappingURL=props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/common/props.ts"],"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C;oBACV,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,kCAAkC;wBAC/C,OAAO,EAAE,EAAE;qBACZ,CAAC;gBACJ,CAAC;gBAED,IAAI,CAAC;oBACH,MAAM,MAAM,GAAG,IAAI,oBAAW,CAAC,IAAI,CAAC,CAAC;oBACrC,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,GAAG,CAAkB,iBAAiB,CAAC,CAAC;oBAExE,OAAO;wBACL,QAAQ,EAAE,KAAK;wBACf,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;4BACrC,KAAK,EAAE,QAAQ,CAAC,IAAI;4BACpB,KAAK,EAAE,QAAQ,CAAC,EAAE;yBACnB,CAAC,CAAC;qBACJ,CAAC;gBACJ,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,2BAA2B;wBACxC,OAAO,EAAE,EAAE;qBACZ,CAAC;gBACJ,CAAC;YACH,CAAC,CAAA;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -1,88 +0,0 @@
1
- export interface BexioContact {
2
- id: number;
3
- nr: string;
4
- contact_type_id: number;
5
- name_1: string;
6
- name_2?: string;
7
- salutation_id?: number;
8
- salutation_form?: number;
9
- title_id?: number;
10
- birthday?: string;
11
- address?: string;
12
- postcode?: string;
13
- city?: string;
14
- country_id?: number;
15
- mail?: string;
16
- mail_second?: string;
17
- phone_fixed?: string;
18
- phone_fixed_second?: string;
19
- phone_mobile?: string;
20
- fax?: string;
21
- url?: string;
22
- skype_name?: string;
23
- remarks?: string;
24
- language_id?: number;
25
- contact_group_ids?: string;
26
- contact_branch_ids?: string;
27
- user_id?: number;
28
- owner_id?: number;
29
- }
30
- export interface BexioCompany {
31
- id: number;
32
- name: string;
33
- address?: string;
34
- address_nr?: string;
35
- postcode?: string;
36
- city?: string;
37
- country_id?: number;
38
- legal_form?: string;
39
- }
40
- export interface BexioAccount {
41
- id: number;
42
- account_no: string;
43
- name: string;
44
- account_type: number;
45
- }
46
- export interface BexioTax {
47
- id: number;
48
- name: string;
49
- percentage: string;
50
- }
51
- export interface BexioCurrency {
52
- id: number;
53
- name: string;
54
- }
55
- export interface BexioManualEntry {
56
- debit_account_id?: number;
57
- credit_account_id?: number;
58
- tax_id?: number;
59
- tax_account_id?: number;
60
- description?: string;
61
- amount?: number;
62
- currency_id?: number;
63
- currency_factor?: number;
64
- }
65
- export interface BexioManualEntryResponse {
66
- id: number;
67
- type: 'manual_single_entry' | 'manual_compound_entry' | 'manual_group_entry';
68
- date: string;
69
- reference_nr?: string;
70
- created_by_user_id?: number;
71
- edited_by_user_id?: number;
72
- entries: BexioManualEntry[];
73
- is_locked?: boolean;
74
- locked_info?: string;
75
- }
76
- export interface BexioError {
77
- error_code: number;
78
- message: string;
79
- }
80
- export interface BexioListResponse<T> {
81
- data: T[];
82
- paging?: {
83
- page: number;
84
- page_size: number;
85
- page_count: number;
86
- item_count: number;
87
- };
88
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Common types for Bexio API
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/common/types.ts"],"names":[],"mappings":";AAAA,6BAA6B"}
@@ -1,10 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newOrderTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
3
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
5
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
7
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
9
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- }>;
@@ -1,147 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newOrderTrigger = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const index_1 = require("../../index");
8
- const client_1 = require("../common/client");
9
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
10
- const polling = {
11
- strategy: pieces_common_1.DedupeStrategy.TIMEBASED,
12
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, lastFetchEpochMS, propsValue }) {
13
- const client = new client_1.BexioClient(auth);
14
- const isTest = lastFetchEpochMS === 0;
15
- const lastFetchDate = isTest
16
- ? (0, dayjs_1.default)().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss')
17
- : (0, dayjs_1.default)(lastFetchEpochMS).format('YYYY-MM-DD HH:mm:ss');
18
- const searchBody = [
19
- {
20
- field: 'updated_at',
21
- value: lastFetchDate,
22
- criteria: '>=',
23
- },
24
- ];
25
- if (propsValue.status_id !== undefined && propsValue.status_id !== null) {
26
- searchBody.push({
27
- field: 'kb_item_status_id',
28
- value: propsValue.status_id.toString(),
29
- criteria: '=',
30
- });
31
- }
32
- const queryParams = {
33
- order_by: 'updated_at_desc',
34
- limit: isTest ? '5' : '500',
35
- };
36
- const orders = yield client.post('/2.0/kb_order/search', searchBody, queryParams);
37
- return orders.map((order) => {
38
- const updatedAt = order.updated_at || new Date().toISOString();
39
- const epochMilliSeconds = (0, dayjs_1.default)(updatedAt).valueOf();
40
- return {
41
- epochMilliSeconds,
42
- data: order,
43
- };
44
- });
45
- }),
46
- };
47
- exports.newOrderTrigger = (0, pieces_framework_1.createTrigger)({
48
- auth: index_1.bexioAuth,
49
- name: 'new_order',
50
- displayName: 'New Order',
51
- description: 'Triggers when an Order is created or updated with the chosen status',
52
- type: pieces_framework_1.TriggerStrategy.POLLING,
53
- props: {
54
- status_id: pieces_framework_1.Property.Dropdown({
55
- auth: index_1.bexioAuth,
56
- displayName: 'Status',
57
- description: 'Filter orders by status (leave empty to trigger for all statuses)',
58
- required: false,
59
- refreshers: [],
60
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
61
- if (!auth) {
62
- return {
63
- disabled: true,
64
- placeholder: 'Connect your Bexio account first',
65
- options: [],
66
- };
67
- }
68
- try {
69
- const client = new client_1.BexioClient(auth);
70
- const statuses = yield client.get('/2.0/kb_order_status').catch(() => []);
71
- if (statuses.length === 0) {
72
- return {
73
- disabled: false,
74
- placeholder: 'Status filter not available - will trigger for all statuses',
75
- options: [],
76
- };
77
- }
78
- return {
79
- disabled: false,
80
- options: statuses.map((status) => ({
81
- label: status.name,
82
- value: status.id,
83
- })),
84
- };
85
- }
86
- catch (error) {
87
- return {
88
- disabled: false,
89
- placeholder: 'Enter status ID manually or leave empty for all statuses',
90
- options: [],
91
- };
92
- }
93
- }),
94
- }),
95
- },
96
- sampleData: {
97
- id: 4,
98
- document_nr: 'AU-00001',
99
- title: null,
100
- contact_id: 14,
101
- contact_sub_id: null,
102
- user_id: 1,
103
- project_id: null,
104
- language_id: 1,
105
- bank_account_id: 1,
106
- currency_id: 1,
107
- payment_type_id: 1,
108
- total_gross: '17.800000',
109
- total_net: '17.800000',
110
- total_taxes: '1.3706',
111
- total: '19.150000',
112
- kb_item_status_id: 5,
113
- is_valid_from: '2019-06-24',
114
- updated_at: '2019-04-08 13:17:32',
115
- },
116
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
117
- yield pieces_common_1.pollingHelper.onEnable(polling, {
118
- auth: context.auth,
119
- store: context.store,
120
- propsValue: context.propsValue,
121
- });
122
- }),
123
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
124
- yield pieces_common_1.pollingHelper.onDisable(polling, {
125
- auth: context.auth,
126
- store: context.store,
127
- propsValue: context.propsValue,
128
- });
129
- }),
130
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
131
- return yield pieces_common_1.pollingHelper.test(polling, {
132
- auth: context.auth,
133
- store: context.store,
134
- propsValue: context.propsValue,
135
- files: context.files,
136
- });
137
- }),
138
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
139
- return yield pieces_common_1.pollingHelper.poll(polling, {
140
- auth: context.auth,
141
- store: context.store,
142
- propsValue: context.propsValue,
143
- files: context.files,
144
- });
145
- }),
146
- });
147
- //# sourceMappingURL=new-order.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-order.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/triggers/new-order.ts"],"names":[],"mappings":";;;;AAAA,qEAAmJ;AACnJ,+DAAqF;AACrF,uCAAwC;AACxC,6CAA+C;AAE/C,0DAA0B;AAE1B,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA+C,EAAE,oDAA1C,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EA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,CAAC,IAAI,CAAC,OAAO,EAAE;YACvC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;IACL,CAAC,CAAA;IACD,GAAG,EAAE,CAAO,OAAO,EAAE,EAAE;QACrB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;YACvC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;IACL,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newProductTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
@@ -1,106 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newProductTrigger = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const index_1 = require("../../index");
8
- const client_1 = require("../common/client");
9
- const polling = {
10
- strategy: pieces_common_1.DedupeStrategy.LAST_ITEM,
11
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, lastItemId }) {
12
- const client = new client_1.BexioClient(auth);
13
- // Use GET endpoint to fetch all articles, then sort by ID descending
14
- // This avoids the issue with empty search arrays
15
- const queryParams = {
16
- limit: '500',
17
- };
18
- const products = yield client.get('/2.0/article', queryParams);
19
- // Sort by ID descending to get newest first (since GET doesn't support order_by)
20
- const sortedProducts = products.sort((a, b) => b.id - a.id);
21
- return sortedProducts.map((product) => ({
22
- id: product.id,
23
- data: product,
24
- }));
25
- }),
26
- };
27
- exports.newProductTrigger = (0, pieces_framework_1.createTrigger)({
28
- auth: index_1.bexioAuth,
29
- name: 'new_product',
30
- displayName: 'New Product',
31
- description: 'Triggers when a new product is created',
32
- type: pieces_framework_1.TriggerStrategy.POLLING,
33
- props: {},
34
- sampleData: {
35
- id: 4,
36
- user_id: 1,
37
- article_type_id: 1,
38
- contact_id: 14,
39
- deliverer_code: null,
40
- deliverer_name: null,
41
- deliverer_description: null,
42
- intern_code: 'wh-2019',
43
- intern_name: 'Webhosting',
44
- intern_description: null,
45
- purchase_price: null,
46
- sale_price: null,
47
- purchase_total: null,
48
- sale_total: null,
49
- currency_id: null,
50
- tax_income_id: null,
51
- tax_id: null,
52
- tax_expense_id: null,
53
- unit_id: null,
54
- is_stock: false,
55
- stock_id: null,
56
- stock_place_id: null,
57
- stock_nr: 0,
58
- stock_min_nr: 0,
59
- stock_reserved_nr: 0,
60
- stock_available_nr: 0,
61
- stock_picked_nr: 0,
62
- stock_disposed_nr: 0,
63
- stock_ordered_nr: 0,
64
- width: null,
65
- height: null,
66
- weight: null,
67
- volume: null,
68
- html_text: null,
69
- remarks: null,
70
- delivery_price: null,
71
- article_group_id: null,
72
- account_id: null,
73
- expense_account_id: null,
74
- },
75
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
76
- yield pieces_common_1.pollingHelper.onEnable(polling, {
77
- auth: context.auth,
78
- store: context.store,
79
- propsValue: context.propsValue,
80
- });
81
- }),
82
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
83
- yield pieces_common_1.pollingHelper.onDisable(polling, {
84
- auth: context.auth,
85
- store: context.store,
86
- propsValue: context.propsValue,
87
- });
88
- }),
89
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
90
- return yield pieces_common_1.pollingHelper.test(polling, {
91
- auth: context.auth,
92
- store: context.store,
93
- propsValue: context.propsValue,
94
- files: context.files,
95
- });
96
- }),
97
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
98
- return yield pieces_common_1.pollingHelper.poll(polling, {
99
- auth: context.auth,
100
- store: context.store,
101
- propsValue: context.propsValue,
102
- files: context.files,
103
- });
104
- }),
105
- });
106
- //# sourceMappingURL=new-product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-product.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/triggers/new-product.ts"],"names":[],"mappings":";;;;AAAA,qEAAmH;AACnH,+DAAqF;AACrF,uCAAwC;AACxC,6CAA+C;AAE/C,MAAM,OAAO,GAGT;IACF,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA6B,EAAE,oDAAxB,EAAE,IAAI,EAAE,UAAU,EAAE;QAChC,MAAM,MAAM,GAAG,IAAI,oBAAW,CAAC,IAAI,CAAC,CAAC;QAErC,qEAAqE;QACrE,iDAAiD;QACjD,MAAM,WAAW,GAA2B;YAC1C,KAAK,EAAE,KAAK;SACb,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAwC7B,cAAc,EAAE,WAAW,CAAC,CAAC;QAEjC,iFAAiF;QACjF,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAA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activepieces/pieces-framework';
2
- export declare const newProjectTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
3
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
5
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
7
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
9
- status_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- }>;