@workbuddy/piece-workbuddy-edge 1.0.32 → 1.0.34
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 +76 -14
- package/src/index.js.map +1 -1
- package/src/index.ts +139 -10
- package/src/lib/actions/crm-companies.d.ts +1 -0
- package/src/lib/actions/crm-companies.d.ts.map +1 -1
- package/src/lib/actions/crm-companies.js +9 -0
- package/src/lib/actions/crm-companies.js.map +1 -1
- package/src/lib/actions/crm-companies.ts +11 -0
- package/src/lib/actions/crm-contacts.d.ts +25 -0
- package/src/lib/actions/crm-contacts.d.ts.map +1 -1
- package/src/lib/actions/crm-contacts.js +135 -3
- package/src/lib/actions/crm-contacts.js.map +1 -1
- package/src/lib/actions/crm-contacts.ts +149 -2
- package/src/lib/actions/crm-contractors.d.ts +110 -0
- package/src/lib/actions/crm-contractors.d.ts.map +1 -1
- package/src/lib/actions/crm-contractors.js +585 -2
- package/src/lib/actions/crm-contractors.js.map +1 -1
- package/src/lib/actions/crm-contractors.ts +631 -1
- package/src/lib/actions/crm-customers.d.ts +94 -0
- package/src/lib/actions/crm-customers.d.ts.map +1 -1
- package/src/lib/actions/crm-customers.js +504 -3
- package/src/lib/actions/crm-customers.js.map +1 -1
- package/src/lib/actions/crm-customers.ts +545 -2
- package/src/lib/actions/crm-external-users.js +1 -1
- package/src/lib/actions/crm-external-users.js.map +1 -1
- package/src/lib/actions/crm-external-users.ts +1 -1
- package/src/lib/actions/crm-invites.d.ts +1 -0
- package/src/lib/actions/crm-invites.d.ts.map +1 -1
- package/src/lib/actions/crm-invites.js +9 -0
- package/src/lib/actions/crm-invites.js.map +1 -1
- package/src/lib/actions/crm-invites.ts +11 -0
- package/src/lib/actions/crm-sites.d.ts +10 -0
- package/src/lib/actions/crm-sites.d.ts.map +1 -1
- package/src/lib/actions/crm-sites.js +59 -3
- package/src/lib/actions/crm-sites.js.map +1 -1
- package/src/lib/actions/crm-sites.ts +70 -2
- package/src/lib/actions/crm-suppliers.d.ts +64 -0
- package/src/lib/actions/crm-suppliers.d.ts.map +1 -1
- package/src/lib/actions/crm-suppliers.js +352 -2
- package/src/lib/actions/crm-suppliers.js.map +1 -1
- package/src/lib/actions/crm-suppliers.ts +376 -1
- package/src/lib/actions/index.d.ts +7 -1
- package/src/lib/actions/index.d.ts.map +1 -1
- package/src/lib/actions/index.js +7 -1
- package/src/lib/actions/index.js.map +1 -1
- package/src/lib/actions/index.ts +7 -1
- package/src/lib/actions/items.d.ts +8 -0
- package/src/lib/actions/items.d.ts.map +1 -0
- package/src/lib/actions/items.js +42 -0
- package/src/lib/actions/items.js.map +1 -0
- package/src/lib/actions/items.ts +45 -0
- package/src/lib/actions/jobs-activities.d.ts +4 -3
- package/src/lib/actions/jobs-activities.d.ts.map +1 -1
- package/src/lib/actions/jobs-activities.js +19 -12
- package/src/lib/actions/jobs-activities.js.map +1 -1
- package/src/lib/actions/jobs-activities.ts +19 -12
- package/src/lib/actions/jobs-tasks.d.ts +0 -2
- package/src/lib/actions/jobs-tasks.d.ts.map +1 -1
- package/src/lib/actions/jobs-tasks.js +0 -12
- package/src/lib/actions/jobs-tasks.js.map +1 -1
- package/src/lib/actions/jobs-tasks.ts +0 -12
- package/src/lib/actions/jobs.d.ts +87 -1
- package/src/lib/actions/jobs.d.ts.map +1 -1
- package/src/lib/actions/jobs.js +495 -7
- package/src/lib/actions/jobs.js.map +1 -1
- package/src/lib/actions/jobs.ts +523 -6
- package/src/lib/actions/mcp.d.ts +3 -3
- package/src/lib/actions/mcp.d.ts.map +1 -1
- package/src/lib/actions/mcp.js +9 -9
- package/src/lib/actions/mcp.js.map +1 -1
- package/src/lib/actions/mcp.ts +8 -8
- package/src/lib/actions/pending-items.d.ts +8 -0
- package/src/lib/actions/pending-items.d.ts.map +1 -0
- package/src/lib/actions/pending-items.js +42 -0
- package/src/lib/actions/pending-items.js.map +1 -0
- package/src/lib/actions/pending-items.ts +45 -0
- package/src/lib/actions/settings-custom-fields.d.ts +21 -0
- package/src/lib/actions/settings-custom-fields.d.ts.map +1 -0
- package/src/lib/actions/settings-custom-fields.js +95 -0
- package/src/lib/actions/settings-custom-fields.js.map +1 -0
- package/src/lib/actions/settings-custom-fields.ts +107 -0
- package/src/lib/actions/settings-items.d.ts +136 -0
- package/src/lib/actions/settings-items.d.ts.map +1 -0
- package/src/lib/actions/settings-items.js +772 -0
- package/src/lib/actions/settings-items.js.map +1 -0
- package/src/lib/actions/settings-items.ts +818 -0
- package/src/lib/actions/{settings.d.ts → settings-reference-data.d.ts} +33 -10
- package/src/lib/actions/settings-reference-data.d.ts.map +1 -0
- package/src/lib/actions/settings-reference-data.js +423 -0
- package/src/lib/actions/settings-reference-data.js.map +1 -0
- package/src/lib/actions/settings-reference-data.ts +496 -0
- package/src/lib/actions/settings-templates.d.ts +15 -0
- package/src/lib/actions/settings-templates.d.ts.map +1 -0
- package/src/lib/actions/settings-templates.js +75 -0
- package/src/lib/actions/settings-templates.js.map +1 -0
- package/src/lib/actions/settings-templates.ts +79 -0
- package/src/lib/actions/stages-activities.d.ts +4 -3
- package/src/lib/actions/stages-activities.d.ts.map +1 -1
- package/src/lib/actions/stages-activities.js +19 -12
- package/src/lib/actions/stages-activities.js.map +1 -1
- package/src/lib/actions/stages-activities.ts +19 -12
- package/src/lib/actions/stages-pending-items.d.ts +75 -0
- package/src/lib/actions/stages-pending-items.d.ts.map +1 -0
- package/src/lib/actions/stages-pending-items.js +370 -0
- package/src/lib/actions/stages-pending-items.js.map +1 -0
- package/src/lib/actions/stages-pending-items.ts +404 -0
- package/src/lib/actions/stages-resources.d.ts.map +1 -1
- package/src/lib/actions/stages-resources.js +5 -8
- package/src/lib/actions/stages-resources.js.map +1 -1
- package/src/lib/actions/stages-resources.ts +8 -8
- package/src/lib/actions/stages-tasks.d.ts +0 -2
- package/src/lib/actions/stages-tasks.d.ts.map +1 -1
- package/src/lib/actions/stages-tasks.js +0 -12
- package/src/lib/actions/stages-tasks.js.map +1 -1
- package/src/lib/actions/stages-tasks.ts +0 -12
- package/src/lib/actions/stages.d.ts +20 -3
- package/src/lib/actions/stages.d.ts.map +1 -1
- package/src/lib/actions/stages.js +103 -21
- package/src/lib/actions/stages.js.map +1 -1
- package/src/lib/actions/stages.ts +116 -20
- package/src/lib/actions/webhooks-v2.js +11 -11
- package/src/lib/actions/webhooks-v2.js.map +1 -1
- package/src/lib/actions/webhooks-v2.ts +11 -11
- package/src/lib/actions/settings.d.ts.map +0 -1
- package/src/lib/actions/settings.js +0 -257
- package/src/lib/actions/settings.js.map +0 -1
- package/src/lib/actions/settings.ts +0 -301
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicCrmContactController_getById = exports.PublicCrmContactController_list = void 0;
|
|
3
|
+
exports.PublicCrmContactController_updateStatus = exports.PublicCrmContactController_update = exports.PublicCrmContactController_getById = exports.PublicCrmContactController_list = void 0;
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
5
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
6
|
const auth_1 = require("../auth");
|
|
7
7
|
exports.PublicCrmContactController_list = (0, pieces_framework_1.createAction)({
|
|
8
8
|
name: 'PublicCrmContactController_list',
|
|
9
9
|
auth: auth_1.workbuddyAuth,
|
|
10
|
-
displayName: 'List contacts (
|
|
10
|
+
displayName: 'List contacts (contacts + external users)',
|
|
11
11
|
description: '',
|
|
12
12
|
props: {
|
|
13
13
|
cursor: pieces_framework_1.Property.ShortText({
|
|
@@ -50,7 +50,7 @@ exports.PublicCrmContactController_getById = (0, pieces_framework_1.createAction
|
|
|
50
50
|
name: 'PublicCrmContactController_getById',
|
|
51
51
|
auth: auth_1.workbuddyAuth,
|
|
52
52
|
displayName: 'Get contact by ID',
|
|
53
|
-
description: '',
|
|
53
|
+
description: 'Returns a people contact (basic or Login Contact). parents lists active parent accounts only (inactive/soft-deleted omitted); portal role for Login Contacts is parents[].role.',
|
|
54
54
|
props: {
|
|
55
55
|
id: pieces_framework_1.Property.ShortText({
|
|
56
56
|
displayName: 'Id',
|
|
@@ -74,4 +74,136 @@ exports.PublicCrmContactController_getById = (0, pieces_framework_1.createAction
|
|
|
74
74
|
return response.body;
|
|
75
75
|
},
|
|
76
76
|
});
|
|
77
|
+
exports.PublicCrmContactController_update = (0, pieces_framework_1.createAction)({
|
|
78
|
+
name: 'PublicCrmContactController_update',
|
|
79
|
+
auth: auth_1.workbuddyAuth,
|
|
80
|
+
displayName: 'Update contact',
|
|
81
|
+
description: '',
|
|
82
|
+
props: {
|
|
83
|
+
id: pieces_framework_1.Property.ShortText({
|
|
84
|
+
displayName: 'Id',
|
|
85
|
+
description: 'Contact ID',
|
|
86
|
+
required: true,
|
|
87
|
+
}),
|
|
88
|
+
firstName: pieces_framework_1.Property.ShortText({
|
|
89
|
+
displayName: 'First Name',
|
|
90
|
+
description: '',
|
|
91
|
+
required: false,
|
|
92
|
+
}),
|
|
93
|
+
lastName: pieces_framework_1.Property.ShortText({
|
|
94
|
+
displayName: 'Last Name',
|
|
95
|
+
description: '',
|
|
96
|
+
required: false,
|
|
97
|
+
}),
|
|
98
|
+
email: pieces_framework_1.Property.ShortText({
|
|
99
|
+
displayName: 'Email',
|
|
100
|
+
description: 'Email address',
|
|
101
|
+
required: false,
|
|
102
|
+
}),
|
|
103
|
+
phone: pieces_framework_1.Property.ShortText({
|
|
104
|
+
displayName: 'Phone',
|
|
105
|
+
description: 'Phone number',
|
|
106
|
+
required: false,
|
|
107
|
+
}),
|
|
108
|
+
mobile: pieces_framework_1.Property.ShortText({
|
|
109
|
+
displayName: 'Mobile',
|
|
110
|
+
description: 'Mobile phone number',
|
|
111
|
+
required: false,
|
|
112
|
+
}),
|
|
113
|
+
title: pieces_framework_1.Property.ShortText({
|
|
114
|
+
displayName: 'Title',
|
|
115
|
+
description: '',
|
|
116
|
+
required: false,
|
|
117
|
+
}),
|
|
118
|
+
note: pieces_framework_1.Property.ShortText({
|
|
119
|
+
displayName: 'Note',
|
|
120
|
+
description: '',
|
|
121
|
+
required: false,
|
|
122
|
+
}),
|
|
123
|
+
integrationId: pieces_framework_1.Property.ShortText({
|
|
124
|
+
displayName: 'Integration Id',
|
|
125
|
+
description: 'integration ID',
|
|
126
|
+
required: false,
|
|
127
|
+
}),
|
|
128
|
+
autoDispatch: pieces_framework_1.Property.Checkbox({
|
|
129
|
+
displayName: 'Auto Dispatch',
|
|
130
|
+
description: '',
|
|
131
|
+
required: false,
|
|
132
|
+
}),
|
|
133
|
+
},
|
|
134
|
+
async run(context) {
|
|
135
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
136
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
137
|
+
const url = `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}`;
|
|
138
|
+
// Build body with only defined values (for partial updates)
|
|
139
|
+
const rawBody = {
|
|
140
|
+
firstName: context.propsValue.firstName,
|
|
141
|
+
lastName: context.propsValue.lastName,
|
|
142
|
+
email: context.propsValue.email,
|
|
143
|
+
phone: context.propsValue.phone,
|
|
144
|
+
mobile: context.propsValue.mobile,
|
|
145
|
+
title: context.propsValue.title,
|
|
146
|
+
note: context.propsValue.note,
|
|
147
|
+
integrationId: context.propsValue.integrationId,
|
|
148
|
+
autoDispatch: context.propsValue.autoDispatch,
|
|
149
|
+
};
|
|
150
|
+
const body = Object.fromEntries(Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== ''));
|
|
151
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
152
|
+
method: pieces_common_1.HttpMethod.PATCH,
|
|
153
|
+
url: `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}`,
|
|
154
|
+
headers: {
|
|
155
|
+
Authorization: `Bearer ${token}`,
|
|
156
|
+
'Content-Type': 'application/json',
|
|
157
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
158
|
+
},
|
|
159
|
+
body: body,
|
|
160
|
+
});
|
|
161
|
+
return response.body;
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
exports.PublicCrmContactController_updateStatus = (0, pieces_framework_1.createAction)({
|
|
165
|
+
name: 'PublicCrmContactController_updateStatus',
|
|
166
|
+
auth: auth_1.workbuddyAuth,
|
|
167
|
+
displayName: 'Update contact status',
|
|
168
|
+
description: '',
|
|
169
|
+
props: {
|
|
170
|
+
id: pieces_framework_1.Property.ShortText({
|
|
171
|
+
displayName: 'Id',
|
|
172
|
+
description: 'Contact ID',
|
|
173
|
+
required: true,
|
|
174
|
+
}),
|
|
175
|
+
statusId: pieces_framework_1.Property.ShortText({
|
|
176
|
+
displayName: 'Status Id',
|
|
177
|
+
description: 'status ID',
|
|
178
|
+
required: true,
|
|
179
|
+
}),
|
|
180
|
+
note: pieces_framework_1.Property.ShortText({
|
|
181
|
+
displayName: 'Note',
|
|
182
|
+
description: '',
|
|
183
|
+
required: false,
|
|
184
|
+
}),
|
|
185
|
+
},
|
|
186
|
+
async run(context) {
|
|
187
|
+
const token = await (0, auth_1.getAccessToken)(context.auth);
|
|
188
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
189
|
+
const url = `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}/status`;
|
|
190
|
+
// Build body with only defined values (for partial updates)
|
|
191
|
+
const rawBody = {
|
|
192
|
+
statusId: context.propsValue.statusId,
|
|
193
|
+
note: context.propsValue.note,
|
|
194
|
+
};
|
|
195
|
+
const body = Object.fromEntries(Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== ''));
|
|
196
|
+
const response = await pieces_common_1.httpClient.sendRequest({
|
|
197
|
+
method: pieces_common_1.HttpMethod.PATCH,
|
|
198
|
+
url: `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}/status`,
|
|
199
|
+
headers: {
|
|
200
|
+
Authorization: `Bearer ${token}`,
|
|
201
|
+
'Content-Type': 'application/json',
|
|
202
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
203
|
+
},
|
|
204
|
+
body: body,
|
|
205
|
+
});
|
|
206
|
+
return response.body;
|
|
207
|
+
},
|
|
208
|
+
});
|
|
77
209
|
//# sourceMappingURL=crm-contacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-contacts.js","sourceRoot":"","sources":["crm-contacts.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCAAwD;AAE3C,QAAA,+BAA+B,GAAG,IAAA,+BAAY,EAAC;IAC1D,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE,oBAAa;IACnB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"crm-contacts.js","sourceRoot":"","sources":["crm-contacts.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,+DAAqE;AACrE,kCAAwD;AAE3C,QAAA,+BAA+B,GAAG,IAAA,+BAAY,EAAC;IAC1D,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE,oBAAa;IACnB,WAAW,EAAE,2CAA2C;IACxD,WAAW,EAAE,EAAE;IACf,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,KAAK,CAAC,GAAG,CAAC,OAAO;QACf,MAAM,KAAK,GAAG,MAAM,IAAA,qBAAc,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;QAE3C,MAAM,GAAG,GAAG,GAAG,OAAO,WAAW,CAAC;QAElC,MAAM,WAAW,GAAG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AU,CAAC,EAAE,SAAS;YACxE,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,KAAK,EAAE;gBAChC,cAAc,EAAE,kBAAkB;gBAClC,qBAAqB,EAAE,SAAS;aACjC;YACD,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { workbuddyAuth, getAccessToken } from '../auth';
|
|
|
5
5
|
export const PublicCrmContactController_list = createAction({
|
|
6
6
|
name: 'PublicCrmContactController_list',
|
|
7
7
|
auth: workbuddyAuth,
|
|
8
|
-
displayName: 'List contacts (
|
|
8
|
+
displayName: 'List contacts (contacts + external users)',
|
|
9
9
|
description: '',
|
|
10
10
|
props: {
|
|
11
11
|
cursor: Property.ShortText({
|
|
@@ -55,7 +55,8 @@ export const PublicCrmContactController_getById = createAction({
|
|
|
55
55
|
name: 'PublicCrmContactController_getById',
|
|
56
56
|
auth: workbuddyAuth,
|
|
57
57
|
displayName: 'Get contact by ID',
|
|
58
|
-
description:
|
|
58
|
+
description:
|
|
59
|
+
'Returns a people contact (basic or Login Contact). parents lists active parent accounts only (inactive/soft-deleted omitted); portal role for Login Contacts is parents[].role.',
|
|
59
60
|
props: {
|
|
60
61
|
id: Property.ShortText({
|
|
61
62
|
displayName: 'Id',
|
|
@@ -82,3 +83,149 @@ export const PublicCrmContactController_getById = createAction({
|
|
|
82
83
|
return response.body;
|
|
83
84
|
},
|
|
84
85
|
});
|
|
86
|
+
|
|
87
|
+
export const PublicCrmContactController_update = createAction({
|
|
88
|
+
name: 'PublicCrmContactController_update',
|
|
89
|
+
auth: workbuddyAuth,
|
|
90
|
+
displayName: 'Update contact',
|
|
91
|
+
description: '',
|
|
92
|
+
props: {
|
|
93
|
+
id: Property.ShortText({
|
|
94
|
+
displayName: 'Id',
|
|
95
|
+
description: 'Contact ID',
|
|
96
|
+
required: true,
|
|
97
|
+
}),
|
|
98
|
+
firstName: Property.ShortText({
|
|
99
|
+
displayName: 'First Name',
|
|
100
|
+
description: '',
|
|
101
|
+
required: false,
|
|
102
|
+
}),
|
|
103
|
+
lastName: Property.ShortText({
|
|
104
|
+
displayName: 'Last Name',
|
|
105
|
+
description: '',
|
|
106
|
+
required: false,
|
|
107
|
+
}),
|
|
108
|
+
email: Property.ShortText({
|
|
109
|
+
displayName: 'Email',
|
|
110
|
+
description: 'Email address',
|
|
111
|
+
required: false,
|
|
112
|
+
}),
|
|
113
|
+
phone: Property.ShortText({
|
|
114
|
+
displayName: 'Phone',
|
|
115
|
+
description: 'Phone number',
|
|
116
|
+
required: false,
|
|
117
|
+
}),
|
|
118
|
+
mobile: Property.ShortText({
|
|
119
|
+
displayName: 'Mobile',
|
|
120
|
+
description: 'Mobile phone number',
|
|
121
|
+
required: false,
|
|
122
|
+
}),
|
|
123
|
+
title: Property.ShortText({
|
|
124
|
+
displayName: 'Title',
|
|
125
|
+
description: '',
|
|
126
|
+
required: false,
|
|
127
|
+
}),
|
|
128
|
+
note: Property.ShortText({
|
|
129
|
+
displayName: 'Note',
|
|
130
|
+
description: '',
|
|
131
|
+
required: false,
|
|
132
|
+
}),
|
|
133
|
+
integrationId: Property.ShortText({
|
|
134
|
+
displayName: 'Integration Id',
|
|
135
|
+
description: 'integration ID',
|
|
136
|
+
required: false,
|
|
137
|
+
}),
|
|
138
|
+
autoDispatch: Property.Checkbox({
|
|
139
|
+
displayName: 'Auto Dispatch',
|
|
140
|
+
description: '',
|
|
141
|
+
required: false,
|
|
142
|
+
}),
|
|
143
|
+
},
|
|
144
|
+
async run(context) {
|
|
145
|
+
const token = await getAccessToken(context.auth);
|
|
146
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
147
|
+
|
|
148
|
+
const url = `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}`;
|
|
149
|
+
|
|
150
|
+
// Build body with only defined values (for partial updates)
|
|
151
|
+
const rawBody: Record<string, unknown> = {
|
|
152
|
+
firstName: context.propsValue.firstName,
|
|
153
|
+
lastName: context.propsValue.lastName,
|
|
154
|
+
email: context.propsValue.email,
|
|
155
|
+
phone: context.propsValue.phone,
|
|
156
|
+
mobile: context.propsValue.mobile,
|
|
157
|
+
title: context.propsValue.title,
|
|
158
|
+
note: context.propsValue.note,
|
|
159
|
+
integrationId: context.propsValue.integrationId,
|
|
160
|
+
autoDispatch: context.propsValue.autoDispatch,
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const body = Object.fromEntries(
|
|
164
|
+
Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== '')
|
|
165
|
+
);
|
|
166
|
+
const response = await httpClient.sendRequest({
|
|
167
|
+
method: HttpMethod.PATCH,
|
|
168
|
+
url: `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}`,
|
|
169
|
+
headers: {
|
|
170
|
+
Authorization: `Bearer ${token}`,
|
|
171
|
+
'Content-Type': 'application/json',
|
|
172
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
173
|
+
},
|
|
174
|
+
body: body,
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
return response.body;
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export const PublicCrmContactController_updateStatus = createAction({
|
|
182
|
+
name: 'PublicCrmContactController_updateStatus',
|
|
183
|
+
auth: workbuddyAuth,
|
|
184
|
+
displayName: 'Update contact status',
|
|
185
|
+
description: '',
|
|
186
|
+
props: {
|
|
187
|
+
id: Property.ShortText({
|
|
188
|
+
displayName: 'Id',
|
|
189
|
+
description: 'Contact ID',
|
|
190
|
+
required: true,
|
|
191
|
+
}),
|
|
192
|
+
statusId: Property.ShortText({
|
|
193
|
+
displayName: 'Status Id',
|
|
194
|
+
description: 'status ID',
|
|
195
|
+
required: true,
|
|
196
|
+
}),
|
|
197
|
+
note: Property.ShortText({
|
|
198
|
+
displayName: 'Note',
|
|
199
|
+
description: '',
|
|
200
|
+
required: false,
|
|
201
|
+
}),
|
|
202
|
+
},
|
|
203
|
+
async run(context) {
|
|
204
|
+
const token = await getAccessToken(context.auth);
|
|
205
|
+
const baseUrl = context.auth.props.baseUrl;
|
|
206
|
+
|
|
207
|
+
const url = `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}/status`;
|
|
208
|
+
|
|
209
|
+
// Build body with only defined values (for partial updates)
|
|
210
|
+
const rawBody: Record<string, unknown> = {
|
|
211
|
+
statusId: context.propsValue.statusId,
|
|
212
|
+
note: context.propsValue.note,
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const body = Object.fromEntries(
|
|
216
|
+
Object.entries(rawBody).filter(([_, v]) => v !== undefined && v !== null && v !== '')
|
|
217
|
+
);
|
|
218
|
+
const response = await httpClient.sendRequest({
|
|
219
|
+
method: HttpMethod.PATCH,
|
|
220
|
+
url: `${baseUrl}/api/v2/public/contacts/${context.propsValue.id}/status`,
|
|
221
|
+
headers: {
|
|
222
|
+
Authorization: `Bearer ${token}`,
|
|
223
|
+
'Content-Type': 'application/json',
|
|
224
|
+
'X-WorkBuddy-Version': '2026-01',
|
|
225
|
+
},
|
|
226
|
+
body: body,
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
return response.body;
|
|
230
|
+
},
|
|
231
|
+
});
|
|
@@ -3,9 +3,28 @@ export declare const PublicCrmContractorController_list: import("@activepieces/p
|
|
|
3
3
|
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
5
|
}>, {
|
|
6
|
+
search: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
7
|
cursor: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
8
|
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
9
|
}>;
|
|
10
|
+
export declare const PublicCrmContractorController_create: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
+
}>, {
|
|
15
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
address: import("@activepieces/pieces-framework").JsonProperty<true>;
|
|
17
|
+
contact: import("@activepieces/pieces-framework").JsonProperty<true>;
|
|
18
|
+
legalName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
+
phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
21
|
+
website: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
22
|
+
integrationId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
23
|
+
notes: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
24
|
+
customFields: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
25
|
+
socialNetwork: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
26
|
+
hidePrices: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
27
|
+
}>;
|
|
9
28
|
export declare const PublicCrmContractorController_getById: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
29
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
30
|
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -13,4 +32,95 @@ export declare const PublicCrmContractorController_getById: import("@activepiece
|
|
|
13
32
|
}>, {
|
|
14
33
|
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
34
|
}>;
|
|
35
|
+
export declare const PublicCrmContractorController_update: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
36
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
37
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
39
|
+
}>, {
|
|
40
|
+
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
41
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
42
|
+
legalName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
43
|
+
phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
44
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
45
|
+
website: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
46
|
+
integrationId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
47
|
+
address: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
48
|
+
primarySite: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
49
|
+
owner: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
50
|
+
labels: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
51
|
+
notes: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
52
|
+
customFields: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
53
|
+
socialNetwork: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
54
|
+
zones: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
55
|
+
companies: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
56
|
+
workCategories: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
57
|
+
scheduling: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
58
|
+
dispatching: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
59
|
+
timesheet: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
60
|
+
hidePrices: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
61
|
+
pricebook: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const PublicCrmContractorController_delete: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
64
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
65
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
66
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
67
|
+
}>, {
|
|
68
|
+
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
69
|
+
}>;
|
|
70
|
+
export declare const PublicCrmContractorController_updateStatus: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
71
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
72
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
73
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
74
|
+
}>, {
|
|
75
|
+
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
76
|
+
statusId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
77
|
+
note: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const PublicCrmContractorController_listContacts: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
80
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
81
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
82
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
83
|
+
}>, {
|
|
84
|
+
contractorId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
85
|
+
cursor: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
86
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const PublicCrmContractorController_createContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
89
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
90
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
91
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
92
|
+
}>, {
|
|
93
|
+
contractorId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
94
|
+
firstName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
95
|
+
lastName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
96
|
+
login: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
97
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
98
|
+
phone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
99
|
+
mobile: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
100
|
+
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
101
|
+
note: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
102
|
+
integrationId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
103
|
+
roleId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
104
|
+
sendEmail: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
105
|
+
autoDispatch: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const PublicCrmContractorController_deleteContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
108
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
109
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
110
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
111
|
+
}>, {
|
|
112
|
+
contractorId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
113
|
+
contactId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
114
|
+
}>;
|
|
115
|
+
export declare const PublicCrmContractorController_inviteContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
116
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
117
|
+
clientId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
118
|
+
clientSecret: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
119
|
+
}>, {
|
|
120
|
+
contractorId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
121
|
+
contactId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
122
|
+
roleId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
123
|
+
email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
124
|
+
sendEmail: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
125
|
+
}>;
|
|
16
126
|
//# sourceMappingURL=crm-contractors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crm-contractors.d.ts","sourceRoot":"","sources":["crm-contractors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"crm-contractors.d.ts","sourceRoot":"","sources":["crm-contractors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC;;;;;;;;EA0D7C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;EAsG/C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;EA8BhD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwK/C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;EA8B/C,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;EAkDrD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;EAoDrD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;EA4GtD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;EAmCtD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;;;EA0DtD,CAAC"}
|