@workbuddy/piece-workbuddy-vnext 1.0.0 → 1.0.2

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 (81) hide show
  1. package/package.json +2 -2
  2. package/src/lib/actions/jobs.d.ts +2 -2
  3. package/src/lib/actions/jobs.d.ts.map +1 -1
  4. package/src/lib/actions/jobs.js +24 -4
  5. package/src/lib/actions/jobs.js.map +1 -1
  6. package/src/lib/actions/jobs.ts +24 -4
  7. package/src/lib/triggers/activity.d.ts +24 -12
  8. package/src/lib/triggers/activity.d.ts.map +1 -1
  9. package/src/lib/triggers/activity.js +45 -21
  10. package/src/lib/triggers/activity.js.map +1 -1
  11. package/src/lib/triggers/activity.ts +39 -24
  12. package/src/lib/triggers/bill.d.ts +64 -16
  13. package/src/lib/triggers/bill.d.ts.map +1 -1
  14. package/src/lib/triggers/bill.js +152 -28
  15. package/src/lib/triggers/bill.js.map +1 -1
  16. package/src/lib/triggers/bill.ts +136 -32
  17. package/src/lib/triggers/invoice.d.ts +64 -16
  18. package/src/lib/triggers/invoice.d.ts.map +1 -1
  19. package/src/lib/triggers/invoice.js +152 -28
  20. package/src/lib/triggers/invoice.js.map +1 -1
  21. package/src/lib/triggers/invoice.ts +136 -32
  22. package/src/lib/triggers/job.d.ts +144 -16
  23. package/src/lib/triggers/job.d.ts.map +1 -1
  24. package/src/lib/triggers/job.js +292 -28
  25. package/src/lib/triggers/job.js.map +1 -1
  26. package/src/lib/triggers/job.ts +256 -32
  27. package/src/lib/triggers/lead.d.ts +112 -16
  28. package/src/lib/triggers/lead.d.ts.map +1 -1
  29. package/src/lib/triggers/lead.js +200 -28
  30. package/src/lib/triggers/lead.js.map +1 -1
  31. package/src/lib/triggers/lead.ts +172 -32
  32. package/src/lib/triggers/opportunity.d.ts +80 -16
  33. package/src/lib/triggers/opportunity.d.ts.map +1 -1
  34. package/src/lib/triggers/opportunity.js +144 -28
  35. package/src/lib/triggers/opportunity.js.map +1 -1
  36. package/src/lib/triggers/opportunity.ts +124 -32
  37. package/src/lib/triggers/quote.d.ts +64 -16
  38. package/src/lib/triggers/quote.d.ts.map +1 -1
  39. package/src/lib/triggers/quote.js +152 -28
  40. package/src/lib/triggers/quote.js.map +1 -1
  41. package/src/lib/triggers/quote.ts +136 -32
  42. package/src/lib/triggers/stage.d.ts +112 -16
  43. package/src/lib/triggers/stage.d.ts.map +1 -1
  44. package/src/lib/triggers/stage.js +236 -28
  45. package/src/lib/triggers/stage.js.map +1 -1
  46. package/src/lib/triggers/stage.ts +212 -32
  47. package/src/lib/triggers/task.d.ts +16 -16
  48. package/src/lib/triggers/task.d.ts.map +1 -1
  49. package/src/lib/triggers/task.js +32 -28
  50. package/src/lib/triggers/task.js.map +1 -1
  51. package/src/lib/triggers/task.ts +28 -32
  52. package/src/lib/actions/mcp-context.d.ts +0 -16
  53. package/src/lib/actions/mcp-context.d.ts.map +0 -1
  54. package/src/lib/actions/mcp-context.js +0 -82
  55. package/src/lib/actions/mcp-context.js.map +0 -1
  56. package/src/lib/actions/mcp-context.ts +0 -86
  57. package/src/lib/actions/webhooks.d.ts +0 -48
  58. package/src/lib/actions/webhooks.d.ts.map +0 -1
  59. package/src/lib/actions/webhooks.js +0 -292
  60. package/src/lib/actions/webhooks.js.map +0 -1
  61. package/src/lib/actions/webhooks.ts +0 -318
  62. package/src/lib/triggers/allocation.d.ts +0 -53
  63. package/src/lib/triggers/allocation.d.ts.map +0 -1
  64. package/src/lib/triggers/allocation.js +0 -181
  65. package/src/lib/triggers/allocation.js.map +0 -1
  66. package/src/lib/triggers/allocation.ts +0 -198
  67. package/src/lib/triggers/form.d.ts +0 -19
  68. package/src/lib/triggers/form.d.ts.map +0 -1
  69. package/src/lib/triggers/form.js +0 -65
  70. package/src/lib/triggers/form.js.map +0 -1
  71. package/src/lib/triggers/form.ts +0 -68
  72. package/src/lib/triggers/item.d.ts +0 -53
  73. package/src/lib/triggers/item.d.ts.map +0 -1
  74. package/src/lib/triggers/item.js +0 -181
  75. package/src/lib/triggers/item.js.map +0 -1
  76. package/src/lib/triggers/item.ts +0 -198
  77. package/src/lib/triggers/site.d.ts +0 -19
  78. package/src/lib/triggers/site.d.ts.map +0 -1
  79. package/src/lib/triggers/site.js +0 -65
  80. package/src/lib/triggers/site.js.map +0 -1
  81. package/src/lib/triggers/site.ts +0 -68
@@ -4,99 +4,195 @@ export declare const stage_created_trigger: import("@activepieces/pieces-framewo
4
4
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
5
5
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
6
6
  }>, {
7
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
7
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
8
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
9
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
10
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
11
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
12
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
13
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
8
14
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
9
15
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
10
16
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
11
17
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
12
18
  }>, {
13
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
19
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
20
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
21
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
22
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
23
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
24
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
25
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
14
26
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
15
27
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
16
28
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
17
29
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
18
30
  }>, {
19
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
31
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
32
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
33
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
34
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
35
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
36
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
37
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
20
38
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
21
39
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
22
40
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
23
41
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
24
42
  }>, {
25
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
43
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
44
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
45
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
46
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
47
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
48
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
49
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
26
50
  }>;
27
51
  export declare const stage_updated_trigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
28
52
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
29
53
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
30
54
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
31
55
  }>, {
32
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
56
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
57
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
58
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
59
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
60
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
61
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
62
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
33
63
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
34
64
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
35
65
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
36
66
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
37
67
  }>, {
38
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
68
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
69
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
70
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
71
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
72
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
73
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
74
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
39
75
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
40
76
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
41
77
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
42
78
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
43
79
  }>, {
44
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
80
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
81
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
82
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
83
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
84
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
85
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
86
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
45
87
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
46
88
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
47
89
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
48
90
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
49
91
  }>, {
50
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
92
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
93
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
94
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
95
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
96
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
97
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
98
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
51
99
  }>;
52
100
  export declare const stage_status_changed_trigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
53
101
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
54
102
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
55
103
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
56
104
  }>, {
57
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
105
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
106
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
107
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
108
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
109
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
110
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
111
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
58
112
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
59
113
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
60
114
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
61
115
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
62
116
  }>, {
63
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
117
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
118
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
119
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
120
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
121
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
122
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
123
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
64
124
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
65
125
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
66
126
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
67
127
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
68
128
  }>, {
69
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
129
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
130
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
131
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
132
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
133
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
134
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
135
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
70
136
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
71
137
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
72
138
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
73
139
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
74
140
  }>, {
75
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
141
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
142
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
143
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
144
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
145
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
146
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
147
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
76
148
  }>;
77
149
  export declare const stage_deleted_trigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
78
150
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
79
151
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
80
152
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
81
153
  }>, {
82
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
154
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
155
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
156
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
157
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
158
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
159
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
160
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
83
161
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
84
162
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
85
163
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
86
164
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
87
165
  }>, {
88
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
166
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
167
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
168
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
169
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
170
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
171
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
172
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
89
173
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
90
174
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
91
175
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
92
176
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
93
177
  }>, {
94
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
178
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
179
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
180
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
181
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
182
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
183
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
184
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
95
185
  }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
96
186
  baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
97
187
  clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
98
188
  clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
99
189
  }>, {
100
- filters: import("@activepieces/pieces-framework").JsonProperty<false>;
190
+ customer: import("@activepieces/pieces-framework").ArrayProperty<false>;
191
+ billingCompany: import("@activepieces/pieces-framework").ArrayProperty<false>;
192
+ tag: import("@activepieces/pieces-framework").ArrayProperty<false>;
193
+ resource: import("@activepieces/pieces-framework").ArrayProperty<false>;
194
+ workCategory: import("@activepieces/pieces-framework").ArrayProperty<false>;
195
+ stageStatus: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
196
+ schedulingTag: import("@activepieces/pieces-framework").ArrayProperty<false>;
101
197
  }>;
102
198
  //# sourceMappingURL=stage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,gCAAgC,CAAC;AAI1F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA8HhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA8HhC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EA8HvC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA8HhC,CAAC"}
1
+ {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,gCAAgC,CAAC;AAI1F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KhC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KvC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KhC,CAAC"}
@@ -10,11 +10,49 @@ exports.stage_created_trigger = (0, pieces_framework_1.createTrigger)({
10
10
  displayName: 'Stage Created',
11
11
  description: 'Triggered when a new stage is created',
12
12
  props: {
13
- filters: pieces_framework_1.Property.Json({
14
- displayName: 'Filters',
15
- description: 'Optional webhook filters object. Discover allowed fields with GET /webhooks/entities/:entity/filters.',
13
+ customer: pieces_framework_1.Property.Array({
14
+ displayName: 'Filter by Customer',
15
+ description: 'Only trigger for specific customer IDs',
16
+ required: false,
17
+ }),
18
+ billingCompany: pieces_framework_1.Property.Array({
19
+ displayName: 'Filter by Billing Company',
20
+ description: 'Only trigger for specific billing company IDs',
21
+ required: false,
22
+ }),
23
+ tag: pieces_framework_1.Property.Array({
24
+ displayName: 'Filter by Tags',
25
+ description: 'Only trigger for specific tags IDs',
26
+ required: false,
27
+ }),
28
+ resource: pieces_framework_1.Property.Array({
29
+ displayName: 'Filter by Resource',
30
+ description: 'Only trigger for specific resource IDs',
31
+ required: false,
32
+ }),
33
+ workCategory: pieces_framework_1.Property.Array({
34
+ displayName: 'Filter by Work Category',
35
+ description: 'Only trigger for specific work category IDs',
36
+ required: false,
37
+ }),
38
+ stageStatus: pieces_framework_1.Property.StaticMultiSelectDropdown({
39
+ displayName: 'Filter by Status',
40
+ description: 'Only trigger when the status matches one of these values',
41
+ required: false,
42
+ options: {
43
+ options: [
44
+ { label: 'Open', value: JSON.stringify({ match: 'systemStatus', value: 'Open' }) },
45
+ { label: 'InProgress', value: JSON.stringify({ match: 'systemStatus', value: 'InProgress' }) },
46
+ { label: 'Completed', value: JSON.stringify({ match: 'systemStatus', value: 'Completed' }) },
47
+ { label: 'Closed', value: JSON.stringify({ match: 'systemStatus', value: 'Closed' }) },
48
+ { label: 'Cancelled', value: JSON.stringify({ match: 'systemStatus', value: 'Cancelled' }) },
49
+ ],
50
+ },
51
+ }),
52
+ schedulingTag: pieces_framework_1.Property.Array({
53
+ displayName: 'Filter by Scheduling Tag',
54
+ description: 'Only trigger for specific scheduling tag IDs',
16
55
  required: false,
17
- defaultValue: {},
18
56
  }),
19
57
  },
20
58
  sampleData: {
@@ -74,6 +112,22 @@ exports.stage_created_trigger = (0, pieces_framework_1.createTrigger)({
74
112
  async onEnable(context) {
75
113
  const token = await (0, auth_1.getAccessToken)(context.auth);
76
114
  const baseUrl = context.auth.props.baseUrl;
115
+ // Assemble filters from individual props
116
+ const filters = {};
117
+ if (context.propsValue.customer?.length)
118
+ filters.customer = context.propsValue.customer;
119
+ if (context.propsValue.billingCompany?.length)
120
+ filters.billingCompany = context.propsValue.billingCompany;
121
+ if (context.propsValue.tag?.length)
122
+ filters.tag = context.propsValue.tag;
123
+ if (context.propsValue.resource?.length)
124
+ filters.resource = context.propsValue.resource;
125
+ if (context.propsValue.workCategory?.length)
126
+ filters.workCategory = context.propsValue.workCategory;
127
+ if (context.propsValue.stageStatus?.length)
128
+ filters.stageStatus = context.propsValue.stageStatus.map((v) => JSON.parse(v));
129
+ if (context.propsValue.schedulingTag?.length)
130
+ filters.schedulingTag = context.propsValue.schedulingTag;
77
131
  // Register webhook with WorkBuddy v2 API (server handles upsert - reactivates if exists)
78
132
  const response = await pieces_common_1.httpClient.sendRequest({
79
133
  method: pieces_common_1.HttpMethod.POST,
@@ -88,9 +142,7 @@ exports.stage_created_trigger = (0, pieces_framework_1.createTrigger)({
88
142
  url: context.webhookUrl,
89
143
  entity: 'stage',
90
144
  events: ['Stage Created'],
91
- ...(context.propsValue.filters && Object.keys(context.propsValue.filters).length > 0
92
- ? { filters: context.propsValue.filters }
93
- : {}),
145
+ ...(Object.keys(filters).length > 0 ? { filters } : {}),
94
146
  workflow: {
95
147
  platform: 'activepieces',
96
148
  integrationId: context.webhookUrl,
@@ -130,11 +182,49 @@ exports.stage_updated_trigger = (0, pieces_framework_1.createTrigger)({
130
182
  displayName: 'Stage Updated',
131
183
  description: 'Triggered when a stage is updated',
132
184
  props: {
133
- filters: pieces_framework_1.Property.Json({
134
- displayName: 'Filters',
135
- description: 'Optional webhook filters object. Discover allowed fields with GET /webhooks/entities/:entity/filters.',
185
+ customer: pieces_framework_1.Property.Array({
186
+ displayName: 'Filter by Customer',
187
+ description: 'Only trigger for specific customer IDs',
188
+ required: false,
189
+ }),
190
+ billingCompany: pieces_framework_1.Property.Array({
191
+ displayName: 'Filter by Billing Company',
192
+ description: 'Only trigger for specific billing company IDs',
193
+ required: false,
194
+ }),
195
+ tag: pieces_framework_1.Property.Array({
196
+ displayName: 'Filter by Tags',
197
+ description: 'Only trigger for specific tags IDs',
198
+ required: false,
199
+ }),
200
+ resource: pieces_framework_1.Property.Array({
201
+ displayName: 'Filter by Resource',
202
+ description: 'Only trigger for specific resource IDs',
203
+ required: false,
204
+ }),
205
+ workCategory: pieces_framework_1.Property.Array({
206
+ displayName: 'Filter by Work Category',
207
+ description: 'Only trigger for specific work category IDs',
208
+ required: false,
209
+ }),
210
+ stageStatus: pieces_framework_1.Property.StaticMultiSelectDropdown({
211
+ displayName: 'Filter by Status',
212
+ description: 'Only trigger when the status matches one of these values',
213
+ required: false,
214
+ options: {
215
+ options: [
216
+ { label: 'Open', value: JSON.stringify({ match: 'systemStatus', value: 'Open' }) },
217
+ { label: 'InProgress', value: JSON.stringify({ match: 'systemStatus', value: 'InProgress' }) },
218
+ { label: 'Completed', value: JSON.stringify({ match: 'systemStatus', value: 'Completed' }) },
219
+ { label: 'Closed', value: JSON.stringify({ match: 'systemStatus', value: 'Closed' }) },
220
+ { label: 'Cancelled', value: JSON.stringify({ match: 'systemStatus', value: 'Cancelled' }) },
221
+ ],
222
+ },
223
+ }),
224
+ schedulingTag: pieces_framework_1.Property.Array({
225
+ displayName: 'Filter by Scheduling Tag',
226
+ description: 'Only trigger for specific scheduling tag IDs',
136
227
  required: false,
137
- defaultValue: {},
138
228
  }),
139
229
  },
140
230
  sampleData: {
@@ -194,6 +284,22 @@ exports.stage_updated_trigger = (0, pieces_framework_1.createTrigger)({
194
284
  async onEnable(context) {
195
285
  const token = await (0, auth_1.getAccessToken)(context.auth);
196
286
  const baseUrl = context.auth.props.baseUrl;
287
+ // Assemble filters from individual props
288
+ const filters = {};
289
+ if (context.propsValue.customer?.length)
290
+ filters.customer = context.propsValue.customer;
291
+ if (context.propsValue.billingCompany?.length)
292
+ filters.billingCompany = context.propsValue.billingCompany;
293
+ if (context.propsValue.tag?.length)
294
+ filters.tag = context.propsValue.tag;
295
+ if (context.propsValue.resource?.length)
296
+ filters.resource = context.propsValue.resource;
297
+ if (context.propsValue.workCategory?.length)
298
+ filters.workCategory = context.propsValue.workCategory;
299
+ if (context.propsValue.stageStatus?.length)
300
+ filters.stageStatus = context.propsValue.stageStatus.map((v) => JSON.parse(v));
301
+ if (context.propsValue.schedulingTag?.length)
302
+ filters.schedulingTag = context.propsValue.schedulingTag;
197
303
  // Register webhook with WorkBuddy v2 API (server handles upsert - reactivates if exists)
198
304
  const response = await pieces_common_1.httpClient.sendRequest({
199
305
  method: pieces_common_1.HttpMethod.POST,
@@ -208,9 +314,7 @@ exports.stage_updated_trigger = (0, pieces_framework_1.createTrigger)({
208
314
  url: context.webhookUrl,
209
315
  entity: 'stage',
210
316
  events: ['Stage Updated'],
211
- ...(context.propsValue.filters && Object.keys(context.propsValue.filters).length > 0
212
- ? { filters: context.propsValue.filters }
213
- : {}),
317
+ ...(Object.keys(filters).length > 0 ? { filters } : {}),
214
318
  workflow: {
215
319
  platform: 'activepieces',
216
320
  integrationId: context.webhookUrl,
@@ -250,11 +354,49 @@ exports.stage_status_changed_trigger = (0, pieces_framework_1.createTrigger)({
250
354
  displayName: 'Stage Status Changed',
251
355
  description: 'Triggered when a stage status changes',
252
356
  props: {
253
- filters: pieces_framework_1.Property.Json({
254
- displayName: 'Filters',
255
- description: 'Optional webhook filters object. Discover allowed fields with GET /webhooks/entities/:entity/filters.',
357
+ customer: pieces_framework_1.Property.Array({
358
+ displayName: 'Filter by Customer',
359
+ description: 'Only trigger for specific customer IDs',
360
+ required: false,
361
+ }),
362
+ billingCompany: pieces_framework_1.Property.Array({
363
+ displayName: 'Filter by Billing Company',
364
+ description: 'Only trigger for specific billing company IDs',
365
+ required: false,
366
+ }),
367
+ tag: pieces_framework_1.Property.Array({
368
+ displayName: 'Filter by Tags',
369
+ description: 'Only trigger for specific tags IDs',
370
+ required: false,
371
+ }),
372
+ resource: pieces_framework_1.Property.Array({
373
+ displayName: 'Filter by Resource',
374
+ description: 'Only trigger for specific resource IDs',
375
+ required: false,
376
+ }),
377
+ workCategory: pieces_framework_1.Property.Array({
378
+ displayName: 'Filter by Work Category',
379
+ description: 'Only trigger for specific work category IDs',
380
+ required: false,
381
+ }),
382
+ stageStatus: pieces_framework_1.Property.StaticMultiSelectDropdown({
383
+ displayName: 'Filter by Status',
384
+ description: 'Only trigger when the status matches one of these values',
385
+ required: false,
386
+ options: {
387
+ options: [
388
+ { label: 'Open', value: JSON.stringify({ match: 'systemStatus', value: 'Open' }) },
389
+ { label: 'InProgress', value: JSON.stringify({ match: 'systemStatus', value: 'InProgress' }) },
390
+ { label: 'Completed', value: JSON.stringify({ match: 'systemStatus', value: 'Completed' }) },
391
+ { label: 'Closed', value: JSON.stringify({ match: 'systemStatus', value: 'Closed' }) },
392
+ { label: 'Cancelled', value: JSON.stringify({ match: 'systemStatus', value: 'Cancelled' }) },
393
+ ],
394
+ },
395
+ }),
396
+ schedulingTag: pieces_framework_1.Property.Array({
397
+ displayName: 'Filter by Scheduling Tag',
398
+ description: 'Only trigger for specific scheduling tag IDs',
256
399
  required: false,
257
- defaultValue: {},
258
400
  }),
259
401
  },
260
402
  sampleData: {
@@ -314,6 +456,22 @@ exports.stage_status_changed_trigger = (0, pieces_framework_1.createTrigger)({
314
456
  async onEnable(context) {
315
457
  const token = await (0, auth_1.getAccessToken)(context.auth);
316
458
  const baseUrl = context.auth.props.baseUrl;
459
+ // Assemble filters from individual props
460
+ const filters = {};
461
+ if (context.propsValue.customer?.length)
462
+ filters.customer = context.propsValue.customer;
463
+ if (context.propsValue.billingCompany?.length)
464
+ filters.billingCompany = context.propsValue.billingCompany;
465
+ if (context.propsValue.tag?.length)
466
+ filters.tag = context.propsValue.tag;
467
+ if (context.propsValue.resource?.length)
468
+ filters.resource = context.propsValue.resource;
469
+ if (context.propsValue.workCategory?.length)
470
+ filters.workCategory = context.propsValue.workCategory;
471
+ if (context.propsValue.stageStatus?.length)
472
+ filters.stageStatus = context.propsValue.stageStatus.map((v) => JSON.parse(v));
473
+ if (context.propsValue.schedulingTag?.length)
474
+ filters.schedulingTag = context.propsValue.schedulingTag;
317
475
  // Register webhook with WorkBuddy v2 API (server handles upsert - reactivates if exists)
318
476
  const response = await pieces_common_1.httpClient.sendRequest({
319
477
  method: pieces_common_1.HttpMethod.POST,
@@ -328,9 +486,7 @@ exports.stage_status_changed_trigger = (0, pieces_framework_1.createTrigger)({
328
486
  url: context.webhookUrl,
329
487
  entity: 'stage',
330
488
  events: ['Stage Status Changed'],
331
- ...(context.propsValue.filters && Object.keys(context.propsValue.filters).length > 0
332
- ? { filters: context.propsValue.filters }
333
- : {}),
489
+ ...(Object.keys(filters).length > 0 ? { filters } : {}),
334
490
  workflow: {
335
491
  platform: 'activepieces',
336
492
  integrationId: context.webhookUrl,
@@ -370,11 +526,49 @@ exports.stage_deleted_trigger = (0, pieces_framework_1.createTrigger)({
370
526
  displayName: 'Stage Deleted',
371
527
  description: 'Triggered when a stage is deleted',
372
528
  props: {
373
- filters: pieces_framework_1.Property.Json({
374
- displayName: 'Filters',
375
- description: 'Optional webhook filters object. Discover allowed fields with GET /webhooks/entities/:entity/filters.',
529
+ customer: pieces_framework_1.Property.Array({
530
+ displayName: 'Filter by Customer',
531
+ description: 'Only trigger for specific customer IDs',
532
+ required: false,
533
+ }),
534
+ billingCompany: pieces_framework_1.Property.Array({
535
+ displayName: 'Filter by Billing Company',
536
+ description: 'Only trigger for specific billing company IDs',
537
+ required: false,
538
+ }),
539
+ tag: pieces_framework_1.Property.Array({
540
+ displayName: 'Filter by Tags',
541
+ description: 'Only trigger for specific tags IDs',
542
+ required: false,
543
+ }),
544
+ resource: pieces_framework_1.Property.Array({
545
+ displayName: 'Filter by Resource',
546
+ description: 'Only trigger for specific resource IDs',
547
+ required: false,
548
+ }),
549
+ workCategory: pieces_framework_1.Property.Array({
550
+ displayName: 'Filter by Work Category',
551
+ description: 'Only trigger for specific work category IDs',
552
+ required: false,
553
+ }),
554
+ stageStatus: pieces_framework_1.Property.StaticMultiSelectDropdown({
555
+ displayName: 'Filter by Status',
556
+ description: 'Only trigger when the status matches one of these values',
557
+ required: false,
558
+ options: {
559
+ options: [
560
+ { label: 'Open', value: JSON.stringify({ match: 'systemStatus', value: 'Open' }) },
561
+ { label: 'InProgress', value: JSON.stringify({ match: 'systemStatus', value: 'InProgress' }) },
562
+ { label: 'Completed', value: JSON.stringify({ match: 'systemStatus', value: 'Completed' }) },
563
+ { label: 'Closed', value: JSON.stringify({ match: 'systemStatus', value: 'Closed' }) },
564
+ { label: 'Cancelled', value: JSON.stringify({ match: 'systemStatus', value: 'Cancelled' }) },
565
+ ],
566
+ },
567
+ }),
568
+ schedulingTag: pieces_framework_1.Property.Array({
569
+ displayName: 'Filter by Scheduling Tag',
570
+ description: 'Only trigger for specific scheduling tag IDs',
376
571
  required: false,
377
- defaultValue: {},
378
572
  }),
379
573
  },
380
574
  sampleData: {
@@ -434,6 +628,22 @@ exports.stage_deleted_trigger = (0, pieces_framework_1.createTrigger)({
434
628
  async onEnable(context) {
435
629
  const token = await (0, auth_1.getAccessToken)(context.auth);
436
630
  const baseUrl = context.auth.props.baseUrl;
631
+ // Assemble filters from individual props
632
+ const filters = {};
633
+ if (context.propsValue.customer?.length)
634
+ filters.customer = context.propsValue.customer;
635
+ if (context.propsValue.billingCompany?.length)
636
+ filters.billingCompany = context.propsValue.billingCompany;
637
+ if (context.propsValue.tag?.length)
638
+ filters.tag = context.propsValue.tag;
639
+ if (context.propsValue.resource?.length)
640
+ filters.resource = context.propsValue.resource;
641
+ if (context.propsValue.workCategory?.length)
642
+ filters.workCategory = context.propsValue.workCategory;
643
+ if (context.propsValue.stageStatus?.length)
644
+ filters.stageStatus = context.propsValue.stageStatus.map((v) => JSON.parse(v));
645
+ if (context.propsValue.schedulingTag?.length)
646
+ filters.schedulingTag = context.propsValue.schedulingTag;
437
647
  // Register webhook with WorkBuddy v2 API (server handles upsert - reactivates if exists)
438
648
  const response = await pieces_common_1.httpClient.sendRequest({
439
649
  method: pieces_common_1.HttpMethod.POST,
@@ -448,9 +658,7 @@ exports.stage_deleted_trigger = (0, pieces_framework_1.createTrigger)({
448
658
  url: context.webhookUrl,
449
659
  entity: 'stage',
450
660
  events: ['Stage Deleted'],
451
- ...(context.propsValue.filters && Object.keys(context.propsValue.filters).length > 0
452
- ? { filters: context.propsValue.filters }
453
- : {}),
661
+ ...(Object.keys(filters).length > 0 ? { filters } : {}),
454
662
  workflow: {
455
663
  platform: 'activepieces',
456
664
  integrationId: context.webhookUrl,