n8n-nodes-vh3ai 0.9.2 → 0.10.0

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 (72) hide show
  1. package/README.md +50 -3
  2. package/dist/credentials/Vh3AiApi.credentials.js +2 -2
  3. package/dist/nodes/Vh3Ai/GenericFunctions.d.ts +32 -0
  4. package/dist/nodes/Vh3Ai/GenericFunctions.js +116 -1
  5. package/dist/nodes/Vh3Ai/GenericFunctions.js.map +1 -1
  6. package/dist/nodes/Vh3Ai/Vh3Ai.node.js +133 -1
  7. package/dist/nodes/Vh3Ai/Vh3Ai.node.js.map +1 -1
  8. package/dist/nodes/Vh3Ai/Vh3Ai.node.json +4 -2
  9. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetChecksDescription.d.ts +13 -0
  10. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetChecksDescription.js +106 -0
  11. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetChecksDescription.js.map +1 -0
  12. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetsDescription.d.ts +13 -0
  13. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetsDescription.js +904 -0
  14. package/dist/nodes/Vh3Ai/descriptions/WebServicesAssetsDescription.js.map +1 -0
  15. package/dist/nodes/Vh3Ai/descriptions/WebServicesAttachmentsDescription.d.ts +13 -0
  16. package/dist/nodes/Vh3Ai/descriptions/WebServicesAttachmentsDescription.js +99 -0
  17. package/dist/nodes/Vh3Ai/descriptions/WebServicesAttachmentsDescription.js.map +1 -0
  18. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactNotesDescription.d.ts +13 -0
  19. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactNotesDescription.js +460 -0
  20. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactNotesDescription.js.map +1 -0
  21. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactsDescription.d.ts +13 -0
  22. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactsDescription.js +1658 -0
  23. package/dist/nodes/Vh3Ai/descriptions/WebServicesContactsDescription.js.map +1 -0
  24. package/dist/nodes/Vh3Ai/descriptions/WebServicesContractsDescription.d.ts +13 -0
  25. package/dist/nodes/Vh3Ai/descriptions/WebServicesContractsDescription.js +642 -0
  26. package/dist/nodes/Vh3Ai/descriptions/WebServicesContractsDescription.js.map +1 -0
  27. package/dist/nodes/Vh3Ai/descriptions/WebServicesCustomFieldsDescription.d.ts +13 -0
  28. package/dist/nodes/Vh3Ai/descriptions/WebServicesCustomFieldsDescription.js +331 -0
  29. package/dist/nodes/Vh3Ai/descriptions/WebServicesCustomFieldsDescription.js.map +1 -0
  30. package/dist/nodes/Vh3Ai/descriptions/WebServicesExpensesDescription.d.ts +13 -0
  31. package/dist/nodes/Vh3Ai/descriptions/WebServicesExpensesDescription.js +268 -0
  32. package/dist/nodes/Vh3Ai/descriptions/WebServicesExpensesDescription.js.map +1 -0
  33. package/dist/nodes/Vh3Ai/descriptions/WebServicesFinancialDescription.d.ts +13 -0
  34. package/dist/nodes/Vh3Ai/descriptions/WebServicesFinancialDescription.js +2433 -0
  35. package/dist/nodes/Vh3Ai/descriptions/WebServicesFinancialDescription.js.map +1 -0
  36. package/dist/nodes/Vh3Ai/descriptions/WebServicesJobsGeneratedDescription.d.ts +13 -0
  37. package/dist/nodes/Vh3Ai/descriptions/WebServicesJobsGeneratedDescription.js +4239 -0
  38. package/dist/nodes/Vh3Ai/descriptions/WebServicesJobsGeneratedDescription.js.map +1 -0
  39. package/dist/nodes/Vh3Ai/descriptions/WebServicesMessagingDescription.d.ts +13 -0
  40. package/dist/nodes/Vh3Ai/descriptions/WebServicesMessagingDescription.js +169 -0
  41. package/dist/nodes/Vh3Ai/descriptions/WebServicesMessagingDescription.js.map +1 -0
  42. package/dist/nodes/Vh3Ai/descriptions/WebServicesReportsDescription.d.ts +13 -0
  43. package/dist/nodes/Vh3Ai/descriptions/WebServicesReportsDescription.js +496 -0
  44. package/dist/nodes/Vh3Ai/descriptions/WebServicesReportsDescription.js.map +1 -0
  45. package/dist/nodes/Vh3Ai/descriptions/WebServicesResourcesDescription.d.ts +13 -0
  46. package/dist/nodes/Vh3Ai/descriptions/WebServicesResourcesDescription.js +1276 -0
  47. package/dist/nodes/Vh3Ai/descriptions/WebServicesResourcesDescription.js.map +1 -0
  48. package/dist/nodes/Vh3Ai/descriptions/WebServicesRoutesDescription.d.ts +13 -0
  49. package/dist/nodes/Vh3Ai/descriptions/WebServicesRoutesDescription.js +260 -0
  50. package/dist/nodes/Vh3Ai/descriptions/WebServicesRoutesDescription.js.map +1 -0
  51. package/dist/nodes/Vh3Ai/descriptions/WebServicesSalesOpportunitiesDescription.d.ts +13 -0
  52. package/dist/nodes/Vh3Ai/descriptions/WebServicesSalesOpportunitiesDescription.js +578 -0
  53. package/dist/nodes/Vh3Ai/descriptions/WebServicesSalesOpportunitiesDescription.js.map +1 -0
  54. package/dist/nodes/Vh3Ai/descriptions/WebServicesStockDescription.d.ts +13 -0
  55. package/dist/nodes/Vh3Ai/descriptions/WebServicesStockDescription.js +1238 -0
  56. package/dist/nodes/Vh3Ai/descriptions/WebServicesStockDescription.js.map +1 -0
  57. package/dist/nodes/Vh3Ai/descriptions/WebServicesTagsDescription.d.ts +13 -0
  58. package/dist/nodes/Vh3Ai/descriptions/WebServicesTagsDescription.js +298 -0
  59. package/dist/nodes/Vh3Ai/descriptions/WebServicesTagsDescription.js.map +1 -0
  60. package/dist/nodes/Vh3Ai/descriptions/WebServicesTrackingDescription.d.ts +13 -0
  61. package/dist/nodes/Vh3Ai/descriptions/WebServicesTrackingDescription.js +128 -0
  62. package/dist/nodes/Vh3Ai/descriptions/WebServicesTrackingDescription.js.map +1 -0
  63. package/dist/nodes/Vh3Ai/descriptions/WebServicesWebUsersDescription.d.ts +13 -0
  64. package/dist/nodes/Vh3Ai/descriptions/WebServicesWebUsersDescription.js +233 -0
  65. package/dist/nodes/Vh3Ai/descriptions/WebServicesWebUsersDescription.js.map +1 -0
  66. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorkflowDescription.d.ts +13 -0
  67. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorkflowDescription.js +162 -0
  68. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorkflowDescription.js.map +1 -0
  69. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorksheetsDescription.d.ts +13 -0
  70. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorksheetsDescription.js +57 -0
  71. package/dist/nodes/Vh3Ai/descriptions/WebServicesWorksheetsDescription.js.map +1 -0
  72. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Community node for [n8n](https://n8n.io/) that integrates with the [VH3 AI](https://vh3.ai) field service management platform.
4
4
 
5
- This package provides a single unified node (**VH3 AI**) that combines both BigChange API operations and VH3 AI intelligence features under one credential type. Resources are clearly labelled "(BigChange)" or "(VH3 AI)" in the dropdown.
5
+ This package provides a single unified node (**VH3 AI**) that combines BigChange API operations, BigChange Web Services, and VH3 AI intelligence features under one credential type. Resources are clearly labelled `(BigChange)`, `(Web Services)`, or `(VH3 AI)` in the dropdown.
6
6
 
7
7
  The node is marked `usableAsTool: true` so it can be called directly by n8n AI agents.
8
8
 
@@ -58,7 +58,9 @@ All operations authenticate using the same API Key and Company ID credentials.
58
58
 
59
59
  ## Resources & Operations
60
60
 
61
- ### BigChange API Resources
61
+ ### BigChange API Resources (`(BigChange)`)
62
+
63
+ These resources talk to the BigChange REST proxy (`/api:YdihQNr3`). Parameters are **camelCase**. Responses use the `extractItems()` envelope and support **Return All** auto-pagination.
62
64
 
63
65
  | Resource | Operations |
64
66
  | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -79,7 +81,39 @@ All operations authenticate using the same API Key and Company ID credentials.
79
81
  | **Reference Data (BigChange)** | List Department Codes · Get Department Code · List Nominal Codes · Get Nominal Code |
80
82
  | **Job Type (BigChange)** | List Job Types · Get Job Type |
81
83
 
82
- ### VH3 AI Intelligence Resources
84
+ ### BigChange Web Services Resources (`(Web Services)`)
85
+
86
+ These resources talk to the legacy BigChange Web Services API (`/api:U8zIv3U8`). Parameters are **PascalCase**. Dates use `yyyy-MM-dd HH:mm:ss` format. Responses are returned raw — there is no envelope unwrapping or auto-pagination.
87
+
88
+ > **When to use Web Services vs BigChange REST proxy:** some entities (jobs, contacts, stock) exist on both surfaces. Use `(BigChange)` for the modern REST contract with envelope pagination and camelCase params. Use `(Web Services)` for legacy Web Services fields, endpoints, or date handling not available via the REST proxy.
89
+
90
+ > **`/jobs/job` parameter collision:** `Job (BigChange)` › Get Job by ID uses query key `id`; `Job (Web Services)` › Get Job uses `JobId` / `JobRef`. These are different endpoints on different URL prefixes.
91
+
92
+ | Resource | Ops | Highlights |
93
+ | --- | ---:| --- |
94
+ | **Asset (Web Services)** | 10 | CRUD, transfers, audits |
95
+ | **Asset Check (Web Services)** | 2 | Check retrieval, defect updates |
96
+ | **Attachment (Web Services)** | 2 | Retrieval and deletion |
97
+ | **Contact (Web Services)** | 27 | Search, create, update, groups, flags, consent |
98
+ | **Contact Note (Web Services)** | 9 | List, create, update, delete |
99
+ | **Contract (Web Services)** | 8 | Contract management |
100
+ | **Custom Field (Web Services)** | 5 | Field definitions and values |
101
+ | **Expense (Web Services)** | 5 | Create, list, approve |
102
+ | **Financial (Web Services)** | 42 | Documents, invoices, payments, tax |
103
+ | **Job (Web Services)** | 58 | 5 hand-crafted + 53 generated (schedule, stock, waypoints, recurrence, cards, etc.) |
104
+ | **Messaging (Web Services)** | 1 | Send messages |
105
+ | **Report (Web Services)** | 7 | Report queries and exports |
106
+ | **Resource (Web Services)** | 24 | Availability, skills, groups, GPS |
107
+ | **Route (Web Services)** | 6 | Route planning and optimisation |
108
+ | **Sales Opportunity (Web Services)** | 8 | Opportunity management |
109
+ | **Stock (Web Services)** | 19 | Inventory management |
110
+ | **Tag (Web Services)** | 5 | Assign, remove, list tags |
111
+ | **Tracking (Web Services)** | 4 | GPS tracking and location data |
112
+ | **Web User (Web Services)** | 5 | Portal user management |
113
+ | **Workflow (Web Services)** | 1 | Workflow triggers and actions |
114
+ | **Worksheet (Web Services)** | 1 | Worksheet data retrieval |
115
+
116
+ ### VH3 AI Intelligence Resources (`(VH3 AI)`)
83
117
 
84
118
  | Resource | Operations |
85
119
  | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -128,6 +162,18 @@ Deterministic checks (no LLM cost) against your VH3 AI platform fee. Available s
128
162
 
129
163
  ## Architecture & Patterns
130
164
 
165
+ ### Three API surfaces
166
+
167
+ The node exposes three distinct API transports under one credential:
168
+
169
+ | Surface | URL prefix | Param casing | Date format | Response handling |
170
+ | ------- | ---------- | ------------ | ----------- | ----------------- |
171
+ | `(BigChange)` REST proxy | `/api:YdihQNr3` | camelCase | ISO 8601 UTC (`YYYY-MM-DDTHH:MM:SSZ`) | `extractItems()` envelope unwrap, auto-pagination |
172
+ | `(Web Services)` legacy | `/api:U8zIv3U8` | PascalCase | `yyyy-MM-dd HH:mm:ss` | raw response, no envelope helper |
173
+ | `(VH3 AI)` intelligence | `/api:6q5N0phZ` + FSI | camelCase / snake_case | ISO 8601 | per-endpoint |
174
+
175
+ Do **not** mix helpers across surfaces. Use `vh3ListApiRequest` / `extractItems` for BigChange REST; `vh3WebServicesGetRequest` / `vh3WebServicesPostRequest` for Web Services; `vh3FsiGetRequest` etc. for VH3 AI.
176
+
131
177
  ### Parameter casing
132
178
 
133
179
  The n8n UI uses **camelCase** field names. The handlers map these to the appropriate API parameter format before sending.
@@ -135,6 +181,7 @@ The n8n UI uses **camelCase** field names. The handlers map these to the appropr
135
181
  ### Response normalisation
136
182
 
137
183
  - **BigChange**: `extractItems()` unwraps the three known envelope shapes into a flat item array.
184
+ - **Web Services**: raw response returned as-is. Consumers inspect the payload structure directly.
138
185
  - **VH3 AI**: semantic search and autocomplete responses are unwrapped to per-hit / per-result items.
139
186
 
140
187
  ### Auto-pagination
@@ -5,11 +5,11 @@ class Vh3AiApi {
5
5
  constructor() {
6
6
  this.name = 'vh3AiApi';
7
7
  this.displayName = 'VH3 AI API';
8
- this.documentationUrl = 'https://vh3.ai/docs';
8
+ this.documentationUrl = 'https://docs.vh3.ai';
9
9
  this.icon = 'file:vh3ai.svg';
10
10
  this.properties = [
11
11
  {
12
- displayName: 'New to VH3 AI? <a href="https://vh3.ai/signup/register" target="_blank">Sign up here</a> to create your account and get an API key. Documentation available at <a href="https://vh3.ai/docs" target="_blank">vh3.ai/docs</a>.',
12
+ displayName: 'New to VH3 AI? <a href="https://vh3.ai/signup/register" target="_blank">Sign up here</a> to create your account and get an API key. Documentation available at <a href="https://docs.vh3.ai" target="_blank">docs.vh3.ai</a>.',
13
13
  name: 'signupNotice',
14
14
  type: 'notice',
15
15
  default: '',
@@ -51,6 +51,38 @@ export declare function vh3ProxyGetRequest(this: IExecuteFunctions, endpoint: st
51
51
  */
52
52
  export declare const MAX_PAGES = 200;
53
53
  export declare function vh3ListApiRequestAllPages(this: IExecuteFunctions, endpoint: string, body: JsonObject, pageSize?: number): Promise<JsonObject[]>;
54
+ export declare const WEBSERVICES_API_PREFIX = "/api:U8zIv3U8";
55
+ /**
56
+ * Strip null, undefined, and empty-string values from a Web Services params
57
+ * object. Keeps 0 and false because those are meaningful filter values.
58
+ */
59
+ export declare function omitEmptyWsParams(obj: Record<string, string | number | boolean | undefined | null>): Record<string, string | number | boolean>;
60
+ /**
61
+ * Convert any date/datetime input into the BigChange Web Services date format:
62
+ * 'yyyy-MM-dd HH:mm:ss'. Returns undefined for empty or unparseable input.
63
+ *
64
+ * For strings: normalises ISO 8601 (strips T separator, trailing Z, and
65
+ * milliseconds). Strings that carry no timezone info are returned as-is
66
+ * after normalisation (n8n datetime fields already in WS format pass through).
67
+ * Date objects and epoch numbers are formatted in UTC.
68
+ */
69
+ export declare function toWebServicesDateTime(value: unknown): string | undefined;
70
+ /**
71
+ * Make an authenticated GET request to the VH3 Web Services API.
72
+ * Response is returned raw — do not call extractItems() on the result.
73
+ */
74
+ export declare function vh3WebServicesGetRequest(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number | boolean>): Promise<JsonObject>;
75
+ /**
76
+ * Make an authenticated POST request to the VH3 Web Services API.
77
+ * Response is returned raw — do not call extractItems() on the result.
78
+ */
79
+ export declare function vh3WebServicesPostRequest(this: IExecuteFunctions, endpoint: string, body: JsonObject): Promise<JsonObject>;
80
+ /**
81
+ * Unwrap a Web Services response envelope into an array of items.
82
+ * WS responses follow: { result: { Code, Result: [...] } } or { result: { Code, Result: {} } }.
83
+ * Falls back to returning the raw object as a single item if the shape doesn't match.
84
+ */
85
+ export declare function extractWsItems(raw: JsonObject): JsonObject[];
54
86
  /**
55
87
  * GET request to the VH3 FSI API.
56
88
  * Auth is injected as query params (company_id, api_key).
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_PAGES = void 0;
3
+ exports.WEBSERVICES_API_PREFIX = exports.MAX_PAGES = void 0;
4
4
  exports.toUtcDateTime = toUtcDateTime;
5
5
  exports.defaultCreatedAtRange = defaultCreatedAtRange;
6
6
  exports.extractItems = extractItems;
@@ -9,6 +9,11 @@ exports.requireCompanyId = requireCompanyId;
9
9
  exports.vh3EnrichApiRequest = vh3EnrichApiRequest;
10
10
  exports.vh3ProxyGetRequest = vh3ProxyGetRequest;
11
11
  exports.vh3ListApiRequestAllPages = vh3ListApiRequestAllPages;
12
+ exports.omitEmptyWsParams = omitEmptyWsParams;
13
+ exports.toWebServicesDateTime = toWebServicesDateTime;
14
+ exports.vh3WebServicesGetRequest = vh3WebServicesGetRequest;
15
+ exports.vh3WebServicesPostRequest = vh3WebServicesPostRequest;
16
+ exports.extractWsItems = extractWsItems;
12
17
  exports.vh3FsiGetRequest = vh3FsiGetRequest;
13
18
  exports.vh3FsiPostRequest = vh3FsiPostRequest;
14
19
  exports.vh3FsiPatchRequest = vh3FsiPatchRequest;
@@ -169,6 +174,116 @@ async function vh3ListApiRequestAllPages(endpoint, body, pageSize = 100) {
169
174
  }
170
175
  return allItems;
171
176
  }
177
+ // ── Web Services API helpers ──────────────────────────────────────────────────
178
+ exports.WEBSERVICES_API_PREFIX = '/api:U8zIv3U8';
179
+ /**
180
+ * Strip null, undefined, and empty-string values from a Web Services params
181
+ * object. Keeps 0 and false because those are meaningful filter values.
182
+ */
183
+ function omitEmptyWsParams(obj) {
184
+ return Object.fromEntries(Object.entries(obj).filter(([, v]) => v !== null && v !== undefined && v !== ''));
185
+ }
186
+ /**
187
+ * Convert any date/datetime input into the BigChange Web Services date format:
188
+ * 'yyyy-MM-dd HH:mm:ss'. Returns undefined for empty or unparseable input.
189
+ *
190
+ * For strings: normalises ISO 8601 (strips T separator, trailing Z, and
191
+ * milliseconds). Strings that carry no timezone info are returned as-is
192
+ * after normalisation (n8n datetime fields already in WS format pass through).
193
+ * Date objects and epoch numbers are formatted in UTC.
194
+ */
195
+ function toWebServicesDateTime(value) {
196
+ if (value === undefined || value === null || value === '')
197
+ return undefined;
198
+ if (typeof value === 'string') {
199
+ // Fast path: normalise ISO 8601 → WS format by string manipulation only.
200
+ // This preserves the original "wall clock" time for timezone-less inputs.
201
+ const normalised = value
202
+ .replace('T', ' ')
203
+ .replace(/\.\d+Z?$/, '')
204
+ .replace(/Z$/, '')
205
+ .trim();
206
+ if (/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(normalised)) {
207
+ return normalised;
208
+ }
209
+ // Strings with explicit timezone offsets (e.g. +01:00) fall through to
210
+ // Date parsing so the offset is respected and output is UTC.
211
+ }
212
+ const d = value instanceof Date ? value : new Date(value);
213
+ if (isNaN(d.getTime()))
214
+ return undefined;
215
+ const pad = (n) => String(n).padStart(2, '0');
216
+ return (`${d.getUTCFullYear()}-${pad(d.getUTCMonth() + 1)}-${pad(d.getUTCDate())} ` +
217
+ `${pad(d.getUTCHours())}:${pad(d.getUTCMinutes())}:${pad(d.getUTCSeconds())}`);
218
+ }
219
+ /**
220
+ * Make an authenticated GET request to the VH3 Web Services API.
221
+ * Response is returned raw — do not call extractItems() on the result.
222
+ */
223
+ async function vh3WebServicesGetRequest(endpoint, qs) {
224
+ const credentials = await this.getCredentials('vh3AiApi');
225
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
226
+ const options = {
227
+ method: 'GET',
228
+ url: `${baseUrl}${exports.WEBSERVICES_API_PREFIX}${endpoint}`,
229
+ qs,
230
+ json: true,
231
+ };
232
+ try {
233
+ return (await this.helpers.httpRequestWithAuthentication.call(this, 'vh3AiApi', options));
234
+ }
235
+ catch (error) {
236
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
237
+ message: `Web Services API request failed: GET ${endpoint}`,
238
+ description: error.message,
239
+ });
240
+ }
241
+ }
242
+ /**
243
+ * Make an authenticated POST request to the VH3 Web Services API.
244
+ * Response is returned raw — do not call extractItems() on the result.
245
+ */
246
+ async function vh3WebServicesPostRequest(endpoint, body) {
247
+ const credentials = await this.getCredentials('vh3AiApi');
248
+ const baseUrl = credentials.baseUrl.replace(/\/$/, '');
249
+ const options = {
250
+ method: 'POST',
251
+ url: `${baseUrl}${exports.WEBSERVICES_API_PREFIX}${endpoint}`,
252
+ body: JSON.stringify(body),
253
+ headers: {
254
+ 'Content-Type': 'application/json',
255
+ },
256
+ };
257
+ try {
258
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'vh3AiApi', options);
259
+ if (typeof response === 'string') {
260
+ return JSON.parse(response);
261
+ }
262
+ return response;
263
+ }
264
+ catch (error) {
265
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
266
+ message: `Web Services API request failed: POST ${endpoint}`,
267
+ description: error.message,
268
+ });
269
+ }
270
+ }
271
+ /**
272
+ * Unwrap a Web Services response envelope into an array of items.
273
+ * WS responses follow: { result: { Code, Result: [...] } } or { result: { Code, Result: {} } }.
274
+ * Falls back to returning the raw object as a single item if the shape doesn't match.
275
+ */
276
+ function extractWsItems(raw) {
277
+ const result = raw === null || raw === void 0 ? void 0 : raw.result;
278
+ if (!result)
279
+ return [raw];
280
+ const inner = result.Result;
281
+ if (Array.isArray(inner))
282
+ return inner;
283
+ if (inner && typeof inner === 'object')
284
+ return [inner];
285
+ return [raw];
286
+ }
172
287
  // ── FSI (Field Service Intelligence) API helpers ─────────────────────────────
173
288
  async function getFsiAuth(context) {
174
289
  const credentials = await context.getCredentials('vh3AiApi');
@@ -1 +1 @@
1
- {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Vh3Ai/GenericFunctions.ts"],"names":[],"mappings":";;;AAwBA,sCAKC;AAUD,sDAQC;AAED,oCAeC;AAKD,8CAiCC;AAKD,4CAOC;AAKD,kDA2BC;AAKD,gDA2BC;AAOD,8DAuBC;AAgBD,4CAsBC;AAMD,8CA8BC;AAKD,gDA8BC;AAKD,4CA8BC;AAKD,kDA8BC;AAQD,4CA4BC;AAKD,8CAwBC;AA/bD,+CAAgE;AAEhE,MAAM,eAAe,GAAG,eAAe,CAAC;AACxC,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAE1C;;;;;;GAMG;AACH;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,KAAc;IAC3C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAC5E,MAAM,CAAC,GAAG,KAAK,YAAY,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAwB,CAAC,CAAC;IAC7E,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CAAC,UAAU,GAAG,EA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AK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAiB,CAAC;QAClF,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAExB,IAAI,KAAK,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;YAC7B,MAAM;QACP,CAAC;QACD,IAAI,EAAE,CAAC;IACR,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC"}
@@ -33,6 +33,27 @@ const FsiIntelligenceDescription_1 = require("./descriptions/FsiIntelligenceDesc
33
33
  const FsiInvestigateDescription_1 = require("./descriptions/FsiInvestigateDescription");
34
34
  const FsiConnieDescription_1 = require("./descriptions/FsiConnieDescription");
35
35
  const FsiUsersDescription_1 = require("./descriptions/FsiUsersDescription");
36
+ const WebServicesJobsGeneratedDescription_1 = require("./descriptions/WebServicesJobsGeneratedDescription");
37
+ const WebServicesAssetChecksDescription_1 = require("./descriptions/WebServicesAssetChecksDescription");
38
+ const WebServicesAssetsDescription_1 = require("./descriptions/WebServicesAssetsDescription");
39
+ const WebServicesAttachmentsDescription_1 = require("./descriptions/WebServicesAttachmentsDescription");
40
+ const WebServicesContactNotesDescription_1 = require("./descriptions/WebServicesContactNotesDescription");
41
+ const WebServicesContactsDescription_1 = require("./descriptions/WebServicesContactsDescription");
42
+ const WebServicesContractsDescription_1 = require("./descriptions/WebServicesContractsDescription");
43
+ const WebServicesCustomFieldsDescription_1 = require("./descriptions/WebServicesCustomFieldsDescription");
44
+ const WebServicesExpensesDescription_1 = require("./descriptions/WebServicesExpensesDescription");
45
+ const WebServicesFinancialDescription_1 = require("./descriptions/WebServicesFinancialDescription");
46
+ const WebServicesMessagingDescription_1 = require("./descriptions/WebServicesMessagingDescription");
47
+ const WebServicesReportsDescription_1 = require("./descriptions/WebServicesReportsDescription");
48
+ const WebServicesResourcesDescription_1 = require("./descriptions/WebServicesResourcesDescription");
49
+ const WebServicesRoutesDescription_1 = require("./descriptions/WebServicesRoutesDescription");
50
+ const WebServicesSalesOpportunitiesDescription_1 = require("./descriptions/WebServicesSalesOpportunitiesDescription");
51
+ const WebServicesStockDescription_1 = require("./descriptions/WebServicesStockDescription");
52
+ const WebServicesTagsDescription_1 = require("./descriptions/WebServicesTagsDescription");
53
+ const WebServicesTrackingDescription_1 = require("./descriptions/WebServicesTrackingDescription");
54
+ const WebServicesWebUsersDescription_1 = require("./descriptions/WebServicesWebUsersDescription");
55
+ const WebServicesWorkflowDescription_1 = require("./descriptions/WebServicesWorkflowDescription");
56
+ const WebServicesWorksheetsDescription_1 = require("./descriptions/WebServicesWorksheetsDescription");
36
57
  class Vh3Ai {
37
58
  constructor() {
38
59
  this.description = {
@@ -63,18 +84,29 @@ class Vh3Ai {
63
84
  noDataExpression: true,
64
85
  options: [
65
86
  { name: 'Account Report (VH3 AI)', value: 'accountReport', description: 'Generate monthly account review reports for a contact.' },
87
+ { name: 'Asset (Web Services)', value: 'wsAssets', description: 'BigChange Web Services asset management — CRUD, transfers, and audits.' },
88
+ { name: 'Asset Check (Web Services)', value: 'wsAssetChecks', description: 'BigChange Web Services asset check retrieval and defect updates.' },
89
+ { name: 'Attachment (Web Services)', value: 'wsAttachments', description: 'BigChange Web Services attachment retrieval and deletion.' },
66
90
  { name: 'Briefing (VH3 AI)', value: 'briefing', description: 'Generate pre-job intelligence briefings.' },
67
91
  { name: 'Case (VH3 AI)', value: 'cases', description: 'Case management — create, update, transition, comment, link items and participants.' },
68
92
  { name: 'Connie (VH3 AI)', value: 'connie', description: 'Conversational AI assistant — chat, sessions, and history search.' },
69
93
  { name: 'Contact (BigChange)', value: 'contacts', description: 'Customers and sites — companies, addresses, locations.' },
94
+ { name: 'Contact (Web Services)', value: 'wsContacts', description: 'BigChange Web Services contact management — search, create, update, groups, and flags.' },
95
+ { name: 'Contact Note (Web Services)', value: 'wsContactNotes', description: 'BigChange Web Services contact notes — list, create, update, and delete.' },
96
+ { name: 'Contract (Web Services)', value: 'wsContracts', description: 'BigChange Web Services contract management.' },
97
+ { name: 'Custom Field (Web Services)', value: 'wsCustomFields', description: 'BigChange Web Services custom field definitions and values.' },
70
98
  { name: 'Email (VH3 AI)', value: 'email', description: 'Email triage — classify, ingest, and list triage categories.' },
99
+ { name: 'Expense (Web Services)', value: 'wsExpenses', description: 'BigChange Web Services expense management — create, list, approve.' },
100
+ { name: 'Financial (Web Services)', value: 'wsFinancial', description: 'BigChange Web Services financial documents, invoices, payments, and tax.' },
71
101
  { name: 'Intelligence (VH3 AI)', value: 'intelligence', description: 'Job type profiling — list, get, and generate intelligence profiles.' },
72
102
  { name: 'Investigate (VH3 AI)', value: 'investigate', description: 'Run investigative queries against operational data.' },
73
103
  { name: 'Invoice (BigChange)', value: 'invoices', description: 'Sales invoices and their line items — read, create, edit, mark sent/paid, cancel.' },
74
104
  { name: 'Job (BigChange)', value: 'jobs', description: 'Field service jobs — CRUD, schedule, start, set result, cancel; manage constraints and stock.' },
75
105
  { name: 'Job Feed (VH3 AI)', value: 'jobFeed', description: 'Enriched job feed with aggregation and analytics.' },
76
106
  { name: 'Job Group (BigChange)', value: 'jobGroups', description: 'Linked sets of jobs (e.g. multi-visit projects) and their status history.' },
107
+ { name: 'Job (Web Services)', value: 'wsJobs', description: 'BigChange Web Services jobs API — list, get, cancel, and status history.' },
77
108
  { name: 'Job Type (BigChange)', value: 'jobTypes', description: 'Job type definitions (templates) — schemas for installation/repair/maintenance.' },
109
+ { name: 'Messaging (Web Services)', value: 'wsMessaging', description: 'Send messages via BigChange Web Services.' },
78
110
  { name: 'Note (BigChange)', value: 'notes', description: 'Notes, tasks, and progress updates attached to jobs/contacts/persons.' },
79
111
  { name: 'Person (BigChange)', value: 'persons', description: 'Individual people attached to a contact (e.g. site contacts). Includes consent history.' },
80
112
  { name: 'Pulse (VH3 AI)', value: 'pulse', description: 'Operational pulse dashboard for your company.' },
@@ -82,15 +114,25 @@ class Vh3Ai {
82
114
  { name: 'Quote (BigChange)', value: 'quotes', description: 'Sales quotes and their line items — read, create, edit, mark sent/accepted/rejected.' },
83
115
  { name: 'Reference Data (BigChange)', value: 'referenceData', description: 'Lookup tables — department codes and nominal (accounting) codes.' },
84
116
  { name: 'Report (VH3 AI)', value: 'reports', description: 'Generate operational reports (daily, weekly, monthly).' },
117
+ { name: 'Report (Web Services)', value: 'wsReports', description: 'BigChange Web Services report queries and exports.' },
85
118
  { name: 'Resource / Engineer (BigChange)', value: 'resources', description: 'Engineers/technicians (the field workforce) and their groups.' },
119
+ { name: 'Resource (Web Services)', value: 'wsResources', description: 'BigChange Web Services resource/engineer management — availability, skills, groups, GPS.' },
120
+ { name: 'Route (Web Services)', value: 'wsRoutes', description: 'BigChange Web Services route planning and optimisation.' },
86
121
  { name: 'Sales Opportunity (BigChange)', value: 'salesOpportunities', description: 'Sales opportunities (CRM pipeline) — read, edit, manage line items; list probabilities & stages.' },
122
+ { name: 'Sales Opportunity (Web Services)', value: 'wsSalesOpportunities', description: 'BigChange Web Services sales opportunity management.' },
87
123
  { name: 'Search (VH3 AI)', value: 'search', description: 'Semantic and outcome search across operational data.' },
88
124
  { name: 'Sentinel (VH3 AI)', value: 'sentinel', description: 'Proactive monitoring — run sentinels, view registry and results.' },
89
125
  { name: 'Stock (BigChange)', value: 'stock', description: 'Inventory — product categories, stock details, items, movements, and suppliers.' },
126
+ { name: 'Stock (Web Services)', value: 'wsStock', description: 'BigChange Web Services stock/inventory management.' },
127
+ { name: 'Tag (Web Services)', value: 'wsTags', description: 'BigChange Web Services tagging — assign, remove, and list tags on entities.' },
128
+ { name: 'Tracking (Web Services)', value: 'wsTracking', description: 'BigChange Web Services GPS tracking and location data.' },
90
129
  { name: 'User (VH3 AI)', value: 'users', description: 'User management — list, invite, update role, and delete company users.' },
91
130
  { name: 'Vehicle (BigChange)', value: 'vehicles', description: 'Fleet vehicles — read/create/update vehicle records and groups.' },
92
131
  { name: 'Weather (VH3 AI)', value: 'weather', description: 'Weather data for jobs, sites, forecasts, and historical lookups.' },
132
+ { name: 'Web User (Web Services)', value: 'wsWebUsers', description: 'BigChange Web Services web user/portal management.' },
133
+ { name: 'Workflow (Web Services)', value: 'wsWorkflow', description: 'BigChange Web Services workflow triggers and actions.' },
93
134
  { name: 'Worksheet (BigChange)', value: 'worksheets', description: 'Mobile-app worksheet/checklist definitions, questions, and submitted answers.' },
135
+ { name: 'Worksheet (Web Services)', value: 'wsWorksheets', description: 'BigChange Web Services worksheet data retrieval.' },
94
136
  { name: 'Worksheet Group (BigChange)', value: 'worksheetGroups', description: 'Folders that organise worksheet definitions.' },
95
137
  ],
96
138
  default: 'jobs',
@@ -155,11 +197,53 @@ class Vh3Ai {
155
197
  ...FsiConnieDescription_1.fsiConnieFields,
156
198
  ...FsiUsersDescription_1.fsiUsersOperations,
157
199
  ...FsiUsersDescription_1.fsiUsersFields,
200
+ ...WebServicesJobsGeneratedDescription_1.wsJobsOperations,
201
+ ...WebServicesJobsGeneratedDescription_1.wsJobsFields,
202
+ ...WebServicesAssetChecksDescription_1.wsAssetChecksOperations,
203
+ ...WebServicesAssetChecksDescription_1.wsAssetChecksFields,
204
+ ...WebServicesAssetsDescription_1.wsAssetsOperations,
205
+ ...WebServicesAssetsDescription_1.wsAssetsFields,
206
+ ...WebServicesAttachmentsDescription_1.wsAttachmentsOperations,
207
+ ...WebServicesAttachmentsDescription_1.wsAttachmentsFields,
208
+ ...WebServicesContactNotesDescription_1.wsContactNotesOperations,
209
+ ...WebServicesContactNotesDescription_1.wsContactNotesFields,
210
+ ...WebServicesContactsDescription_1.wsContactsOperations,
211
+ ...WebServicesContactsDescription_1.wsContactsFields,
212
+ ...WebServicesContractsDescription_1.wsContractsOperations,
213
+ ...WebServicesContractsDescription_1.wsContractsFields,
214
+ ...WebServicesCustomFieldsDescription_1.wsCustomFieldsOperations,
215
+ ...WebServicesCustomFieldsDescription_1.wsCustomFieldsFields,
216
+ ...WebServicesExpensesDescription_1.wsExpensesOperations,
217
+ ...WebServicesExpensesDescription_1.wsExpensesFields,
218
+ ...WebServicesFinancialDescription_1.wsFinancialOperations,
219
+ ...WebServicesFinancialDescription_1.wsFinancialFields,
220
+ ...WebServicesMessagingDescription_1.wsMessagingOperations,
221
+ ...WebServicesMessagingDescription_1.wsMessagingFields,
222
+ ...WebServicesReportsDescription_1.wsReportsOperations,
223
+ ...WebServicesReportsDescription_1.wsReportsFields,
224
+ ...WebServicesResourcesDescription_1.wsResourcesOperations,
225
+ ...WebServicesResourcesDescription_1.wsResourcesFields,
226
+ ...WebServicesRoutesDescription_1.wsRoutesOperations,
227
+ ...WebServicesRoutesDescription_1.wsRoutesFields,
228
+ ...WebServicesSalesOpportunitiesDescription_1.wsSalesOpportunitiesOperations,
229
+ ...WebServicesSalesOpportunitiesDescription_1.wsSalesOpportunitiesFields,
230
+ ...WebServicesStockDescription_1.wsStockOperations,
231
+ ...WebServicesStockDescription_1.wsStockFields,
232
+ ...WebServicesTagsDescription_1.wsTagsOperations,
233
+ ...WebServicesTagsDescription_1.wsTagsFields,
234
+ ...WebServicesTrackingDescription_1.wsTrackingOperations,
235
+ ...WebServicesTrackingDescription_1.wsTrackingFields,
236
+ ...WebServicesWebUsersDescription_1.wsWebUsersOperations,
237
+ ...WebServicesWebUsersDescription_1.wsWebUsersFields,
238
+ ...WebServicesWorkflowDescription_1.wsWorkflowOperations,
239
+ ...WebServicesWorkflowDescription_1.wsWorkflowFields,
240
+ ...WebServicesWorksheetsDescription_1.wsWorksheetsOperations,
241
+ ...WebServicesWorksheetsDescription_1.wsWorksheetsFields,
158
242
  ],
159
243
  };
160
244
  }
161
245
  async execute() {
162
- var _a, _b;
246
+ var _a, _b, _c;
163
247
  const items = this.getInputData();
164
248
  const returnData = [];
165
249
  const resource = this.getNodeParameter('resource', 0);
@@ -171,6 +255,29 @@ class Vh3Ai {
171
255
  'intelligence', 'investigate', 'jobFeed', 'pulse', 'reports',
172
256
  'search', 'sentinel', 'users', 'weather',
173
257
  ]);
258
+ const wsRoutesLookup = {
259
+ wsJobs: WebServicesJobsGeneratedDescription_1.wsJobsRoutes,
260
+ wsAssetChecks: WebServicesAssetChecksDescription_1.wsAssetChecksRoutes,
261
+ wsAssets: WebServicesAssetsDescription_1.wsAssetsRoutes,
262
+ wsAttachments: WebServicesAttachmentsDescription_1.wsAttachmentsRoutes,
263
+ wsContactNotes: WebServicesContactNotesDescription_1.wsContactNotesRoutes,
264
+ wsContacts: WebServicesContactsDescription_1.wsContactsRoutes,
265
+ wsContracts: WebServicesContractsDescription_1.wsContractsRoutes,
266
+ wsCustomFields: WebServicesCustomFieldsDescription_1.wsCustomFieldsRoutes,
267
+ wsExpenses: WebServicesExpensesDescription_1.wsExpensesRoutes,
268
+ wsFinancial: WebServicesFinancialDescription_1.wsFinancialRoutes,
269
+ wsMessaging: WebServicesMessagingDescription_1.wsMessagingRoutes,
270
+ wsReports: WebServicesReportsDescription_1.wsReportsRoutes,
271
+ wsResources: WebServicesResourcesDescription_1.wsResourcesRoutes,
272
+ wsRoutes: WebServicesRoutesDescription_1.wsRoutesRoutes,
273
+ wsSalesOpportunities: WebServicesSalesOpportunitiesDescription_1.wsSalesOpportunitiesRoutes,
274
+ wsStock: WebServicesStockDescription_1.wsStockRoutes,
275
+ wsTags: WebServicesTagsDescription_1.wsTagsRoutes,
276
+ wsTracking: WebServicesTrackingDescription_1.wsTrackingRoutes,
277
+ wsWebUsers: WebServicesWebUsersDescription_1.wsWebUsersRoutes,
278
+ wsWorkflow: WebServicesWorkflowDescription_1.wsWorkflowRoutes,
279
+ wsWorksheets: WebServicesWorksheetsDescription_1.wsWorksheetsRoutes,
280
+ };
174
281
  for (let i = 0; i < items.length; i++) {
175
282
  try {
176
283
  let responseData = [];
@@ -3151,6 +3258,31 @@ class Vh3Ai {
3151
3258
  responseData = [raw];
3152
3259
  }
3153
3260
  }
3261
+ // ── WEB SERVICES (all resources via generic route dispatch) ──
3262
+ else if (wsRoutesLookup[resource]) {
3263
+ const routes = wsRoutesLookup[resource];
3264
+ const route = routes[operation];
3265
+ if (route) {
3266
+ const params = {};
3267
+ const additional = this.getNodeParameter('additionalFields', i, {});
3268
+ for (const p of route.params) {
3269
+ let val = ((_c = additional[p.camelName]) !== null && _c !== void 0 ? _c : this.getNodeParameter(p.camelName, i, p.default));
3270
+ if (p.type === 'dateTime' && typeof val === 'string' && val) {
3271
+ val = (0, GenericFunctions_1.toWebServicesDateTime)(val);
3272
+ }
3273
+ params[p.apiName] = val !== null && val !== void 0 ? val : null;
3274
+ }
3275
+ const cleaned = (0, GenericFunctions_1.omitEmptyWsParams)(params);
3276
+ if (route.method === 'get') {
3277
+ const raw = await GenericFunctions_1.vh3WebServicesGetRequest.call(this, route.path, cleaned);
3278
+ responseData = (0, GenericFunctions_1.extractWsItems)(raw);
3279
+ }
3280
+ else {
3281
+ const raw = await GenericFunctions_1.vh3WebServicesPostRequest.call(this, route.path, cleaned);
3282
+ responseData = (0, GenericFunctions_1.extractWsItems)(raw);
3283
+ }
3284
+ }
3285
+ }
3154
3286
  const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
3155
3287
  returnData.push(...executionData);
3156
3288
  }