n8n-nodes-vh3ai 0.6.4 → 0.7.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.
- package/LICENSE +21 -0
- package/README.md +54 -129
- package/dist/credentials/Vh3AiApi.credentials.d.ts +1 -0
- package/dist/credentials/Vh3AiApi.credentials.js +1 -0
- package/dist/credentials/Vh3AiApi.credentials.js.map +1 -1
- package/dist/nodes/Vh3Ai/GenericFunctions.d.ts +33 -0
- package/dist/nodes/Vh3Ai/GenericFunctions.js +173 -2
- package/dist/nodes/Vh3Ai/GenericFunctions.js.map +1 -1
- package/dist/nodes/Vh3Ai/Vh3Ai.node.js +739 -17
- package/dist/nodes/Vh3Ai/Vh3Ai.node.js.map +1 -1
- package/dist/nodes/Vh3Ai/Vh3Ai.node.json +12 -1
- package/dist/nodes/Vh3Ai/descriptions/FsiAccountReviewDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiBriefingDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiCasesDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiConnieDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiEmailDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiIntelligenceDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiInvestigateDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiJobsDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiPulseDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiReportsDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiSearchDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiSentinelDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/descriptions/FsiWeatherDescription.js.map +1 -0
- package/dist/nodes/Vh3Ai/vh3ai.svg +53 -7
- package/package.json +3 -4
- package/dist/nodes/Vh3AiPro/GenericFunctions.d.ts +0 -31
- package/dist/nodes/Vh3AiPro/GenericFunctions.js +0 -180
- package/dist/nodes/Vh3AiPro/GenericFunctions.js.map +0 -1
- package/dist/nodes/Vh3AiPro/Vh3AiPro.node.d.ts +0 -5
- package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js +0 -797
- package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js.map +0 -1
- package/dist/nodes/Vh3AiPro/Vh3AiPro.node.json +0 -31
- package/dist/nodes/Vh3AiPro/descriptions/FsiAccountReviewDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.d.ts +0 -3
- package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js +0 -130
- package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiBriefingDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiCasesDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiConnieDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiIntelligenceDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiInvestigateDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiPulseDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiSentinelDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/descriptions/FsiWeatherDescription.js.map +0 -1
- package/dist/nodes/Vh3AiPro/vh3ai-original.svg +0 -14
- package/dist/nodes/Vh3AiPro/vh3ai.svg +0 -67
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiAccountReviewDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiAccountReviewDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiBriefingDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiBriefingDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiCasesDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiCasesDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiConnieDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiConnieDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiEmailDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiEmailDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiIntelligenceDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiIntelligenceDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiInvestigateDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiInvestigateDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiJobsDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiJobsDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiPulseDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiPulseDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiReportsDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiReportsDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiSearchDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiSearchDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiSentinelDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiSentinelDescription.js +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiWeatherDescription.d.ts +0 -0
- /package/dist/nodes/{Vh3AiPro → Vh3Ai}/descriptions/FsiWeatherDescription.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 VH3 AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
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
|
|
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.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **VH3 AI PRO** — AI-powered Field Service Intelligence (FSI) operations: enriched job feed, search and investigation, agent chat (Connie), email triage and ingestion, sentinels, cases, weather, intelligence profiles, and more.
|
|
9
|
-
|
|
10
|
-
Both nodes are marked `usableAsTool: true` so they can be called directly by n8n AI agents.
|
|
7
|
+
The node is marked `usableAsTool: true` so it can be called directly by n8n AI agents.
|
|
11
8
|
|
|
12
9
|
---
|
|
13
10
|
|
|
@@ -44,7 +41,7 @@ n8n start
|
|
|
44
41
|
|
|
45
42
|
## Credentials
|
|
46
43
|
|
|
47
|
-
|
|
44
|
+
The node uses the **VH3 AI API** credential type:
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
| Field | Description | Default |
|
|
@@ -55,106 +52,72 @@ Both nodes use the **VH3 AI API** credential type:
|
|
|
55
52
|
| FSI Base URL | VH3 Field Service Intelligence API | `https://api.vh3connect.io/api:kP8T1CK7` |
|
|
56
53
|
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
- **VH3 AI PRO**: injects `company_id` and `api_key` into the body or query string (no header auth). VH3 AI validates server-side.
|
|
55
|
+
All operations authenticate using the same API Key and Company ID credentials.
|
|
60
56
|
|
|
61
57
|
---
|
|
62
58
|
|
|
63
|
-
##
|
|
59
|
+
## Resources & Operations
|
|
64
60
|
|
|
61
|
+
### BigChange API Resources
|
|
65
62
|
|
|
66
63
|
| Resource | Operations |
|
|
67
64
|
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
68
|
-
| **Job** | List Jobs · Get Job · Get Job by ID · Create Job · Edit Job · Cancel Job · Schedule Job · Start Job · Set Job Result · List Job Status History · Create / Delete / List Job Constraints · Create / List Job Stock |
|
|
69
|
-
| **Contact** | List Contacts · Get Contact · Create / Edit Contact · Stop / Unstop Contact · List Contact Groups · Get / Create / Update Contact Group |
|
|
70
|
-
| **Resource (
|
|
71
|
-
| **Vehicle** | List Vehicles · Get / Create / Update Vehicle |
|
|
72
|
-
| **Worksheet** | List Worksheet Definitions · Get Worksheet · Get Worksheet Questions · List Worksheet Answers |
|
|
73
|
-
| **Worksheet Group** | List · Get |
|
|
74
|
-
| **Invoice** | List Invoices · Get Invoice · Create / Edit Invoice · Cancel Invoice · Mark Invoice Sent / Paid · List Invoice Line Items · Get Invoice Line Item · Create / Delete Invoice Line Item |
|
|
75
|
-
| **Quote** | List Quotes · Get Quote · Create / Edit Quote · Mark Quote Sent / Accepted / Rejected · List Quote Line Items · Get / Create / Edit / Delete Quote Line Item |
|
|
76
|
-
| **Note** | List Notes · Get Note · Create / Edit Note · Create Progress Update · List Note Types · Get Note Type |
|
|
77
|
-
| **Person** | List Persons · Get Person · Create / Edit Person · List Consent History |
|
|
78
|
-
| **Job Group** | List Job Groups · Get Job Group · Create / Edit Job Group · Mark Complete · Mark Financially Complete · List Status History |
|
|
79
|
-
| **Stock** | List Product Categories · Get Product Category · List / Get / Create / Update Stock Details · List / Get / Create / Update Stock Item · List Stock Movements · List Stock Suppliers · Get Stock Supplier |
|
|
80
|
-
| **Reference Data** | List Department Codes · Get Department Code · List Nominal Codes · Get Nominal Code |
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
###
|
|
84
|
-
|
|
85
|
-
Every read operation across all 14 resources exposes a top-level **Simplify** boolean (Gmail-style). When ON, the node sends `compact=true` and the API returns LLM-optimised payloads (empty values stripped, nested structures flattened, custom fields collapsed to a key→value dict). As of 0.6.x, ~50 list/get endpoints across Jobs, Contacts, Resources, Vehicles, Worksheets, Worksheet Groups, Invoices, Quotes, Notes, Persons, Job Groups, Job Types, Stock, and Reference Data all support it.
|
|
86
|
-
|
|
87
|
-
Default is OFF on most operations (preserve raw envelope for backward compatibility); ON for the agent-heavy ones (List Jobs, Get Job by ID, List Contacts, Get Contact). Always pass `Simplify=true` when wiring this node up as an AI tool — payloads can otherwise be 5–10× larger than they need to be.
|
|
88
|
-
|
|
89
|
-
### List Invoices / List Quotes — automatic 12-month fallback
|
|
90
|
-
|
|
91
|
-
BigChange's `/v1/finance/invoices` and `/v1/quotes` endpoints reject requests with no filter or date range (HTTP 422). When the caller hasn't supplied any filter (`id`/`jobId`/`jobGroupId`/`contactId`/`reference`) and no `createdAtFrom`/`createdAtTo`, the node automatically scopes the query to the last 12 months ending now. Explicit values still take precedence — this only kicks in when nothing is set, so existing workflows are unaffected.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## VH3 AI PRO — Resources & Operations
|
|
96
|
-
|
|
65
|
+
| **Job (BigChange)** | List Jobs · Get Job · Get Job by ID · Create Job · Edit Job · Cancel Job · Schedule Job · Start Job · Set Job Result · List Job Status History · Create / Delete / List Job Constraints · Create / List Job Stock |
|
|
66
|
+
| **Contact (BigChange)** | List Contacts · Get Contact · Create / Edit Contact · Stop / Unstop Contact · List Contact Groups · Get / Create / Update Contact Group |
|
|
67
|
+
| **Resource / Engineer (BigChange)** | List Resources · Get Resource · Create / Update Resource · List Resource Groups · Get Resource Group |
|
|
68
|
+
| **Vehicle (BigChange)** | List Vehicles · Get / Create / Update Vehicle |
|
|
69
|
+
| **Worksheet (BigChange)** | List Worksheet Definitions · Get Worksheet · Get Worksheet Questions · List Worksheet Answers |
|
|
70
|
+
| **Worksheet Group (BigChange)** | List · Get |
|
|
71
|
+
| **Invoice (BigChange)** | List Invoices · Get Invoice · Create / Edit Invoice · Cancel Invoice · Mark Invoice Sent / Paid · List Invoice Line Items · Get Invoice Line Item · Create / Delete Invoice Line Item |
|
|
72
|
+
| **Quote (BigChange)** | List Quotes · Get Quote · Create / Edit Quote · Mark Quote Sent / Accepted / Rejected · List Quote Line Items · Get / Create / Edit / Delete Quote Line Item |
|
|
73
|
+
| **Note (BigChange)** | List Notes · Get Note · Create / Edit Note · Create Progress Update · List Note Types · Get Note Type |
|
|
74
|
+
| **Person (BigChange)** | List Persons · Get Person · Create / Edit Person · List Consent History |
|
|
75
|
+
| **Job Group (BigChange)** | List Job Groups · Get Job Group · Create / Edit Job Group · Mark Complete · Mark Financially Complete · List Status History |
|
|
76
|
+
| **Stock (BigChange)** | List Product Categories · Get Product Category · List / Get / Create / Update Stock Details · List / Get / Create / Update Stock Item · List Stock Movements · List Stock Suppliers · Get Stock Supplier |
|
|
77
|
+
| **Reference Data (BigChange)** | List Department Codes · Get Department Code · List Nominal Codes · Get Nominal Code |
|
|
78
|
+
| **Job Type (BigChange)** | List Job Types · Get Job Type |
|
|
79
|
+
|
|
80
|
+
### VH3 AI Intelligence Resources
|
|
97
81
|
|
|
98
82
|
| Resource | Operations |
|
|
99
83
|
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
100
|
-
| **Account Report** | Generate Account Report (monthly account review for a contact) |
|
|
101
|
-
| **
|
|
102
|
-
| **
|
|
103
|
-
| **
|
|
104
|
-
| **
|
|
105
|
-
| **
|
|
106
|
-
| **
|
|
107
|
-
| **
|
|
108
|
-
| **
|
|
109
|
-
| **
|
|
110
|
-
| **
|
|
111
|
-
| **
|
|
112
|
-
| **
|
|
113
|
-
| **Weather** | Get Weather for Job · Get Weather for Site · Get Forecast · Get Historical |
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### Agent operations
|
|
117
|
-
|
|
118
|
-
The legacy **Chat with Connie** operation derives its endpoint dynamically from the operation value, which keeps the agent registry extensible. **Agent Search** and **Agent Ask** are explicit operations against the dedicated `/agent/search` and `/agent/ask` endpoints.
|
|
119
|
-
|
|
120
|
-
**Connie** has a dedicated resource for richer scenarios beyond chat: voice chat, contact summaries, conversation-history search, session listing, and per-session message retrieval.
|
|
121
|
-
|
|
122
|
-
### Email operations
|
|
123
|
-
|
|
124
|
-
**Classify Email** and **Ingest Email** both support an optional **Attachment Source** (None / From URL / From Binary Data):
|
|
125
|
-
|
|
126
|
-
- **From URL** — passes `{ filename, url, mimeType }` to the backend for server-side fetch.
|
|
127
|
-
- **From Binary Data** — reads the n8n binary buffer, base64-encodes it, sends `{ filename, contentBase64, mimeType }`.
|
|
128
|
-
- **None** — sends `attachments: []`.
|
|
129
|
-
|
|
130
|
-
The Ingest Email operation also accepts **Preferred Type IDs** (comma-separated integers) for extraction weighting.
|
|
84
|
+
| **Account Report (VH3 AI)** | Generate Account Report (monthly account review for a contact) |
|
|
85
|
+
| **Briefing (VH3 AI)** | Generate Briefing (engineer pre-visit briefing and call script) |
|
|
86
|
+
| **Case (VH3 AI)** | Create / Get / Update / Search / List Cases · Transition Case (lifecycle status change) · Add Comment · List Activity · List / Add / Remove Case Items · Add / Remove Participants · List Cases for Item (reverse lookup by external item) |
|
|
87
|
+
| **Connie (VH3 AI)** | Chat · List Sessions · Get Session Messages · Search History |
|
|
88
|
+
| **Email (VH3 AI)** | Classify Email · Ingest Email · List Triage Categories |
|
|
89
|
+
| **Intelligence (VH3 AI)** | List Profiles (with **Profiled Only** filter) · Get Profile · Generate Profiles |
|
|
90
|
+
| **Investigate (VH3 AI)** | Run Investigation (multi-step hybrid investigation across vector + graph data) |
|
|
91
|
+
| **Job Feed (VH3 AI)** | List Job Feed · Get Enriched Job · Aggregate Jobs (metrics with grouping, time-axis control, period-over-period comparison) |
|
|
92
|
+
| **Pulse (VH3 AI)** | Get Pulse (cached business-health dashboard snapshot for the tenant) |
|
|
93
|
+
| **Report (VH3 AI)** | Generate Report (accepts `sections` parameter to scope the output) · List Report Sections |
|
|
94
|
+
| **Search (VH3 AI)** | Autocomplete · Search Outcomes · Search Intake · Search Intake (Basic) |
|
|
95
|
+
| **Sentinel (VH3 AI)** | Run Sentinels (all or single by ID) · List Sentinel Registry · Get Latest Results |
|
|
96
|
+
| **Weather (VH3 AI)** | Get Weather for Job · Get Weather for Site · Get Forecast · Get Historical |
|
|
131
97
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
### Search operations
|
|
98
|
+
---
|
|
135
99
|
|
|
136
|
-
|
|
100
|
+
## Key Features
|
|
137
101
|
|
|
138
|
-
|
|
102
|
+
### Simplify switch — LLM-friendly for cost-saving and efficiency
|
|
139
103
|
|
|
140
|
-
|
|
104
|
+
Every BigChange read operation exposes a top-level **Simplify** boolean. When ON, the node sends `compact=true` and the API returns LLM-optimised payloads (empty values stripped, nested structures flattened, custom fields collapsed to a key→value dict).
|
|
141
105
|
|
|
142
|
-
|
|
106
|
+
### List Invoices / List Quotes — automatic 12-month fallback
|
|
143
107
|
|
|
144
|
-
|
|
108
|
+
BigChange's invoice and quote endpoints reject requests with no filter or date range. When no filter is supplied, the node automatically scopes the query to the last 12 months.
|
|
145
109
|
|
|
146
|
-
|
|
147
|
-
- **Max Age (Months)** — convenience int (defaults to 6) that's equivalent to "Date From = now − N months". Ignored if Date From is also set.
|
|
110
|
+
### Email operations — attachment support
|
|
148
111
|
|
|
149
|
-
|
|
112
|
+
**Classify Email** and **Ingest Email** support optional attachments via URL (server-side fetch) or binary data (base64-encoded upload).
|
|
150
113
|
|
|
151
|
-
###
|
|
114
|
+
### Search operations — per-result unwrapping
|
|
152
115
|
|
|
153
|
-
|
|
116
|
+
All search operations return one n8n item per result (envelope unwrapped at the node layer).
|
|
154
117
|
|
|
155
|
-
### Sentinels
|
|
118
|
+
### Sentinels — proactive monitoring
|
|
156
119
|
|
|
157
|
-
|
|
120
|
+
Deterministic checks (no LLM cost) against your VH3 AI platform fee. Available sentinels include Engineer Performance Slip, FVF Rate Drop, Workload Imbalance, Site Deterioration, Repeat Failure Escalation, and more.
|
|
158
121
|
|
|
159
122
|
---
|
|
160
123
|
|
|
@@ -162,68 +125,30 @@ The **Sentinel** resource runs proactive, deterministic checks (no LLM cost) aga
|
|
|
162
125
|
|
|
163
126
|
### Parameter casing
|
|
164
127
|
|
|
165
|
-
The n8n UI uses **camelCase** field names
|
|
166
|
-
|
|
167
|
-
### FSI API authentication
|
|
168
|
-
|
|
169
|
-
The VH3 AI PRO node does **not** use the `X-API-KEY` header. Instead, `company_id` and `api_key` are injected directly:
|
|
170
|
-
|
|
171
|
-
- **GET requests** — as query string parameters
|
|
172
|
-
- **POST / PATCH / DELETE requests** — into the JSON body
|
|
173
|
-
|
|
174
|
-
Handled by `vh3FsiGetRequest`, `vh3FsiPostRequest`, `vh3FsiPatchRequest`, and `vh3FsiDeleteRequest` in `nodes/Vh3AiPro/GenericFunctions.ts`.
|
|
175
|
-
|
|
176
|
-
### Attachment handling
|
|
177
|
-
|
|
178
|
-
Both email operations share `buildAttachments()` from `GenericFunctions.ts`:
|
|
179
|
-
|
|
180
|
-
1. Reads `attachmentSource` from the n8n UI.
|
|
181
|
-
2. **URL mode** — constructs `{ filename, url, mimeType }`. No download on the n8n side; the backend fetches server-side.
|
|
182
|
-
3. **Binary mode** — reads the binary buffer, base64-encodes, constructs `{ filename, contentBase64, mimeType }`.
|
|
183
|
-
4. Returns `[]` when no attachment is selected.
|
|
128
|
+
The n8n UI uses **camelCase** field names. The handlers map these to the appropriate API parameter format before sending.
|
|
184
129
|
|
|
185
130
|
### Response normalisation
|
|
186
131
|
|
|
187
|
-
- **
|
|
188
|
-
- **VH3 AI
|
|
132
|
+
- **BigChange**: `extractItems()` unwraps the three known envelope shapes into a flat item array.
|
|
133
|
+
- **VH3 AI**: semantic search and autocomplete responses are unwrapped to per-hit / per-result items.
|
|
189
134
|
|
|
190
135
|
### Auto-pagination
|
|
191
136
|
|
|
192
|
-
List operations expose a **Return All** toggle. When ON, the node walks every page automatically (capped at 200 pages
|
|
137
|
+
List operations expose a **Return All** toggle. When ON, the node walks every page automatically (capped at 200 pages).
|
|
193
138
|
|
|
194
139
|
### AI tool compatibility
|
|
195
140
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
When you wire one of these nodes as an `ai_tool` connection, **always pick the Tool variant** (or use type `n8n-nodes-vh3ai.vh3AiTool` / `n8n-nodes-vh3ai.vh3AiProTool` in workflow JSON). The bare regular node (`vh3Ai` / `vh3AiPro`) does not expose `supplyData` and the agent will throw at run time.
|
|
199
|
-
|
|
200
|
-
Operation descriptions, resource descriptions, and field hints across all 14 BC Proxy resources have been rewritten to be agent-grade: every operation states verb-first what it does, what IDs it requires (and where to source them), what it returns, when to pick it over a sibling op, and BigChange-specific gotchas. The Filter by Type (autocomplete), Profiled Only (intelligence), Simplify (compact), and 12-month fallback (invoices/quotes) toggles were all designed with the agent path in mind.
|
|
201
|
-
|
|
202
|
-
For tool-call ergonomics, mark agent-fillable parameters with the n8n `$fromAI(name, description, type)` expression — this is the runtime form of the "AI defined" toggle in the node UI. Avoid `type: 'json'` for optional fields: n8n's tool-input schema rejects empty strings for json-typed fields and some agents force-fill every declared parameter, which raises *"Value must be a non-empty object or a non-empty array"* at run time. Stick to `'string'` (which accepts empty strings) for optional filters; the node's truthy-checks will skip them.
|
|
203
|
-
|
|
204
|
-
### Agent prompt companion
|
|
205
|
-
|
|
206
|
-
`docs/vh3ai-bigchange-tool-guide.md` ships with this package and is designed to be pasted directly into an AI agent's system message. It covers:
|
|
207
|
-
|
|
208
|
-
- A condensed mental model of the BigChange data graph (job ⇄ contact ⇄ resource ⇄ quote ⇄ invoice ⇄ worksheet ⇄ note).
|
|
209
|
-
- 9 operating rules (always resolve names → IDs first, simplify=true on every read, required date windows on List Jobs, etc.).
|
|
210
|
-
- A resource cheat sheet, a disambiguation guide ("if the agent is tempted to X, do Y"), and an exhaustive ID lookup map.
|
|
211
|
-
- The full enum of job statuses, constraint types, stock actions, and contact statuses.
|
|
212
|
-
- 4 worked end-to-end agent workflows (find jobs by customer, raise an invoice, reassign a job, summarise a job's worksheets).
|
|
141
|
+
The node sets `usableAsTool: true`. n8n auto-generates a Tool variant (**VH3 AI Tool**) which implements the `supplyData()` interface for LangChain agents.
|
|
213
142
|
|
|
214
143
|
---
|
|
215
144
|
|
|
216
145
|
## Deployment & Hosting
|
|
217
146
|
|
|
218
|
-
VH3 operates n8n instances across two models:
|
|
219
|
-
|
|
220
|
-
|
|
221
147
|
| Model | Description |
|
|
222
148
|
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
223
149
|
| **Managed Hosting by VH3 AI** | VH3 deploys and hosts the n8n instance at `{customer}.n8n.vh3.ai`. Custom Docker image with VH3 nodes baked in, automated provisioning, backups, and updates. |
|
|
224
150
|
| **BYOI (Bring Your Own Instance)** | Customer runs their own n8n (self-hosted or n8n Cloud), installs `n8n-nodes-vh3ai` via Community Nodes, and gives VH3 an API key for workflow support. |
|
|
225
151
|
|
|
226
|
-
|
|
227
152
|
---
|
|
228
153
|
|
|
229
154
|
## Compatibility
|
|
@@ -233,8 +158,8 @@ VH3 operates n8n instances across two models:
|
|
|
233
158
|
|
|
234
159
|
## Changelog
|
|
235
160
|
|
|
236
|
-
See `
|
|
161
|
+
See [`CHANGELOG.md`](CHANGELOG.md) for release history.
|
|
237
162
|
|
|
238
163
|
## License
|
|
239
164
|
|
|
240
|
-
MIT
|
|
165
|
+
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vh3AiApi.credentials.js","sourceRoot":"","sources":["../../credentials/Vh3AiApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,YAAY,CAAC;QAE3B,qBAAgB,GAAG,qBAAqB,CAAC;QAEzC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qBAAqB;aAClC;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,+FAA+F;aAChG;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yCAAyC;aACtD;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,oDAAoD;aACjE;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,oCAAoC;gBACzC,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;gBACpD,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;aACD;SACD,CAAC;IACH,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"Vh3AiApi.credentials.js","sourceRoot":"","sources":["../../credentials/Vh3AiApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;Q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C;IACH,CAAC;CAAA;AAjED,4BAiEC"}
|
|
@@ -46,4 +46,37 @@ export declare function vh3EnrichApiRequest(this: IExecuteFunctions, endpoint: s
|
|
|
46
46
|
* Make an authenticated GET request to a VH3 proxy API endpoint.
|
|
47
47
|
*/
|
|
48
48
|
export declare function vh3ProxyGetRequest(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number | boolean>): Promise<JsonObject>;
|
|
49
|
+
/**
|
|
50
|
+
* Fetch all pages from a list endpoint, auto-paginating until all items are collected.
|
|
51
|
+
*/
|
|
52
|
+
export declare const MAX_PAGES = 200;
|
|
49
53
|
export declare function vh3ListApiRequestAllPages(this: IExecuteFunctions, endpoint: string, body: JsonObject, pageSize?: number): Promise<JsonObject[]>;
|
|
54
|
+
/**
|
|
55
|
+
* GET request to the VH3 FSI API.
|
|
56
|
+
* Auth is injected as query params (company_id, api_key).
|
|
57
|
+
*/
|
|
58
|
+
export declare function vh3FsiGetRequest(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number | boolean>): Promise<JsonObject>;
|
|
59
|
+
/**
|
|
60
|
+
* POST request to the VH3 FSI API.
|
|
61
|
+
* Auth is injected into the request body (company_id, api_key).
|
|
62
|
+
*/
|
|
63
|
+
export declare function vh3FsiPostRequest(this: IExecuteFunctions, endpoint: string, body: JsonObject): Promise<JsonObject>;
|
|
64
|
+
/**
|
|
65
|
+
* PATCH request to the VH3 FSI API.
|
|
66
|
+
*/
|
|
67
|
+
export declare function vh3FsiPatchRequest(this: IExecuteFunctions, endpoint: string, body: JsonObject): Promise<JsonObject>;
|
|
68
|
+
/**
|
|
69
|
+
* DELETE request to the VH3 FSI API.
|
|
70
|
+
*/
|
|
71
|
+
export declare function vh3FsiDeleteRequest(this: IExecuteFunctions, endpoint: string, body?: JsonObject): Promise<JsonObject>;
|
|
72
|
+
/**
|
|
73
|
+
* Build the attachments array from n8n UI parameters.
|
|
74
|
+
* URL mode passes the URL through for server-side fetch.
|
|
75
|
+
* Binary mode base64-encodes the file from n8n's binary data.
|
|
76
|
+
* Returns [] when no attachment is selected.
|
|
77
|
+
*/
|
|
78
|
+
export declare function buildAttachments(context: IExecuteFunctions, itemIndex: number): Promise<JsonObject[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Auto-paginate a GET endpoint on the FSI API.
|
|
81
|
+
*/
|
|
82
|
+
export declare function vh3FsiGetAllPages(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number | boolean>, arrayKey: string, pageSize?: number): Promise<JsonObject[]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_PAGES = void 0;
|
|
3
4
|
exports.toUtcDateTime = toUtcDateTime;
|
|
4
5
|
exports.defaultCreatedAtRange = defaultCreatedAtRange;
|
|
5
6
|
exports.extractItems = extractItems;
|
|
@@ -8,6 +9,12 @@ exports.requireCompanyId = requireCompanyId;
|
|
|
8
9
|
exports.vh3EnrichApiRequest = vh3EnrichApiRequest;
|
|
9
10
|
exports.vh3ProxyGetRequest = vh3ProxyGetRequest;
|
|
10
11
|
exports.vh3ListApiRequestAllPages = vh3ListApiRequestAllPages;
|
|
12
|
+
exports.vh3FsiGetRequest = vh3FsiGetRequest;
|
|
13
|
+
exports.vh3FsiPostRequest = vh3FsiPostRequest;
|
|
14
|
+
exports.vh3FsiPatchRequest = vh3FsiPatchRequest;
|
|
15
|
+
exports.vh3FsiDeleteRequest = vh3FsiDeleteRequest;
|
|
16
|
+
exports.buildAttachments = buildAttachments;
|
|
17
|
+
exports.vh3FsiGetAllPages = vh3FsiGetAllPages;
|
|
11
18
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
12
19
|
const LIST_API_PREFIX = '/api:YdihQNr3';
|
|
13
20
|
const ENRICH_API_PREFIX = '/api:6q5N0phZ';
|
|
@@ -145,11 +152,11 @@ async function vh3ProxyGetRequest(endpoint, qs) {
|
|
|
145
152
|
/**
|
|
146
153
|
* Fetch all pages from a list endpoint, auto-paginating until all items are collected.
|
|
147
154
|
*/
|
|
148
|
-
|
|
155
|
+
exports.MAX_PAGES = 200;
|
|
149
156
|
async function vh3ListApiRequestAllPages(endpoint, body, pageSize = 100) {
|
|
150
157
|
const allItems = [];
|
|
151
158
|
let page = 1;
|
|
152
|
-
while (page <= MAX_PAGES) {
|
|
159
|
+
while (page <= exports.MAX_PAGES) {
|
|
153
160
|
const pagedBody = { ...body, pageNumber: page, pageSize };
|
|
154
161
|
const raw = await vh3ListApiRequest.call(this, endpoint, pagedBody);
|
|
155
162
|
const { items, pageItemCount } = extractItems(raw);
|
|
@@ -161,4 +168,168 @@ async function vh3ListApiRequestAllPages(endpoint, body, pageSize = 100) {
|
|
|
161
168
|
}
|
|
162
169
|
return allItems;
|
|
163
170
|
}
|
|
171
|
+
// ── FSI (Field Service Intelligence) API helpers ─────────────────────────────
|
|
172
|
+
async function getFsiAuth(context) {
|
|
173
|
+
const credentials = await context.getCredentials('vh3AiApi');
|
|
174
|
+
const fsiBaseUrl = credentials.fsiBaseUrl.replace(/\/$/, '');
|
|
175
|
+
const company_id = credentials.companyId;
|
|
176
|
+
const api_key = credentials.apiKey;
|
|
177
|
+
return { fsiBaseUrl, company_id, api_key };
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* GET request to the VH3 FSI API.
|
|
181
|
+
* Auth is injected as query params (company_id, api_key).
|
|
182
|
+
*/
|
|
183
|
+
async function vh3FsiGetRequest(endpoint, qs) {
|
|
184
|
+
const { fsiBaseUrl, company_id, api_key } = await getFsiAuth(this);
|
|
185
|
+
const options = {
|
|
186
|
+
method: 'GET',
|
|
187
|
+
url: `${fsiBaseUrl}${endpoint}`,
|
|
188
|
+
qs: { company_id, api_key, ...qs },
|
|
189
|
+
json: true,
|
|
190
|
+
};
|
|
191
|
+
try {
|
|
192
|
+
return (await this.helpers.httpRequest(options));
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
|
|
196
|
+
message: `FSI API request failed: GET ${endpoint}`,
|
|
197
|
+
description: error.message,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* POST request to the VH3 FSI API.
|
|
203
|
+
* Auth is injected into the request body (company_id, api_key).
|
|
204
|
+
*/
|
|
205
|
+
async function vh3FsiPostRequest(endpoint, body) {
|
|
206
|
+
const { fsiBaseUrl, company_id, api_key } = await getFsiAuth(this);
|
|
207
|
+
const fullBody = { company_id, api_key, ...body };
|
|
208
|
+
const options = {
|
|
209
|
+
method: 'POST',
|
|
210
|
+
url: `${fsiBaseUrl}${endpoint}`,
|
|
211
|
+
body: JSON.stringify(fullBody),
|
|
212
|
+
headers: {
|
|
213
|
+
'Content-Type': 'application/json',
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
try {
|
|
217
|
+
const response = await this.helpers.httpRequest(options);
|
|
218
|
+
if (typeof response === 'string') {
|
|
219
|
+
return JSON.parse(response);
|
|
220
|
+
}
|
|
221
|
+
return response;
|
|
222
|
+
}
|
|
223
|
+
catch (error) {
|
|
224
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
|
|
225
|
+
message: `FSI API request failed: POST ${endpoint}`,
|
|
226
|
+
description: error.message,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* PATCH request to the VH3 FSI API.
|
|
232
|
+
*/
|
|
233
|
+
async function vh3FsiPatchRequest(endpoint, body) {
|
|
234
|
+
const { fsiBaseUrl, company_id, api_key } = await getFsiAuth(this);
|
|
235
|
+
const fullBody = { company_id, api_key, ...body };
|
|
236
|
+
const options = {
|
|
237
|
+
method: 'PATCH',
|
|
238
|
+
url: `${fsiBaseUrl}${endpoint}`,
|
|
239
|
+
body: JSON.stringify(fullBody),
|
|
240
|
+
headers: {
|
|
241
|
+
'Content-Type': 'application/json',
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
try {
|
|
245
|
+
const response = await this.helpers.httpRequest(options);
|
|
246
|
+
if (typeof response === 'string') {
|
|
247
|
+
return JSON.parse(response);
|
|
248
|
+
}
|
|
249
|
+
return response;
|
|
250
|
+
}
|
|
251
|
+
catch (error) {
|
|
252
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
|
|
253
|
+
message: `FSI API request failed: PATCH ${endpoint}`,
|
|
254
|
+
description: error.message,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* DELETE request to the VH3 FSI API.
|
|
260
|
+
*/
|
|
261
|
+
async function vh3FsiDeleteRequest(endpoint, body = {}) {
|
|
262
|
+
const { fsiBaseUrl, company_id, api_key } = await getFsiAuth(this);
|
|
263
|
+
const fullBody = { company_id, api_key, ...body };
|
|
264
|
+
const options = {
|
|
265
|
+
method: 'DELETE',
|
|
266
|
+
url: `${fsiBaseUrl}${endpoint}`,
|
|
267
|
+
body: JSON.stringify(fullBody),
|
|
268
|
+
headers: {
|
|
269
|
+
'Content-Type': 'application/json',
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
try {
|
|
273
|
+
const response = await this.helpers.httpRequest(options);
|
|
274
|
+
if (typeof response === 'string') {
|
|
275
|
+
return JSON.parse(response);
|
|
276
|
+
}
|
|
277
|
+
return response;
|
|
278
|
+
}
|
|
279
|
+
catch (error) {
|
|
280
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, {
|
|
281
|
+
message: `FSI API request failed: DELETE ${endpoint}`,
|
|
282
|
+
description: error.message,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Build the attachments array from n8n UI parameters.
|
|
288
|
+
* URL mode passes the URL through for server-side fetch.
|
|
289
|
+
* Binary mode base64-encodes the file from n8n's binary data.
|
|
290
|
+
* Returns [] when no attachment is selected.
|
|
291
|
+
*/
|
|
292
|
+
async function buildAttachments(context, itemIndex) {
|
|
293
|
+
const source = context.getNodeParameter('attachmentSource', itemIndex);
|
|
294
|
+
if (source === 'url') {
|
|
295
|
+
const url = context.getNodeParameter('attachmentUrl', itemIndex);
|
|
296
|
+
const filename = context.getNodeParameter('attachmentFilename', itemIndex);
|
|
297
|
+
const mimeType = context.getNodeParameter('attachmentMimeType', itemIndex);
|
|
298
|
+
if (url && filename) {
|
|
299
|
+
return [{ filename, url, mimeType }];
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
else if (source === 'binary') {
|
|
303
|
+
const binaryProp = context.getNodeParameter('attachmentBinaryProperty', itemIndex);
|
|
304
|
+
const binaryData = context.helpers.assertBinaryData(itemIndex, binaryProp);
|
|
305
|
+
const buffer = await context.helpers.getBinaryDataBuffer(itemIndex, binaryProp);
|
|
306
|
+
const contentBase64 = buffer.toString('base64');
|
|
307
|
+
return [
|
|
308
|
+
{
|
|
309
|
+
filename: binaryData.fileName || 'attachment',
|
|
310
|
+
contentBase64,
|
|
311
|
+
mimeType: binaryData.mimeType || 'application/octet-stream',
|
|
312
|
+
},
|
|
313
|
+
];
|
|
314
|
+
}
|
|
315
|
+
return [];
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Auto-paginate a GET endpoint on the FSI API.
|
|
319
|
+
*/
|
|
320
|
+
async function vh3FsiGetAllPages(endpoint, qs, arrayKey, pageSize = 100) {
|
|
321
|
+
const allItems = [];
|
|
322
|
+
let page = 1;
|
|
323
|
+
while (page <= exports.MAX_PAGES) {
|
|
324
|
+
const pagedQs = { ...qs, page_number: page, page_size: pageSize };
|
|
325
|
+
const raw = await vh3FsiGetRequest.call(this, endpoint, pagedQs);
|
|
326
|
+
const items = (Array.isArray(raw[arrayKey]) ? raw[arrayKey] : []);
|
|
327
|
+
allItems.push(...items);
|
|
328
|
+
if (items.length < pageSize) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
page++;
|
|
332
|
+
}
|
|
333
|
+
return allItems;
|
|
334
|
+
}
|
|
164
335
|
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Vh3Ai/GenericFunctions.ts"],"names":[],"mappings":"
|
|
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,kDA8BC;AAQD,4CA4BC;AAKD,8CAwBC;AA5ZD,+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,EAAE;IACpD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CA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