@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,312 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProjectAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const index_1 = require("../../index");
7
- const client_1 = require("../common/client");
8
- exports.createProjectAction = (0, pieces_framework_1.createAction)({
9
- auth: index_1.bexioAuth,
10
- name: 'create_project',
11
- displayName: 'Create Project',
12
- description: 'Create a new project',
13
- props: {
14
- document_nr: pieces_framework_1.Property.ShortText({
15
- displayName: 'Document Number',
16
- description: 'Project number (required if automatic numbering is disabled)',
17
- required: false,
18
- }),
19
- name: pieces_framework_1.Property.ShortText({
20
- displayName: 'Project Name',
21
- description: 'Name of the project',
22
- required: true,
23
- }),
24
- start_date: pieces_framework_1.Property.DateTime({
25
- displayName: 'Start Date',
26
- description: 'Project start date',
27
- required: false,
28
- }),
29
- end_date: pieces_framework_1.Property.DateTime({
30
- displayName: 'End Date',
31
- description: 'Project end date',
32
- required: false,
33
- }),
34
- comment: pieces_framework_1.Property.LongText({
35
- displayName: 'Comment',
36
- description: 'Project comment/description',
37
- required: false,
38
- }),
39
- pr_state_id: pieces_framework_1.Property.Dropdown({
40
- auth: index_1.bexioAuth,
41
- displayName: 'Project Status',
42
- description: 'Status of the project',
43
- required: true,
44
- refreshers: [],
45
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
46
- if (!auth) {
47
- return {
48
- disabled: true,
49
- placeholder: 'Connect your Bexio account first',
50
- options: [],
51
- };
52
- }
53
- try {
54
- const client = new client_1.BexioClient(auth);
55
- const states = yield client.get('/2.0/pr_project_state');
56
- return {
57
- disabled: false,
58
- options: states.map((state) => ({
59
- label: state.name,
60
- value: state.id,
61
- })),
62
- };
63
- }
64
- catch (error) {
65
- return {
66
- disabled: true,
67
- placeholder: 'Failed to load project statuses',
68
- options: [],
69
- };
70
- }
71
- }),
72
- }),
73
- pr_project_type_id: pieces_framework_1.Property.Dropdown({
74
- auth: index_1.bexioAuth,
75
- displayName: 'Project Type',
76
- description: 'Type of project',
77
- required: true,
78
- refreshers: [],
79
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
80
- if (!auth) {
81
- return {
82
- disabled: true,
83
- placeholder: 'Connect your Bexio account first',
84
- options: [],
85
- };
86
- }
87
- try {
88
- const client = new client_1.BexioClient(auth);
89
- const types = yield client.get('/2.0/pr_project_type');
90
- return {
91
- disabled: false,
92
- options: types.map((type) => ({
93
- label: type.name,
94
- value: type.id,
95
- })),
96
- };
97
- }
98
- catch (error) {
99
- return {
100
- disabled: true,
101
- placeholder: 'Failed to load project types',
102
- options: [],
103
- };
104
- }
105
- }),
106
- }),
107
- contact_id: pieces_framework_1.Property.Dropdown({
108
- auth: index_1.bexioAuth,
109
- displayName: 'Contact',
110
- description: 'Contact associated with this project',
111
- required: true,
112
- refreshers: [],
113
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
114
- if (!auth) {
115
- return {
116
- disabled: true,
117
- placeholder: 'Connect your Bexio account first',
118
- options: [],
119
- };
120
- }
121
- try {
122
- const client = new client_1.BexioClient(auth);
123
- const contacts = yield client.get('/2.0/contact');
124
- return {
125
- disabled: false,
126
- options: contacts.map((contact) => {
127
- const name = contact.name_2
128
- ? `${contact.name_2} ${contact.name_1}`
129
- : contact.name_1;
130
- const label = contact.nr ? `${name} (#${contact.nr})` : name;
131
- return {
132
- label,
133
- value: contact.id,
134
- };
135
- }),
136
- };
137
- }
138
- catch (error) {
139
- return {
140
- disabled: true,
141
- placeholder: 'Failed to load contacts',
142
- options: [],
143
- };
144
- }
145
- }),
146
- }),
147
- contact_sub_id: pieces_framework_1.Property.Dropdown({
148
- auth: index_1.bexioAuth,
149
- displayName: 'Contact Sub',
150
- description: 'Contact sub-address (optional)',
151
- required: false,
152
- refreshers: [],
153
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
154
- if (!auth) {
155
- return {
156
- disabled: true,
157
- placeholder: 'Connect your Bexio account first',
158
- options: [],
159
- };
160
- }
161
- try {
162
- const client = new client_1.BexioClient(auth);
163
- const contacts = yield client.get('/2.0/contact');
164
- return {
165
- disabled: false,
166
- options: contacts.map((contact) => {
167
- const name = contact.name_2
168
- ? `${contact.name_2} ${contact.name_1}`
169
- : contact.name_1;
170
- const label = contact.nr ? `${name} (#${contact.nr})` : name;
171
- return {
172
- label,
173
- value: contact.id,
174
- };
175
- }),
176
- };
177
- }
178
- catch (error) {
179
- return {
180
- disabled: true,
181
- placeholder: 'Failed to load contacts',
182
- options: [],
183
- };
184
- }
185
- }),
186
- }),
187
- pr_invoice_type_id: pieces_framework_1.Property.StaticDropdown({
188
- displayName: 'Invoice Type',
189
- description: 'Type of invoicing for this project',
190
- required: false,
191
- options: {
192
- disabled: false,
193
- options: [
194
- { label: 'Hourly rate for client services', value: 1 },
195
- { label: 'Hourly rate for employee', value: 2 },
196
- { label: 'Hourly rate for project', value: 3 },
197
- { label: 'Fix price for project', value: 4 },
198
- ],
199
- },
200
- }),
201
- pr_invoice_type_amount: pieces_framework_1.Property.ShortText({
202
- displayName: 'Invoice Type Amount',
203
- description: 'Amount for invoice type (only for hourly rate project or fix price)',
204
- required: false,
205
- }),
206
- pr_budget_type_id: pieces_framework_1.Property.StaticDropdown({
207
- displayName: 'Budget Type',
208
- description: 'Type of budget for this project',
209
- required: false,
210
- options: {
211
- disabled: false,
212
- options: [
213
- { label: 'Total budget costs', value: 1 },
214
- { label: 'Total budget hours', value: 2 },
215
- { label: 'Budget for each client services', value: 3 },
216
- { label: 'Budget for each employee', value: 4 },
217
- ],
218
- },
219
- }),
220
- pr_budget_type_amount: pieces_framework_1.Property.ShortText({
221
- displayName: 'Budget Type Amount',
222
- description: 'Amount for budget type (only for total budget costs or total budget hours)',
223
- required: false,
224
- }),
225
- user_id: pieces_framework_1.Property.Dropdown({
226
- auth: index_1.bexioAuth,
227
- displayName: 'User',
228
- description: 'User responsible for this project',
229
- required: true,
230
- refreshers: [],
231
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
232
- if (!auth) {
233
- return {
234
- disabled: true,
235
- placeholder: 'Connect your Bexio account first',
236
- options: [],
237
- };
238
- }
239
- try {
240
- const client = new client_1.BexioClient(auth);
241
- const users = yield client.get('/3.0/users');
242
- return {
243
- disabled: false,
244
- options: users.map((user) => {
245
- const name = user.firstname && user.lastname
246
- ? `${user.firstname} ${user.lastname}`
247
- : user.email;
248
- return {
249
- label: name,
250
- value: user.id,
251
- };
252
- }),
253
- };
254
- }
255
- catch (error) {
256
- return {
257
- disabled: true,
258
- placeholder: 'Failed to load users',
259
- options: [],
260
- };
261
- }
262
- }),
263
- }),
264
- },
265
- run(_a) {
266
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
267
- const client = new client_1.BexioClient(auth);
268
- const props = propsValue;
269
- const requestBody = {
270
- name: props['name'],
271
- pr_state_id: props['pr_state_id'],
272
- pr_project_type_id: props['pr_project_type_id'],
273
- contact_id: props['contact_id'],
274
- user_id: props['user_id'],
275
- };
276
- if (props['document_nr']) {
277
- requestBody['document_nr'] = props['document_nr'];
278
- }
279
- if (props['start_date']) {
280
- // Convert DateTime to ISO string format expected by API
281
- const startDate = props['start_date'];
282
- requestBody['start_date'] = startDate;
283
- }
284
- if (props['end_date']) {
285
- // Convert DateTime to ISO string format expected by API
286
- const endDate = props['end_date'];
287
- requestBody['end_date'] = endDate;
288
- }
289
- if (props['comment']) {
290
- requestBody['comment'] = props['comment'];
291
- }
292
- if (props['contact_sub_id']) {
293
- requestBody['contact_sub_id'] = props['contact_sub_id'];
294
- }
295
- if (props['pr_invoice_type_id']) {
296
- requestBody['pr_invoice_type_id'] = props['pr_invoice_type_id'];
297
- }
298
- if (props['pr_invoice_type_amount']) {
299
- requestBody['pr_invoice_type_amount'] = props['pr_invoice_type_amount'];
300
- }
301
- if (props['pr_budget_type_id']) {
302
- requestBody['pr_budget_type_id'] = props['pr_budget_type_id'];
303
- }
304
- if (props['pr_budget_type_amount']) {
305
- requestBody['pr_budget_type_amount'] = props['pr_budget_type_amount'];
306
- }
307
- const response = yield client.post('/2.0/pr_project', requestBody);
308
- return response;
309
- });
310
- },
311
- });
312
- //# sourceMappingURL=create-project.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-project.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bexio/src/lib/actions/create-project.ts"],"names":[],"mappings":";;;;AAAA,qEAA6F;AAC7F,uCAAwC;AACxC,6CAA+C;AAElC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,iBAAS;IACf,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE;QACL,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,kBAAkB;YAC/B,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,IAAI,EAAE,iBAAS;YACf,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ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,IAAI,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;gBACrB,WAAW,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;YAC5C,CAAC;YACD,IAAI,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBAC5B,WAAW,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAC1D,CAAC;YACD,IAAI,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC;gBAChC,WAAW,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC;YAClE,CAAC;YACD,IAAI,KAAK,CAAC,wBAAwB,CAAC,EAAE,CAAC;gBACpC,WAAW,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,wBAAwB,CAAC,CAAC;YAC1E,CAAC;YACD,IAAI,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC;gBAC/B,WAAW,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;YAChE,CAAC;YACD,IAAI,KAAK,CAAC,uBAAuB,CAAC,EAAE,CAAC;gBACnC,WAAW,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;YACxE,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAS/B,iBAAiB,EAAE,WAAW,CAAC,CAAC;YAEnC,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- export declare const createSalesInvoiceAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- document_nr: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- contact_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
5
- contact_sub_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- user_id: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
7
- pr_project_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- language_id: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
9
- bank_account_id: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- currency_id: 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>>;
11
- payment_type_id: import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
12
- header: import("@activepieces/pieces-framework").LongTextProperty<false>;
13
- footer: import("@activepieces/pieces-framework").LongTextProperty<false>;
14
- mwst_type: import("@activepieces/pieces-framework").StaticDropdownProperty<number, true>;
15
- mwst_is_net: import("@activepieces/pieces-framework").CheckboxProperty<false>;
16
- show_position_taxes: import("@activepieces/pieces-framework").CheckboxProperty<false>;
17
- is_valid_from: import("@activepieces/pieces-framework").ShortTextProperty<false>;
18
- is_valid_to: import("@activepieces/pieces-framework").ShortTextProperty<false>;
19
- contact_address_manual: import("@activepieces/pieces-framework").LongTextProperty<false>;
20
- reference: import("@activepieces/pieces-framework").ShortTextProperty<false>;
21
- api_reference: import("@activepieces/pieces-framework").ShortTextProperty<false>;
22
- template_slug: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
23
- positionFields: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
24
- }>;