@workbuddy/piece-workbuddy-vnext 1.0.92 → 1.0.94
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.
- package/package.json +1 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +21 -0
- package/src/index.js.map +1 -1
- package/src/index.ts +42 -0
- package/src/lib/actions/crm-contractors.d.ts +1 -0
- package/src/lib/actions/crm-contractors.d.ts.map +1 -1
- package/src/lib/actions/crm-contractors.js +6 -0
- package/src/lib/actions/crm-contractors.js.map +1 -1
- package/src/lib/actions/crm-contractors.ts +6 -0
- package/src/lib/actions/crm-customers.d.ts +1 -0
- package/src/lib/actions/crm-customers.d.ts.map +1 -1
- package/src/lib/actions/crm-customers.js +6 -0
- package/src/lib/actions/crm-customers.js.map +1 -1
- package/src/lib/actions/crm-customers.ts +6 -0
- package/src/lib/actions/crm-suppliers.d.ts +1 -0
- package/src/lib/actions/crm-suppliers.d.ts.map +1 -1
- package/src/lib/actions/crm-suppliers.js +6 -0
- package/src/lib/actions/crm-suppliers.js.map +1 -1
- package/src/lib/actions/crm-suppliers.ts +6 -0
- package/src/lib/actions/index.d.ts +4 -0
- package/src/lib/actions/index.d.ts.map +1 -1
- package/src/lib/actions/index.js +4 -0
- package/src/lib/actions/index.js.map +1 -1
- package/src/lib/actions/index.ts +4 -0
- package/src/lib/actions/jobs.d.ts +2 -2
- package/src/lib/actions/jobs.d.ts.map +1 -1
- package/src/lib/actions/jobs.js +4 -24
- package/src/lib/actions/jobs.js.map +1 -1
- package/src/lib/actions/jobs.ts +4 -24
- package/src/lib/actions/service-plans-lines-tasks-subtasks.d.ts +52 -0
- package/src/lib/actions/service-plans-lines-tasks-subtasks.d.ts.map +1 -0
- package/src/lib/actions/service-plans-lines-tasks-subtasks.js +257 -0
- package/src/lib/actions/service-plans-lines-tasks-subtasks.js.map +1 -0
- package/src/lib/actions/service-plans-lines-tasks-subtasks.ts +274 -0
- package/src/lib/actions/service-plans-lines-tasks.d.ts +51 -0
- package/src/lib/actions/service-plans-lines-tasks.d.ts.map +1 -0
- package/src/lib/actions/service-plans-lines-tasks.js +255 -0
- package/src/lib/actions/service-plans-lines-tasks.js.map +1 -0
- package/src/lib/actions/service-plans-lines-tasks.ts +272 -0
- package/src/lib/actions/service-plans-lines.d.ts +48 -0
- package/src/lib/actions/service-plans-lines.d.ts.map +1 -0
- package/src/lib/actions/service-plans-lines.js +262 -0
- package/src/lib/actions/service-plans-lines.js.map +1 -0
- package/src/lib/actions/service-plans-lines.ts +278 -0
- package/src/lib/actions/service-plans.d.ts +47 -0
- package/src/lib/actions/service-plans.d.ts.map +1 -0
- package/src/lib/actions/service-plans.js +241 -0
- package/src/lib/actions/service-plans.js.map +1 -0
- package/src/lib/actions/service-plans.ts +262 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { createAction, Property } from '@activepieces/pieces-framework';
|
|
2
|
+
import { HttpMethod, httpClient } from '@activepieces/pieces-common';
|
|
3
|
+
import { workbuddyAuth, getAccessToken } from '../auth';
|
|
4
|
+
|
|
5
|
+
export const PublicServiceLineSubtaskController_list = createAction({
|
|
6
|
+
name: 'PublicServiceLineSubtaskController_list',
|
|
7
|
+
auth: workbuddyAuth,
|
|
8
|
+
displayName: 'List Subtasks',
|
|
9
|
+
description: '',
|
|
10
|
+
props: {
|
|
11
|
+
planId: Property.ShortText({
|
|
12
|
+
displayName: 'Plan Id',
|
|
13
|
+
description: 'WorkBuddy Service Plan ID',
|
|
14
|
+
required: true,
|
|
15
|
+
}),
|
|
16
|
+
lineId: Property.ShortText({
|
|
17
|
+
displayName: 'Line Id',
|
|
18
|
+
description: 'WorkBuddy Service Line ID or caller integrationId',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
taskId: Property.ShortText({
|
|
22
|
+
displayName: 'Task Id',
|
|
23
|
+
description: 'WorkBuddy root Task ID or caller integrationId',
|
|
24
|
+
required: true,
|
|
25
|
+
}),
|
|
26
|
+
},
|
|
27
|
+
async run(context) {
|
|
28
|
+
const token = await getAccessToken(context.auth);
|
|
29
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
30
|
+
|
|
31
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks`;
|
|
32
|
+
|
|
33
|
+
const response = await httpClient.sendRequest({
|
|
34
|
+
method: HttpMethod.GET,
|
|
35
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks`,
|
|
36
|
+
headers: {
|
|
37
|
+
Authorization: `Bearer ${token}`,
|
|
38
|
+
'Content-Type': 'application/json',
|
|
39
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return response.body;
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const PublicServiceLineSubtaskController_create = createAction({
|
|
48
|
+
name: 'PublicServiceLineSubtaskController_create',
|
|
49
|
+
auth: workbuddyAuth,
|
|
50
|
+
displayName: 'Create Subtasks',
|
|
51
|
+
description:
|
|
52
|
+
'Pass one Subtask, or `{ items }` with 1–100 Subtasks. Bounded domain ingest — not N public creates. Schedule and start-date fields are rejected.',
|
|
53
|
+
props: {
|
|
54
|
+
planId: Property.ShortText({
|
|
55
|
+
displayName: 'Plan Id',
|
|
56
|
+
description: 'plan ID',
|
|
57
|
+
required: true,
|
|
58
|
+
}),
|
|
59
|
+
lineId: Property.ShortText({
|
|
60
|
+
displayName: 'Line Id',
|
|
61
|
+
description: 'line ID',
|
|
62
|
+
required: true,
|
|
63
|
+
}),
|
|
64
|
+
taskId: Property.ShortText({
|
|
65
|
+
displayName: 'Task Id',
|
|
66
|
+
description: 'task ID',
|
|
67
|
+
required: true,
|
|
68
|
+
}),
|
|
69
|
+
items: Property.Json({
|
|
70
|
+
displayName: 'Items',
|
|
71
|
+
description: '',
|
|
72
|
+
required: true,
|
|
73
|
+
defaultValue: [],
|
|
74
|
+
}),
|
|
75
|
+
},
|
|
76
|
+
async run(context) {
|
|
77
|
+
const token = await getAccessToken(context.auth);
|
|
78
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
79
|
+
|
|
80
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks`;
|
|
81
|
+
|
|
82
|
+
const rawBody: Record<string, unknown> = {
|
|
83
|
+
items: context.propsValue.items,
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const body = rawBody;
|
|
87
|
+
const response = await httpClient.sendRequest({
|
|
88
|
+
method: HttpMethod.POST,
|
|
89
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks`,
|
|
90
|
+
headers: {
|
|
91
|
+
Authorization: `Bearer ${token}`,
|
|
92
|
+
'Content-Type': 'application/json',
|
|
93
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
94
|
+
},
|
|
95
|
+
body: body,
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
return response.body;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export const PublicServiceLineSubtaskController_get = createAction({
|
|
103
|
+
name: 'PublicServiceLineSubtaskController_get',
|
|
104
|
+
auth: workbuddyAuth,
|
|
105
|
+
displayName: 'Get a Subtask',
|
|
106
|
+
description: '',
|
|
107
|
+
props: {
|
|
108
|
+
planId: Property.ShortText({
|
|
109
|
+
displayName: 'Plan Id',
|
|
110
|
+
description: 'plan ID',
|
|
111
|
+
required: true,
|
|
112
|
+
}),
|
|
113
|
+
lineId: Property.ShortText({
|
|
114
|
+
displayName: 'Line Id',
|
|
115
|
+
description: 'line ID',
|
|
116
|
+
required: true,
|
|
117
|
+
}),
|
|
118
|
+
taskId: Property.ShortText({
|
|
119
|
+
displayName: 'Task Id',
|
|
120
|
+
description: 'task ID',
|
|
121
|
+
required: true,
|
|
122
|
+
}),
|
|
123
|
+
identifier: Property.ShortText({
|
|
124
|
+
displayName: 'Identifier',
|
|
125
|
+
description: 'WorkBuddy Subtask ID or caller integrationId',
|
|
126
|
+
required: true,
|
|
127
|
+
}),
|
|
128
|
+
},
|
|
129
|
+
async run(context) {
|
|
130
|
+
const token = await getAccessToken(context.auth);
|
|
131
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
132
|
+
|
|
133
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks/${context.propsValue.identifier}`;
|
|
134
|
+
|
|
135
|
+
const response = await httpClient.sendRequest({
|
|
136
|
+
method: HttpMethod.GET,
|
|
137
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks/${context.propsValue.identifier}`,
|
|
138
|
+
headers: {
|
|
139
|
+
Authorization: `Bearer ${token}`,
|
|
140
|
+
'Content-Type': 'application/json',
|
|
141
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
return response.body;
|
|
146
|
+
},
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export const PublicServiceLineSubtaskController_patch = createAction({
|
|
150
|
+
name: 'PublicServiceLineSubtaskController_patch',
|
|
151
|
+
auth: workbuddyAuth,
|
|
152
|
+
displayName: 'Update a Subtask',
|
|
153
|
+
description: '',
|
|
154
|
+
props: {
|
|
155
|
+
planId: Property.ShortText({
|
|
156
|
+
displayName: 'Plan Id',
|
|
157
|
+
description: 'plan ID',
|
|
158
|
+
required: true,
|
|
159
|
+
}),
|
|
160
|
+
lineId: Property.ShortText({
|
|
161
|
+
displayName: 'Line Id',
|
|
162
|
+
description: 'line ID',
|
|
163
|
+
required: true,
|
|
164
|
+
}),
|
|
165
|
+
taskId: Property.ShortText({
|
|
166
|
+
displayName: 'Task Id',
|
|
167
|
+
description: 'task ID',
|
|
168
|
+
required: true,
|
|
169
|
+
}),
|
|
170
|
+
identifier: Property.ShortText({
|
|
171
|
+
displayName: 'Identifier',
|
|
172
|
+
description: 'Entity ID or human-readable number',
|
|
173
|
+
required: true,
|
|
174
|
+
}),
|
|
175
|
+
name: Property.ShortText({
|
|
176
|
+
displayName: 'Name',
|
|
177
|
+
description: 'Display name',
|
|
178
|
+
required: false,
|
|
179
|
+
}),
|
|
180
|
+
description: Property.LongText({
|
|
181
|
+
displayName: 'Description',
|
|
182
|
+
description: 'Detailed description',
|
|
183
|
+
required: false,
|
|
184
|
+
}),
|
|
185
|
+
mandatory: Property.Checkbox({
|
|
186
|
+
displayName: 'Mandatory',
|
|
187
|
+
description: '',
|
|
188
|
+
required: false,
|
|
189
|
+
}),
|
|
190
|
+
signatureEnabled: Property.Checkbox({
|
|
191
|
+
displayName: 'Signature Enabled',
|
|
192
|
+
description: '',
|
|
193
|
+
required: false,
|
|
194
|
+
}),
|
|
195
|
+
commentEnabled: Property.Checkbox({
|
|
196
|
+
displayName: 'Comment Enabled',
|
|
197
|
+
description: '',
|
|
198
|
+
required: false,
|
|
199
|
+
}),
|
|
200
|
+
beforePhotoEnabled: Property.Checkbox({
|
|
201
|
+
displayName: 'Before Photo Enabled',
|
|
202
|
+
description: '',
|
|
203
|
+
required: false,
|
|
204
|
+
}),
|
|
205
|
+
duringPhotoEnabled: Property.Checkbox({
|
|
206
|
+
displayName: 'During Photo Enabled',
|
|
207
|
+
description: '',
|
|
208
|
+
required: false,
|
|
209
|
+
}),
|
|
210
|
+
afterPhotoEnabled: Property.Checkbox({
|
|
211
|
+
displayName: 'After Photo Enabled',
|
|
212
|
+
description: '',
|
|
213
|
+
required: false,
|
|
214
|
+
}),
|
|
215
|
+
fileEnabled: Property.Checkbox({
|
|
216
|
+
displayName: 'File Enabled',
|
|
217
|
+
description: '',
|
|
218
|
+
required: false,
|
|
219
|
+
}),
|
|
220
|
+
fileTemplateId: Property.ShortText({
|
|
221
|
+
displayName: 'File Template Id',
|
|
222
|
+
description: 'file template ID',
|
|
223
|
+
required: false,
|
|
224
|
+
}),
|
|
225
|
+
formEnabled: Property.Checkbox({
|
|
226
|
+
displayName: 'Form Enabled',
|
|
227
|
+
description: '',
|
|
228
|
+
required: false,
|
|
229
|
+
}),
|
|
230
|
+
formTemplateId: Property.ShortText({
|
|
231
|
+
displayName: 'Form Template Id',
|
|
232
|
+
description: 'form template ID',
|
|
233
|
+
required: false,
|
|
234
|
+
}),
|
|
235
|
+
},
|
|
236
|
+
async run(context) {
|
|
237
|
+
const token = await getAccessToken(context.auth);
|
|
238
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
239
|
+
|
|
240
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks/${context.propsValue.identifier}`;
|
|
241
|
+
|
|
242
|
+
// Build body with only defined values (for partial updates)
|
|
243
|
+
const rawBody: Record<string, unknown> = {
|
|
244
|
+
name: context.propsValue.name,
|
|
245
|
+
description: context.propsValue.description,
|
|
246
|
+
mandatory: context.propsValue.mandatory,
|
|
247
|
+
signatureEnabled: context.propsValue.signatureEnabled,
|
|
248
|
+
commentEnabled: context.propsValue.commentEnabled,
|
|
249
|
+
beforePhotoEnabled: context.propsValue.beforePhotoEnabled,
|
|
250
|
+
duringPhotoEnabled: context.propsValue.duringPhotoEnabled,
|
|
251
|
+
afterPhotoEnabled: context.propsValue.afterPhotoEnabled,
|
|
252
|
+
fileEnabled: context.propsValue.fileEnabled,
|
|
253
|
+
fileTemplateId: context.propsValue.fileTemplateId,
|
|
254
|
+
formEnabled: context.propsValue.formEnabled,
|
|
255
|
+
formTemplateId: context.propsValue.formTemplateId,
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
const body = Object.fromEntries(
|
|
259
|
+
Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== '')
|
|
260
|
+
);
|
|
261
|
+
const response = await httpClient.sendRequest({
|
|
262
|
+
method: HttpMethod.PATCH,
|
|
263
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.taskId}/subtasks/${context.propsValue.identifier}`,
|
|
264
|
+
headers: {
|
|
265
|
+
Authorization: `Bearer ${token}`,
|
|
266
|
+
'Content-Type': 'application/json',
|
|
267
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
268
|
+
},
|
|
269
|
+
body: body,
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
return response.body;
|
|
273
|
+
},
|
|
274
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const PublicServiceLineTaskController_list: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
planId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
+
lineId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const PublicServiceLineTaskController_create: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
+
}>, {
|
|
14
|
+
planId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
lineId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
items: import("@activepieces/pieces-framework").JsonProperty<true>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const PublicServiceLineTaskController_get: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
19
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
22
|
+
}>, {
|
|
23
|
+
planId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
lineId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
25
|
+
identifier: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const PublicServiceLineTaskController_patch: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
28
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
31
|
+
}>, {
|
|
32
|
+
planId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
+
lineId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
+
identifier: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
35
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
36
|
+
description: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
37
|
+
startsOn: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
38
|
+
schedule: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
39
|
+
exceptions: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
40
|
+
mandatory: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
41
|
+
signatureEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
42
|
+
commentEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
43
|
+
beforePhotoEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
44
|
+
duringPhotoEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
45
|
+
afterPhotoEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
46
|
+
fileEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
47
|
+
fileTemplateId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
48
|
+
formEnabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
49
|
+
formTemplateId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
50
|
+
}>;
|
|
51
|
+
//# sourceMappingURL=service-plans-lines-tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-plans-lines-tasks.d.ts","sourceRoot":"","sources":["service-plans-lines-tasks.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oCAAoC;;;;;;;EAmC/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;EAgDjD,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;EAwC9C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;EA0IhD,CAAC"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicServiceLineTaskController_patch = exports.PublicServiceLineTaskController_get = exports.PublicServiceLineTaskController_create = exports.PublicServiceLineTaskController_list = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
exports.PublicServiceLineTaskController_list = (0, pieces_framework_1.createAction)({
|
|
8
|
+
name: 'PublicServiceLineTaskController_list',
|
|
9
|
+
auth: auth_1.workbuddyAuth,
|
|
10
|
+
displayName: 'List root Service Line Tasks',
|
|
11
|
+
description: '',
|
|
12
|
+
props: {
|
|
13
|
+
planId: pieces_framework_1.Property.ShortText({
|
|
14
|
+
displayName: 'Plan Id',
|
|
15
|
+
description: 'WorkBuddy Service Plan ID',
|
|
16
|
+
required: true,
|
|
17
|
+
}),
|
|
18
|
+
lineId: pieces_framework_1.Property.ShortText({
|
|
19
|
+
displayName: 'Line Id',
|
|
20
|
+
description: 'WorkBuddy Service Line ID or caller integrationId',
|
|
21
|
+
required: true,
|
|
22
|
+
}),
|
|
23
|
+
},
|
|
24
|
+
async run(context) {
|
|
25
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
26
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
27
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks`;
|
|
28
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
29
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
30
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks`,
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${token}`,
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return response.body;
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
exports.PublicServiceLineTaskController_create = (0, pieces_framework_1.createAction)({
|
|
41
|
+
name: 'PublicServiceLineTaskController_create',
|
|
42
|
+
auth: auth_1.workbuddyAuth,
|
|
43
|
+
displayName: 'Create root Service Line Tasks',
|
|
44
|
+
description: 'Pass one Task, or `{ items }` with 1–100 Tasks. Bulk ingest is a bounded domain command — not N public creates — and returns per-item created, existing, conflict, and invalid outcomes.',
|
|
45
|
+
props: {
|
|
46
|
+
planId: pieces_framework_1.Property.ShortText({
|
|
47
|
+
displayName: 'Plan Id',
|
|
48
|
+
description: 'plan ID',
|
|
49
|
+
required: true,
|
|
50
|
+
}),
|
|
51
|
+
lineId: pieces_framework_1.Property.ShortText({
|
|
52
|
+
displayName: 'Line Id',
|
|
53
|
+
description: 'line ID',
|
|
54
|
+
required: true,
|
|
55
|
+
}),
|
|
56
|
+
items: pieces_framework_1.Property.Json({
|
|
57
|
+
displayName: 'Items',
|
|
58
|
+
description: '',
|
|
59
|
+
required: true,
|
|
60
|
+
defaultValue: [],
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
|
+
async run(context) {
|
|
64
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
65
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
66
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks`;
|
|
67
|
+
const rawBody = {
|
|
68
|
+
items: context.propsValue.items,
|
|
69
|
+
};
|
|
70
|
+
const body = rawBody;
|
|
71
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
72
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
73
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks`,
|
|
74
|
+
headers: {
|
|
75
|
+
Authorization: `Bearer ${token}`,
|
|
76
|
+
'Content-Type': 'application/json',
|
|
77
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
78
|
+
},
|
|
79
|
+
body: body,
|
|
80
|
+
});
|
|
81
|
+
return response.body;
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
exports.PublicServiceLineTaskController_get = (0, pieces_framework_1.createAction)({
|
|
85
|
+
name: 'PublicServiceLineTaskController_get',
|
|
86
|
+
auth: auth_1.workbuddyAuth,
|
|
87
|
+
displayName: 'Get a root Service Line Task',
|
|
88
|
+
description: '',
|
|
89
|
+
props: {
|
|
90
|
+
planId: pieces_framework_1.Property.ShortText({
|
|
91
|
+
displayName: 'Plan Id',
|
|
92
|
+
description: 'plan ID',
|
|
93
|
+
required: true,
|
|
94
|
+
}),
|
|
95
|
+
lineId: pieces_framework_1.Property.ShortText({
|
|
96
|
+
displayName: 'Line Id',
|
|
97
|
+
description: 'line ID',
|
|
98
|
+
required: true,
|
|
99
|
+
}),
|
|
100
|
+
identifier: pieces_framework_1.Property.ShortText({
|
|
101
|
+
displayName: 'Identifier',
|
|
102
|
+
description: 'WorkBuddy Task ID or caller integrationId',
|
|
103
|
+
required: true,
|
|
104
|
+
}),
|
|
105
|
+
},
|
|
106
|
+
async run(context) {
|
|
107
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
108
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
109
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.identifier}`;
|
|
110
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
111
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
112
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.identifier}`,
|
|
113
|
+
headers: {
|
|
114
|
+
Authorization: `Bearer ${token}`,
|
|
115
|
+
'Content-Type': 'application/json',
|
|
116
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
return response.body;
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
exports.PublicServiceLineTaskController_patch = (0, pieces_framework_1.createAction)({
|
|
123
|
+
name: 'PublicServiceLineTaskController_patch',
|
|
124
|
+
auth: auth_1.workbuddyAuth,
|
|
125
|
+
displayName: 'Update a root Service Line Task',
|
|
126
|
+
description: '',
|
|
127
|
+
props: {
|
|
128
|
+
planId: pieces_framework_1.Property.ShortText({
|
|
129
|
+
displayName: 'Plan Id',
|
|
130
|
+
description: 'plan ID',
|
|
131
|
+
required: true,
|
|
132
|
+
}),
|
|
133
|
+
lineId: pieces_framework_1.Property.ShortText({
|
|
134
|
+
displayName: 'Line Id',
|
|
135
|
+
description: 'line ID',
|
|
136
|
+
required: true,
|
|
137
|
+
}),
|
|
138
|
+
identifier: pieces_framework_1.Property.ShortText({
|
|
139
|
+
displayName: 'Identifier',
|
|
140
|
+
description: 'Entity ID or human-readable number',
|
|
141
|
+
required: true,
|
|
142
|
+
}),
|
|
143
|
+
name: pieces_framework_1.Property.ShortText({
|
|
144
|
+
displayName: 'Name',
|
|
145
|
+
description: 'Display name',
|
|
146
|
+
required: false,
|
|
147
|
+
}),
|
|
148
|
+
description: pieces_framework_1.Property.LongText({
|
|
149
|
+
displayName: 'Description',
|
|
150
|
+
description: 'Detailed description',
|
|
151
|
+
required: false,
|
|
152
|
+
}),
|
|
153
|
+
startsOn: pieces_framework_1.Property.ShortText({
|
|
154
|
+
displayName: 'Starts On',
|
|
155
|
+
description: '',
|
|
156
|
+
required: false,
|
|
157
|
+
}),
|
|
158
|
+
schedule: pieces_framework_1.Property.ShortText({
|
|
159
|
+
displayName: 'Schedule',
|
|
160
|
+
description: '',
|
|
161
|
+
required: false,
|
|
162
|
+
}),
|
|
163
|
+
exceptions: pieces_framework_1.Property.Json({
|
|
164
|
+
displayName: 'Exceptions',
|
|
165
|
+
description: '',
|
|
166
|
+
required: false,
|
|
167
|
+
}),
|
|
168
|
+
mandatory: pieces_framework_1.Property.Checkbox({
|
|
169
|
+
displayName: 'Mandatory',
|
|
170
|
+
description: '',
|
|
171
|
+
required: false,
|
|
172
|
+
}),
|
|
173
|
+
signatureEnabled: pieces_framework_1.Property.Checkbox({
|
|
174
|
+
displayName: 'Signature Enabled',
|
|
175
|
+
description: '',
|
|
176
|
+
required: false,
|
|
177
|
+
}),
|
|
178
|
+
commentEnabled: pieces_framework_1.Property.Checkbox({
|
|
179
|
+
displayName: 'Comment Enabled',
|
|
180
|
+
description: '',
|
|
181
|
+
required: false,
|
|
182
|
+
}),
|
|
183
|
+
beforePhotoEnabled: pieces_framework_1.Property.Checkbox({
|
|
184
|
+
displayName: 'Before Photo Enabled',
|
|
185
|
+
description: '',
|
|
186
|
+
required: false,
|
|
187
|
+
}),
|
|
188
|
+
duringPhotoEnabled: pieces_framework_1.Property.Checkbox({
|
|
189
|
+
displayName: 'During Photo Enabled',
|
|
190
|
+
description: '',
|
|
191
|
+
required: false,
|
|
192
|
+
}),
|
|
193
|
+
afterPhotoEnabled: pieces_framework_1.Property.Checkbox({
|
|
194
|
+
displayName: 'After Photo Enabled',
|
|
195
|
+
description: '',
|
|
196
|
+
required: false,
|
|
197
|
+
}),
|
|
198
|
+
fileEnabled: pieces_framework_1.Property.Checkbox({
|
|
199
|
+
displayName: 'File Enabled',
|
|
200
|
+
description: '',
|
|
201
|
+
required: false,
|
|
202
|
+
}),
|
|
203
|
+
fileTemplateId: pieces_framework_1.Property.ShortText({
|
|
204
|
+
displayName: 'File Template Id',
|
|
205
|
+
description: 'file template ID',
|
|
206
|
+
required: false,
|
|
207
|
+
}),
|
|
208
|
+
formEnabled: pieces_framework_1.Property.Checkbox({
|
|
209
|
+
displayName: 'Form Enabled',
|
|
210
|
+
description: '',
|
|
211
|
+
required: false,
|
|
212
|
+
}),
|
|
213
|
+
formTemplateId: pieces_framework_1.Property.ShortText({
|
|
214
|
+
displayName: 'Form Template Id',
|
|
215
|
+
description: 'form template ID',
|
|
216
|
+
required: false,
|
|
217
|
+
}),
|
|
218
|
+
},
|
|
219
|
+
async run(context) {
|
|
220
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
221
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
222
|
+
const url = `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.identifier}`;
|
|
223
|
+
// Build body with only defined values (for partial updates)
|
|
224
|
+
const rawBody = {
|
|
225
|
+
name: context.propsValue.name,
|
|
226
|
+
description: context.propsValue.description,
|
|
227
|
+
startsOn: context.propsValue.startsOn,
|
|
228
|
+
schedule: context.propsValue.schedule,
|
|
229
|
+
exceptions: context.propsValue.exceptions,
|
|
230
|
+
mandatory: context.propsValue.mandatory,
|
|
231
|
+
signatureEnabled: context.propsValue.signatureEnabled,
|
|
232
|
+
commentEnabled: context.propsValue.commentEnabled,
|
|
233
|
+
beforePhotoEnabled: context.propsValue.beforePhotoEnabled,
|
|
234
|
+
duringPhotoEnabled: context.propsValue.duringPhotoEnabled,
|
|
235
|
+
afterPhotoEnabled: context.propsValue.afterPhotoEnabled,
|
|
236
|
+
fileEnabled: context.propsValue.fileEnabled,
|
|
237
|
+
fileTemplateId: context.propsValue.fileTemplateId,
|
|
238
|
+
formEnabled: context.propsValue.formEnabled,
|
|
239
|
+
formTemplateId: context.propsValue.formTemplateId,
|
|
240
|
+
};
|
|
241
|
+
const body = Object.fromEntries(Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== ''));
|
|
242
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
243
|
+
method: pieces_common_1.HttpMethod.PATCH,
|
|
244
|
+
url: `${baseUrl}/api/v2/public/service-plans/${context.propsValue.planId}/lines/${context.propsValue.lineId}/tasks/${context.propsValue.identifier}`,
|
|
245
|
+
headers: {
|
|
246
|
+
Authorization: `Bearer ${token}`,
|
|
247
|
+
'Content-Type': 'application/json',
|
|
248
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
249
|
+
},
|
|
250
|
+
body: body,
|
|
251
|
+
});
|
|
252
|
+
return response.body;
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
//# sourceMappingURL=service-plans-lines-tasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-plans-lines-tasks.js","sourceRoot":"","sources":["service-plans-lines-tasks.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCA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