@activepieces/piece-bigin-by-zoho 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 (92) hide show
  1. package/README.md +7 -0
  2. package/package.json +38 -0
  3. package/src/index.d.ts +2 -0
  4. package/src/index.js +121 -0
  5. package/src/index.js.map +1 -0
  6. package/src/lib/actions/create-call.d.ts +15 -0
  7. package/src/lib/actions/create-call.js +155 -0
  8. package/src/lib/actions/create-call.js.map +1 -0
  9. package/src/lib/actions/create-company.d.ts +13 -0
  10. package/src/lib/actions/create-company.js +104 -0
  11. package/src/lib/actions/create-company.js.map +1 -0
  12. package/src/lib/actions/create-contact.d.ts +17 -0
  13. package/src/lib/actions/create-contact.js +126 -0
  14. package/src/lib/actions/create-contact.js.map +1 -0
  15. package/src/lib/actions/create-event.d.ts +17 -0
  16. package/src/lib/actions/create-event.js +351 -0
  17. package/src/lib/actions/create-event.js.map +1 -0
  18. package/src/lib/actions/create-pipeline-record.d.ts +15 -0
  19. package/src/lib/actions/create-pipeline-record.js +213 -0
  20. package/src/lib/actions/create-pipeline-record.js.map +1 -0
  21. package/src/lib/actions/create-task.d.ts +15 -0
  22. package/src/lib/actions/create-task.js +371 -0
  23. package/src/lib/actions/create-task.js.map +1 -0
  24. package/src/lib/actions/search-company-record.d.ts +4 -0
  25. package/src/lib/actions/search-company-record.js +53 -0
  26. package/src/lib/actions/search-company-record.js.map +1 -0
  27. package/src/lib/actions/search-contact-record.d.ts +4 -0
  28. package/src/lib/actions/search-contact-record.js +77 -0
  29. package/src/lib/actions/search-contact-record.js.map +1 -0
  30. package/src/lib/actions/search-pipeline-records.d.ts +4 -0
  31. package/src/lib/actions/search-pipeline-records.js +48 -0
  32. package/src/lib/actions/search-pipeline-records.js.map +1 -0
  33. package/src/lib/actions/search-product.d.ts +4 -0
  34. package/src/lib/actions/search-product.js +55 -0
  35. package/src/lib/actions/search-product.js.map +1 -0
  36. package/src/lib/actions/search-user.d.ts +6 -0
  37. package/src/lib/actions/search-user.js +70 -0
  38. package/src/lib/actions/search-user.js.map +1 -0
  39. package/src/lib/actions/update-company.d.ts +6 -0
  40. package/src/lib/actions/update-company.js +217 -0
  41. package/src/lib/actions/update-company.js.map +1 -0
  42. package/src/lib/actions/update-contact.d.ts +6 -0
  43. package/src/lib/actions/update-contact.js +241 -0
  44. package/src/lib/actions/update-contact.js.map +1 -0
  45. package/src/lib/actions/update-event.d.ts +12 -0
  46. package/src/lib/actions/update-event.js +454 -0
  47. package/src/lib/actions/update-event.js.map +1 -0
  48. package/src/lib/actions/update-pipeline-record.d.ts +13 -0
  49. package/src/lib/actions/update-pipeline-record.js +200 -0
  50. package/src/lib/actions/update-pipeline-record.js.map +1 -0
  51. package/src/lib/actions/update-task.d.ts +12 -0
  52. package/src/lib/actions/update-task.js +436 -0
  53. package/src/lib/actions/update-task.js.map +1 -0
  54. package/src/lib/common/constants.d.ts +22 -0
  55. package/src/lib/common/constants.js +70 -0
  56. package/src/lib/common/constants.js.map +1 -0
  57. package/src/lib/common/helpers.d.ts +10 -0
  58. package/src/lib/common/helpers.js +40 -0
  59. package/src/lib/common/helpers.js.map +1 -0
  60. package/src/lib/common/props.d.ts +9 -0
  61. package/src/lib/common/props.js +205 -0
  62. package/src/lib/common/props.js.map +1 -0
  63. package/src/lib/common/request.d.ts +34 -0
  64. package/src/lib/common/request.js +224 -0
  65. package/src/lib/common/request.js.map +1 -0
  66. package/src/lib/triggers/company-updated.d.ts +2 -0
  67. package/src/lib/triggers/company-updated.js +61 -0
  68. package/src/lib/triggers/company-updated.js.map +1 -0
  69. package/src/lib/triggers/contact-updated.d.ts +2 -0
  70. package/src/lib/triggers/contact-updated.js +61 -0
  71. package/src/lib/triggers/contact-updated.js.map +1 -0
  72. package/src/lib/triggers/new-call-created.d.ts +2 -0
  73. package/src/lib/triggers/new-call-created.js +61 -0
  74. package/src/lib/triggers/new-call-created.js.map +1 -0
  75. package/src/lib/triggers/new-company-created.d.ts +2 -0
  76. package/src/lib/triggers/new-company-created.js +61 -0
  77. package/src/lib/triggers/new-company-created.js.map +1 -0
  78. package/src/lib/triggers/new-contact-created.d.ts +2 -0
  79. package/src/lib/triggers/new-contact-created.js +70 -0
  80. package/src/lib/triggers/new-contact-created.js.map +1 -0
  81. package/src/lib/triggers/new-event-created.d.ts +2 -0
  82. package/src/lib/triggers/new-event-created.js +61 -0
  83. package/src/lib/triggers/new-event-created.js.map +1 -0
  84. package/src/lib/triggers/new-pipeline-record.d.ts +2 -0
  85. package/src/lib/triggers/new-pipeline-record.js +61 -0
  86. package/src/lib/triggers/new-pipeline-record.js.map +1 -0
  87. package/src/lib/triggers/new-task-created.d.ts +2 -0
  88. package/src/lib/triggers/new-task-created.js +61 -0
  89. package/src/lib/triggers/new-task-created.js.map +1 -0
  90. package/src/lib/triggers/pipeline-record-updated.d.ts +2 -0
  91. package/src/lib/triggers/pipeline-record-updated.js +61 -0
  92. package/src/lib/triggers/pipeline-record-updated.js.map +1 -0
@@ -0,0 +1,15 @@
1
+ export declare const createTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ subject: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
+ owner: import("@activepieces/pieces-framework").DropdownProperty<unknown, false>;
4
+ dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
5
+ enableRecurring: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
+ recurringInfo: import("@activepieces/pieces-framework").DynamicProperties<false>;
7
+ enableReminder: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
+ reminderInfo: import("@activepieces/pieces-framework").DynamicProperties<false>;
9
+ relatedModule: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
10
+ relatedTo: import("@activepieces/pieces-framework").DropdownProperty<any, false>;
11
+ description: import("@activepieces/pieces-framework").LongTextProperty<false>;
12
+ priority: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
13
+ status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
14
+ tag: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false>;
15
+ }>;
@@ -0,0 +1,371 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTask = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const index_1 = require("../../index");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const props_1 = require("../common/props");
8
+ const helpers_1 = require("../common/helpers");
9
+ const request_1 = require("../common/request");
10
+ exports.createTask = (0, pieces_framework_1.createAction)({
11
+ auth: index_1.biginAuth,
12
+ name: 'createTask',
13
+ displayName: 'Create Task',
14
+ description: 'Creates a new Task',
15
+ props: {
16
+ subject: pieces_framework_1.Property.ShortText({
17
+ displayName: 'Subject',
18
+ description: 'Provide the subject or title of the task',
19
+ required: true,
20
+ }),
21
+ owner: props_1.usersDropdown,
22
+ dueDate: pieces_framework_1.Property.DateTime({
23
+ displayName: 'Due Date',
24
+ description: 'Provide the due date of the task (YYYY-MM-DD format)',
25
+ required: false,
26
+ }),
27
+ enableRecurring: pieces_framework_1.Property.Checkbox({
28
+ displayName: 'Make Task Recurring',
29
+ description: 'make this task recurring',
30
+ required: false,
31
+ }),
32
+ recurringInfo: pieces_framework_1.Property.DynamicProperties({
33
+ displayName: 'Recurring Info',
34
+ description: 'Please note: Due Date must be set above for recurring tasks',
35
+ refreshers: ['enableRecurring'],
36
+ required: false,
37
+ props: (propsValue, ctx) => {
38
+ if (propsValue['enableRecurring']) {
39
+ return {
40
+ freq: pieces_framework_1.Property.StaticDropdown({
41
+ displayName: 'Frequency',
42
+ required: true,
43
+ options: {
44
+ options: [
45
+ { label: 'Daily', value: 'DAILY' },
46
+ { label: 'Weekly', value: 'WEEKLY' },
47
+ { label: 'Monthly', value: 'MONTHLY' },
48
+ { label: 'Yearly', value: 'YEARLY' },
49
+ ],
50
+ },
51
+ }),
52
+ interval: pieces_framework_1.Property.Number({
53
+ displayName: 'Interval',
54
+ required: true,
55
+ description: 'Indicates the time gap between each event. The INTERVAL value range from 1 to 99. For example, an INTERVAL of 2 for a WEEKLY recurring event means that there will be a two-week gap between each event.',
56
+ defaultValue: 1,
57
+ }),
58
+ count: pieces_framework_1.Property.Number({
59
+ displayName: 'Count',
60
+ required: true,
61
+ defaultValue: 1,
62
+ description: 'Indicates the number of events you want to create. THE COUNT value range from 1 to 99. For example, a COUNT of 3 creates three individual events.',
63
+ }),
64
+ byday: pieces_framework_1.Property.StaticDropdown({
65
+ displayName: 'By Day',
66
+ required: false,
67
+ description: 'Indicates the day of the week the event repeats. The possible values are SU, MO, TU, WE, TH, FR, or SA. This is applicable only for weekly, and monthly events.',
68
+ options: {
69
+ options: [
70
+ { label: 'Sunday', value: 'SU' },
71
+ { label: 'Monday', value: 'MO' },
72
+ { label: 'Tuesday', value: 'TU' },
73
+ { label: 'Wednesday', value: 'WE' },
74
+ { label: 'Thursday', value: 'TH' },
75
+ { label: 'Friday', value: 'FR' },
76
+ { label: 'Saturday', value: 'SA' },
77
+ ],
78
+ },
79
+ }),
80
+ bymonthday: pieces_framework_1.Property.Number({
81
+ displayName: 'By Month Day',
82
+ required: false,
83
+ description: ' Indicates the day of the month the event repeats. The BYMONTHDAY value range from 1 to 31. This is applicable only for weekly and monthly events.',
84
+ }),
85
+ bysetpos: pieces_framework_1.Property.StaticDropdown({
86
+ displayName: 'By Set Position',
87
+ required: false,
88
+ description: 'Indicates the week of the month the event repeats. The possible values are 1 for the first week of the month, 2 for the second week of the month, 3 the for third week of the month, 4 for the fourth week of the month, or -1 for the last week of the month. This is applicable only for weekly and monthly events.',
89
+ options: {
90
+ options: [
91
+ { label: 'First Week of the Month', value: '1' },
92
+ { label: 'Second Week of the Month', value: '2' },
93
+ { label: 'Third Week of the Month', value: '3' },
94
+ { label: 'Fourth Week of the Month', value: '4' },
95
+ { label: 'Last Week of the Month', value: '-1' },
96
+ ],
97
+ },
98
+ }),
99
+ until: pieces_framework_1.Property.ShortText({
100
+ displayName: 'Until (YYYY-MM-DD)',
101
+ description: 'Date the recurrence ends. Format: YYYY-MM-DD',
102
+ required: false,
103
+ }),
104
+ };
105
+ }
106
+ else {
107
+ return {};
108
+ }
109
+ },
110
+ }),
111
+ enableReminder: pieces_framework_1.Property.Checkbox({
112
+ displayName: 'Enable Reminder',
113
+ description: 'Enable reminder for this task',
114
+ required: false,
115
+ }),
116
+ reminderInfo: pieces_framework_1.Property.DynamicProperties({
117
+ displayName: 'Reminder Information',
118
+ refreshers: ['enableReminder'],
119
+ required: false,
120
+ props: (propsValue, ctx) => {
121
+ if (propsValue['enableReminder']) {
122
+ return {
123
+ reminderAction: pieces_framework_1.Property.StaticDropdown({
124
+ displayName: 'Reminder Action',
125
+ description: 'How the reminder should be shown',
126
+ required: false,
127
+ options: {
128
+ options: [
129
+ { label: 'Email', value: 'EMAIL' },
130
+ { label: 'Popup', value: 'POPUP' },
131
+ { label: 'Email and Popup', value: 'EMAILANDPOPUP' },
132
+ ],
133
+ },
134
+ }),
135
+ reminderType: pieces_framework_1.Property.StaticDropdown({
136
+ displayName: 'Reminder Type',
137
+ description: 'When to trigger the reminder',
138
+ required: false,
139
+ options: {
140
+ options: [
141
+ { label: 'Specific Date & Time', value: 'datetime' },
142
+ { label: 'Days Before', value: 'days_before' },
143
+ { label: 'Weeks Before', value: 'weeks_before' },
144
+ ],
145
+ },
146
+ }),
147
+ reminderDateTime: pieces_framework_1.Property.DateTime({
148
+ displayName: 'Reminder Date & Time',
149
+ description: 'Specific date and time for reminder (for non-recurring tasks)',
150
+ required: false,
151
+ }),
152
+ reminderDaysBefore: pieces_framework_1.Property.Number({
153
+ displayName: 'Days Before',
154
+ description: 'Number of days before the task to send reminder',
155
+ required: false,
156
+ defaultValue: 1,
157
+ }),
158
+ reminderWeeksBefore: pieces_framework_1.Property.Number({
159
+ displayName: 'Weeks Before',
160
+ description: 'Number of weeks before the task to send reminder',
161
+ required: false,
162
+ defaultValue: 1,
163
+ }),
164
+ reminderTime: pieces_framework_1.Property.ShortText({
165
+ displayName: 'Reminder Time',
166
+ description: 'Time for reminder in HH:MM format (24-hour, for recurring tasks)',
167
+ required: false,
168
+ }),
169
+ };
170
+ }
171
+ else {
172
+ return {};
173
+ }
174
+ },
175
+ }),
176
+ relatedModule: pieces_framework_1.Property.StaticDropdown({
177
+ displayName: 'Related Module',
178
+ description: 'Select the type of entity the task is related to. Options: Contacts, Pipelines, Companies.',
179
+ required: false,
180
+ defaultValue: 'Contacts',
181
+ options: {
182
+ options: [
183
+ { label: 'Contacts', value: 'Contacts' },
184
+ { label: 'Pipelines', value: 'Pipelines' },
185
+ { label: 'Companies', value: 'Companies' },
186
+ ],
187
+ },
188
+ }),
189
+ relatedTo: pieces_framework_1.Property.Dropdown({
190
+ displayName: 'Related To',
191
+ description: 'Select the specific record the task is related to.',
192
+ required: false,
193
+ refreshers: ['auth', 'relatedModule'],
194
+ defaultValue: {},
195
+ options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, relatedModule }) {
196
+ if (!auth)
197
+ return (0, helpers_1.handleDropdownError)('Please connect first');
198
+ if (!relatedModule)
199
+ return { options: [] };
200
+ const { access_token, api_domain } = auth;
201
+ const fetchMap = {
202
+ Contacts: () => request_1.biginApiService.fetchContacts(access_token, api_domain),
203
+ Pipelines: () => request_1.biginApiService.fetchPipelinesRecords(access_token, api_domain),
204
+ Companies: () => request_1.biginApiService.fetchCompanies(access_token, api_domain),
205
+ };
206
+ const fetchFn = fetchMap[relatedModule];
207
+ const response = yield fetchFn();
208
+ const records = (response === null || response === void 0 ? void 0 : response.data) || [];
209
+ return {
210
+ options: records.map((item) => ({
211
+ label: (0, helpers_1.getSafeLabel)(item),
212
+ value: item.id,
213
+ })),
214
+ };
215
+ }),
216
+ }),
217
+ description: pieces_framework_1.Property.LongText({
218
+ displayName: 'Description',
219
+ description: 'Provide additional descriptions or notes related to the task',
220
+ required: false,
221
+ }),
222
+ priority: pieces_framework_1.Property.StaticDropdown({
223
+ displayName: 'Priority',
224
+ description: 'Provide the priority level of the task',
225
+ required: false,
226
+ options: {
227
+ options: [
228
+ { label: 'High', value: 'High' },
229
+ { label: 'Normal', value: 'Normal' },
230
+ { label: 'Low', value: 'Low' },
231
+ { label: 'Lowest', value: 'Lowest' },
232
+ { label: 'Highest', value: 'Highest' },
233
+ ],
234
+ },
235
+ }),
236
+ status: pieces_framework_1.Property.StaticDropdown({
237
+ displayName: 'Status',
238
+ description: 'Provide the current status of the task.',
239
+ required: false,
240
+ options: {
241
+ options: [
242
+ { label: 'In Progress', value: 'In Progress' },
243
+ { label: 'Completed', value: 'Completed' },
244
+ { label: 'Deferred', value: 'Deferred' },
245
+ { label: 'Waiting for input', value: 'Waiting on someone else' },
246
+ { label: 'Not Started', value: 'Not Started' },
247
+ ],
248
+ },
249
+ }),
250
+ tag: (0, props_1.tagsDropdown)('Tasks'),
251
+ },
252
+ run(_a) {
253
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
254
+ const { access_token, api_domain } = auth;
255
+ const taskData = {
256
+ Subject: propsValue.subject,
257
+ };
258
+ if (propsValue.owner) {
259
+ taskData.Owner = { id: propsValue.owner };
260
+ }
261
+ if (propsValue.dueDate) {
262
+ taskData.Due_Date = (0, helpers_1.formatDateOnly)(propsValue.dueDate);
263
+ }
264
+ if (propsValue.enableRecurring && propsValue.recurringInfo) {
265
+ const recurringInfo = propsValue.recurringInfo;
266
+ const rruleParts = [];
267
+ const allowedFreq = ['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY'];
268
+ if (!allowedFreq.includes(recurringInfo.freq)) {
269
+ throw new Error('Invalid recurrence frequency. Allowed values: DAILY, WEEKLY, MONTHLY, YEARLY');
270
+ }
271
+ rruleParts.push(`FREQ=${recurringInfo.freq}`);
272
+ if (recurringInfo.interval !== undefined) {
273
+ const interval = Number(recurringInfo.interval);
274
+ if (Number.isNaN(interval) || interval < 1 || interval > 99) {
275
+ throw new Error('Interval must be a number between 1 and 99');
276
+ }
277
+ rruleParts.push(`INTERVAL=${recurringInfo.interval}`);
278
+ }
279
+ if (recurringInfo.count !== undefined) {
280
+ const count = Number(recurringInfo.count);
281
+ if (Number.isNaN(count) || count < 1 || count > 99) {
282
+ throw new Error('Count must be a number between 1 and 99');
283
+ }
284
+ rruleParts.push(`COUNT=${recurringInfo.count}`);
285
+ }
286
+ if (recurringInfo.byday) {
287
+ rruleParts.push(`BYDAY=${recurringInfo.byday}`);
288
+ }
289
+ if (recurringInfo.bymonthday !== undefined) {
290
+ const bymonthday = Number(recurringInfo.bymonthday);
291
+ if (Number.isNaN(bymonthday) || bymonthday < 1 || bymonthday > 31) {
292
+ throw new Error('BYMONTHDAY must be a number between 1 and 31');
293
+ }
294
+ rruleParts.push(`BYMONTHDAY=${recurringInfo.bymonthday}`);
295
+ }
296
+ if (recurringInfo.bysetpos) {
297
+ const allowedSetPos = ['1', '2', '3', '4', '-1'];
298
+ if (!allowedSetPos.includes(String(recurringInfo.bysetpos))) {
299
+ throw new Error('BYSETPOS must be one of 1, 2, 3, 4, -1');
300
+ }
301
+ rruleParts.push(`BYSETPOS=${recurringInfo.bysetpos}`);
302
+ }
303
+ if (recurringInfo.until) {
304
+ const until = (0, helpers_1.formatDateOnly)(recurringInfo.until);
305
+ rruleParts.push(`UNTIL=${until}`);
306
+ }
307
+ taskData.Recurring_Activity = {
308
+ RRULE: rruleParts.join(';') + ';',
309
+ };
310
+ }
311
+ if (propsValue.enableReminder && propsValue.reminderInfo) {
312
+ const reminderInfo = propsValue.reminderInfo;
313
+ const reminderAction = reminderInfo.reminderAction || 'EMAIL';
314
+ let alarmValue = `ACTION=${reminderAction}`;
315
+ const reminderTime = reminderInfo.reminderTime || '09:00';
316
+ if (propsValue.recurringInfo &&
317
+ reminderInfo.reminderType === 'days_before') {
318
+ const daysBefore = reminderInfo.reminderDaysBefore || 1;
319
+ alarmValue += `;TRIGGER=P${daysBefore}D;TRIGGER_TIME=${reminderTime}`;
320
+ }
321
+ else if (propsValue.recurringInfo &&
322
+ reminderInfo.reminderType === 'weeks_before') {
323
+ const weeksBefore = reminderInfo.reminderWeeksBefore || 1;
324
+ alarmValue += `;TRIGGER=P${weeksBefore}W;TRIGGER_TIME=${reminderTime}`;
325
+ }
326
+ else if (reminderInfo.reminderDateTime) {
327
+ alarmValue += `;TRIGGER=DATE-TIME:${(0, helpers_1.formatDateTime)(reminderInfo.reminderDateTime)}`;
328
+ }
329
+ taskData.Remind_At = {
330
+ ALARM: alarmValue,
331
+ };
332
+ }
333
+ if (propsValue.relatedTo && propsValue.relatedModule) {
334
+ const relatedModuleMap = {
335
+ Contacts: 'Contacts',
336
+ Pipelines: 'Deals',
337
+ Companies: 'Accounts',
338
+ };
339
+ const relatedModule = relatedModuleMap[propsValue.relatedModule] || 'Contacts';
340
+ taskData.Related_To = { id: propsValue.relatedTo };
341
+ taskData.$related_module = relatedModule;
342
+ }
343
+ if (propsValue.description) {
344
+ taskData.Description = propsValue.description;
345
+ }
346
+ if (propsValue.priority) {
347
+ taskData.Priority = propsValue.priority;
348
+ }
349
+ if (propsValue.status) {
350
+ taskData.Status = propsValue.status;
351
+ }
352
+ if (propsValue.tag &&
353
+ Array.isArray(propsValue.tag) &&
354
+ propsValue.tag.length > 0) {
355
+ taskData.Tag = propsValue.tag.map((tagName) => ({ name: tagName }));
356
+ }
357
+ const payload = { data: [taskData] };
358
+ try {
359
+ const response = yield request_1.biginApiService.createTask(access_token, api_domain, payload);
360
+ return response.data[0];
361
+ }
362
+ catch (error) {
363
+ console.error('Error creating task:', error);
364
+ throw new Error(error instanceof Error
365
+ ? `Failed to create task: ${error.message}`
366
+ : 'Failed to create task due to an unknown error');
367
+ }
368
+ });
369
+ },
370
+ });
371
+ //# sourceMappingURL=create-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-task.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bigin-by-zoho/src/lib/actions/create-task.ts"],"names":[],"mappings":";;;;AAAA,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;YAED,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;gBACtB,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;YACtC,CAAC;YAED,IACE,UAAU,CAAC,GAAG;gBACd,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;gBAC7B,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EACzB,CAAC;gBACD,QAAQ,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;YAErC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,yBAAe,CAAC,UAAU,CAC/C,YAAY,EACZ,UAAU,EACV,OAAO,CACR,CAAC;gBAEF,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC1B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;gBAC7C,MAAM,IAAI,KAAK,CACb,KAAK,YAAY,KAAK;oBACpB,CAAC,CAAC,0BAA0B,KAAK,CAAC,OAAO,EAAE;oBAC3C,CAAC,CAAC,+CAA+C,CACpD,CAAC;YACJ,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const searchCompanyRecord: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ mode: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ companyName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchCompanyRecord = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const index_1 = require("../../index");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const request_1 = require("../common/request");
8
+ exports.searchCompanyRecord = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.biginAuth,
10
+ name: 'searchCompanyRecord',
11
+ displayName: 'Search Company Record',
12
+ description: 'Searches companies by full name (criteria) or word',
13
+ props: {
14
+ mode: pieces_framework_1.Property.StaticDropdown({
15
+ displayName: 'Search Mode',
16
+ required: true,
17
+ defaultValue: 'criteria',
18
+ options: {
19
+ options: [
20
+ { label: 'Criteria (full name)', value: 'criteria' },
21
+ { label: 'Word', value: 'word' },
22
+ ],
23
+ },
24
+ }),
25
+ companyName: pieces_framework_1.Property.ShortText({
26
+ displayName: 'Search Term',
27
+ description: 'Company full name (criteria) or word',
28
+ required: true,
29
+ }),
30
+ },
31
+ run(_a) {
32
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
33
+ const { companyName, mode } = propsValue;
34
+ const { access_token, api_domain } = auth;
35
+ try {
36
+ const response = yield request_1.biginApiService.searchRecords(access_token, api_domain, 'Accounts', mode === 'word'
37
+ ? { key: 'word', value: companyName }
38
+ : {
39
+ key: 'criteria',
40
+ value: `(Account_Name:equals:${companyName})OR(Account_Name:starts_with:${companyName})`,
41
+ });
42
+ return {
43
+ message: 'Company record search completed successfully',
44
+ data: response.data,
45
+ };
46
+ }
47
+ catch (error) {
48
+ throw new Error(`Error searching company record: ${error.message}`);
49
+ }
50
+ });
51
+ },
52
+ });
53
+ //# sourceMappingURL=search-company-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-company-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bigin-by-zoho/src/lib/actions/search-company-record.ts"],"names":[],"mappings":";;;;AAAA,uCAAwC;AACxC,qEAAwE;AACxE,+CAAoD;AAEvC,QAAA,mBAAmB,GAAG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,mCAAmC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const searchContactRecord: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ mode: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ searchTerm: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchContactRecord = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const index_1 = require("../../index");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const request_1 = require("../common/request");
8
+ exports.searchContactRecord = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.biginAuth,
10
+ name: 'searchContactRecord',
11
+ displayName: 'Search Contact Record',
12
+ description: 'Searches contacts by criteria, email, phone, or word',
13
+ props: {
14
+ mode: pieces_framework_1.Property.StaticDropdown({
15
+ displayName: 'Search Mode',
16
+ description: 'Choose how to search Contacts',
17
+ required: true,
18
+ defaultValue: 'criteria',
19
+ options: {
20
+ options: [
21
+ { label: 'Criteria (name/email/mobile)', value: 'criteria' },
22
+ { label: 'Email', value: 'email' },
23
+ { label: 'Phone', value: 'phone' },
24
+ { label: 'Word', value: 'word' },
25
+ ],
26
+ },
27
+ }),
28
+ searchTerm: pieces_framework_1.Property.ShortText({
29
+ displayName: 'Search Term',
30
+ description: 'Text, email, phone, or word based on the selected mode',
31
+ required: true,
32
+ }),
33
+ },
34
+ run(_a) {
35
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
36
+ const { searchTerm, mode } = propsValue;
37
+ const { access_token, api_domain } = auth;
38
+ let queryKey = 'criteria';
39
+ let queryValue = '';
40
+ if (mode === 'email') {
41
+ queryKey = 'email';
42
+ queryValue = searchTerm;
43
+ }
44
+ else if (mode === 'phone') {
45
+ queryKey = 'phone';
46
+ queryValue = searchTerm;
47
+ }
48
+ else if (mode === 'word') {
49
+ queryKey = 'word';
50
+ queryValue = searchTerm;
51
+ }
52
+ else {
53
+ queryValue = ['First_Name', 'Last_Name', 'Email', 'Mobile']
54
+ .flatMap((key) => [
55
+ `${key}:equals:${searchTerm}`,
56
+ `${key}:starts_with:${searchTerm}`,
57
+ ])
58
+ .map((condition) => `(${condition})`)
59
+ .join('OR');
60
+ }
61
+ try {
62
+ const response = yield request_1.biginApiService.searchRecords(access_token, api_domain, 'Contacts', {
63
+ key: queryKey,
64
+ value: queryValue,
65
+ });
66
+ return {
67
+ message: 'Contact record search completed successfully',
68
+ data: response.data,
69
+ };
70
+ }
71
+ catch (error) {
72
+ throw new Error(`Error searching contact record: ${error.message}`);
73
+ }
74
+ });
75
+ },
76
+ });
77
+ //# sourceMappingURL=search-contact-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-contact-record.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bigin-by-zoho/src/lib/actions/search-contact-record.ts"],"names":[],"mappings":";;;;AAAA,uCAAwC;AACxC,qEAAwE;AACxE,+CAAoD;AAEvC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,iBAAS;IACf,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,UAAU;YACxB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,UAAU,EAAE;oBAC5D,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO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AAC;YAChB,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,yBAAe,CAAC,aAAa,CAClD,YAAY,EACZ,UAAU,EACV,UAAU,EACV;oBACE,GAAG,EAAE,QAAQ;oBACb,KAAK,EAAE,UAAU;iBAClB,CACF,CAAC;gBAEF,OAAO;oBACL,OAAO,EAAE,8CAA8C;oBACvD,IAAI,EAAE,QAAQ,CAAC,IAAI;iBACpB,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CAAC,mCAAmC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const searchPipelineRecord: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ mode: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ dealName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchPipelineRecord = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const index_1 = require("../../index");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const request_1 = require("../common/request");
8
+ exports.searchPipelineRecord = (0, pieces_framework_1.createAction)({
9
+ auth: index_1.biginAuth,
10
+ name: 'searchPipelineRecord',
11
+ displayName: 'Search Pipeline Record',
12
+ description: 'Searches deals by name via criteria or word',
13
+ props: {
14
+ mode: pieces_framework_1.Property.StaticDropdown({
15
+ displayName: 'Search Mode',
16
+ required: true,
17
+ defaultValue: 'criteria',
18
+ options: {
19
+ options: [
20
+ { label: 'Criteria (Deal Name)', value: 'criteria' },
21
+ { label: 'Word', value: 'word' },
22
+ ],
23
+ },
24
+ }),
25
+ dealName: pieces_framework_1.Property.ShortText({
26
+ displayName: 'Search Term',
27
+ description: 'Deal Name (criteria) or word',
28
+ required: true,
29
+ }),
30
+ },
31
+ run(_a) {
32
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
33
+ const { dealName, mode } = propsValue;
34
+ const { access_token, api_domain } = auth;
35
+ try {
36
+ const response = yield request_1.biginApiService.searchRecords(access_token, api_domain, 'Pipelines', mode === 'word' ? { key: 'word', value: dealName } : { key: 'criteria', value: `(Deal_Name:equals:${dealName})OR(Deal_Name:starts_with:${dealName})` });
37
+ return {
38
+ message: 'Pipeline record search completed successfully',
39
+ data: response.data,
40
+ };
41
+ }
42
+ catch (error) {
43
+ throw new Error(`Error searching pipeline record: ${error.message}`);
44
+ }
45
+ });
46
+ },
47
+ });
48
+ //# sourceMappingURL=search-pipeline-records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-pipeline-records.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/bigin-by-zoho/src/lib/actions/search-pipeline-records.ts"],"names":[],"mappings":";;;;AAAA,uCAAwC;AACxC,qEAAwE;AACxE,+CAAoD;AAEvC,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,iBAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,6CAA6C;IAC1D,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,UAAU;YACxB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,UAAU,EAAE;oBACpD,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBACjC;aACF;SACF,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,UAAiB,CAAC;YAE7C,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAW,CAAC;YAEjD,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,yBAAe,CAAC,aAAa,CAClD,YAAY,EACZ,UAAU,EACV,WAAW,EACX,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,QAAQ,6BAA6B,QAAQ,GAAG,EAAE,CACvJ,CAAC;gBAEF,OAAO;oBACL,OAAO,EAAE,+CAA+C;oBACxD,IAAI,EAAE,QAAQ,CAAC,IAAI;iBACpB,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACvE,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const searchProductRecord: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ mode: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
3
+ searchTerm: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ }>;