n8n-nodes-vh3ai 0.2.0 → 0.4.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 (48) hide show
  1. package/README.md +17 -0
  2. package/dist/nodes/Vh3Ai/GenericFunctions.d.ts +1 -1
  3. package/dist/nodes/Vh3Ai/GenericFunctions.js.map +1 -1
  4. package/dist/nodes/Vh3Ai/Vh3Ai.node.js +255 -3
  5. package/dist/nodes/Vh3Ai/Vh3Ai.node.js.map +1 -1
  6. package/dist/nodes/Vh3Ai/descriptions/ContactsDescription.js +73 -0
  7. package/dist/nodes/Vh3Ai/descriptions/ContactsDescription.js.map +1 -1
  8. package/dist/nodes/Vh3Ai/descriptions/JobsDescription.js +98 -0
  9. package/dist/nodes/Vh3Ai/descriptions/JobsDescription.js.map +1 -1
  10. package/dist/nodes/Vh3Ai/descriptions/QuotesDescription.d.ts +3 -0
  11. package/dist/nodes/Vh3Ai/descriptions/QuotesDescription.js +900 -0
  12. package/dist/nodes/Vh3Ai/descriptions/QuotesDescription.js.map +1 -0
  13. package/dist/nodes/Vh3Ai/vh3ai.svg +19 -12
  14. package/dist/nodes/Vh3AiPro/GenericFunctions.d.ts +8 -0
  15. package/dist/nodes/Vh3AiPro/GenericFunctions.js +58 -0
  16. package/dist/nodes/Vh3AiPro/GenericFunctions.js.map +1 -1
  17. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js +513 -28
  18. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js.map +1 -1
  19. package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js +12 -0
  20. package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js.map +1 -1
  21. package/dist/nodes/Vh3AiPro/descriptions/FsiCasesDescription.d.ts +3 -0
  22. package/dist/nodes/Vh3AiPro/descriptions/FsiCasesDescription.js +543 -0
  23. package/dist/nodes/Vh3AiPro/descriptions/FsiCasesDescription.js.map +1 -0
  24. package/dist/nodes/Vh3AiPro/descriptions/FsiConnieDescription.d.ts +3 -0
  25. package/dist/nodes/Vh3AiPro/descriptions/FsiConnieDescription.js +111 -0
  26. package/dist/nodes/Vh3AiPro/descriptions/FsiConnieDescription.js.map +1 -0
  27. package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.js +6 -0
  28. package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.js.map +1 -1
  29. package/dist/nodes/Vh3AiPro/descriptions/FsiIntelligenceDescription.d.ts +3 -0
  30. package/dist/nodes/Vh3AiPro/descriptions/FsiIntelligenceDescription.js +50 -0
  31. package/dist/nodes/Vh3AiPro/descriptions/FsiIntelligenceDescription.js.map +1 -0
  32. package/dist/nodes/Vh3AiPro/descriptions/FsiInvestigateDescription.d.ts +3 -0
  33. package/dist/nodes/Vh3AiPro/descriptions/FsiInvestigateDescription.js +40 -0
  34. package/dist/nodes/Vh3AiPro/descriptions/FsiInvestigateDescription.js.map +1 -0
  35. package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.js +26 -0
  36. package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.js.map +1 -1
  37. package/dist/nodes/Vh3AiPro/descriptions/FsiPulseDescription.d.ts +3 -0
  38. package/dist/nodes/Vh3AiPro/descriptions/FsiPulseDescription.js +23 -0
  39. package/dist/nodes/Vh3AiPro/descriptions/FsiPulseDescription.js.map +1 -0
  40. package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.js +7 -0
  41. package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.js.map +1 -1
  42. package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.js +51 -4
  43. package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.js.map +1 -1
  44. package/dist/nodes/Vh3AiPro/descriptions/FsiWeatherDescription.d.ts +3 -0
  45. package/dist/nodes/Vh3AiPro/descriptions/FsiWeatherDescription.js +52 -0
  46. package/dist/nodes/Vh3AiPro/descriptions/FsiWeatherDescription.js.map +1 -0
  47. package/dist/nodes/Vh3AiPro/vh3ai.svg +64 -11
  48. package/package.json +3 -3
package/README.md CHANGED
@@ -206,6 +206,23 @@ List-type parameters (`attachments`, `preferred_type_ids`) must be defined as ar
206
206
  - **AI tool compatible**: Both nodes are marked `usableAsTool` with rich descriptions for use with n8n AI agents
207
207
  - **Error context**: API errors include the endpoint that failed for easier debugging
208
208
 
209
+ ## Deployment & Hosting
210
+
211
+ VH3 operates n8n instances across two models:
212
+
213
+ | Model | Description |
214
+ |-------|-------------|
215
+ | **Managed Hosting** | 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. |
216
+ | **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. |
217
+
218
+ Both models use the same `n8nac` sync tooling (pull/edit/push/verify). Each instance gets its own subfolder under `workflows/`. Context switching between clients is handled by `scripts/n8n-switch.sh`.
219
+
220
+ For details see:
221
+ - [Developer Onboarding](docs/DEVELOPER-ONBOARDING.md) — setup, workflow sync, multi-instance access
222
+ - [Managed Hosting Plan](docs/MANAGED-HOSTING-PLAN.md) — infrastructure, provisioning, backups, offboarding
223
+
224
+ ---
225
+
209
226
  ## Compatibility
210
227
 
211
228
  - n8n version: 1.0+
@@ -25,5 +25,5 @@ export declare function vh3EnrichApiRequest(this: IExecuteFunctions, endpoint: s
25
25
  /**
26
26
  * Make an authenticated GET request to a VH3 proxy API endpoint.
27
27
  */
28
- export declare function vh3ProxyGetRequest(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number>): Promise<JsonObject>;
28
+ export declare function vh3ProxyGetRequest(this: IExecuteFunctions, endpoint: string, qs: Record<string, string | number | boolean>): Promise<JsonObject>;
29
29
  export declare function vh3ListApiRequestAllPages(this: IExecuteFunctions, endpoint: string, body: JsonObject, pageSize?: number): Promise<JsonObject[]>;
@@ -1 +1 @@
1
-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AG,MAAM,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QACpE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QAEnD,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAExB,IAAI,aAAa,GAAG,QAAQ,EAAE,CAAC;YAC9B,MAAM;QACP,CAAC;QACD,IAAI,EAAE,CAAC;IACR,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC"}
@@ -16,6 +16,7 @@ const PersonsDescription_1 = require("./descriptions/PersonsDescription");
16
16
  const JobGroupsDescription_1 = require("./descriptions/JobGroupsDescription");
17
17
  const StockDescription_1 = require("./descriptions/StockDescription");
18
18
  const ReferenceDataDescription_1 = require("./descriptions/ReferenceDataDescription");
19
+ const QuotesDescription_1 = require("./descriptions/QuotesDescription");
19
20
  class Vh3Ai {
20
21
  constructor() {
21
22
  this.description = {
@@ -25,7 +26,7 @@ class Vh3Ai {
25
26
  group: ['transform'],
26
27
  version: 1,
27
28
  subtitle: '={{$parameter["operation"] + " (" + $parameter["resource"] + ")"}}',
28
- description: 'Query field service management data via VH3 Connect — manage jobs, contacts, engineers, vehicles, invoices, notes, stock, and more',
29
+ description: 'Query field service management data via VH3 Connect — manage jobs, contacts, engineers, vehicles, invoices, quotes, notes, stock, and more',
29
30
  defaults: {
30
31
  name: 'VH3 AI',
31
32
  },
@@ -52,6 +53,7 @@ class Vh3Ai {
52
53
  { name: 'Job Type', value: 'jobTypes' },
53
54
  { name: 'Note', value: 'notes' },
54
55
  { name: 'Person', value: 'persons' },
56
+ { name: 'Quote', value: 'quotes' },
55
57
  { name: 'Reference Data', value: 'referenceData' },
56
58
  { name: 'Resource (Engineer)', value: 'resources' },
57
59
  { name: 'Stock', value: 'stock' },
@@ -81,6 +83,8 @@ class Vh3Ai {
81
83
  ...NotesDescription_1.notesFields,
82
84
  ...PersonsDescription_1.personsOperations,
83
85
  ...PersonsDescription_1.personsFields,
86
+ ...QuotesDescription_1.quotesOperations,
87
+ ...QuotesDescription_1.quotesFields,
84
88
  ...JobGroupsDescription_1.jobGroupsOperations,
85
89
  ...JobGroupsDescription_1.jobGroupsFields,
86
90
  ...StockDescription_1.stockOperations,
@@ -107,6 +111,7 @@ class Vh3Ai {
107
111
  const createdAtFrom = this.getNodeParameter('createdAtFrom', i);
108
112
  const createdAtTo = this.getNodeParameter('createdAtTo', i);
109
113
  const returnAll = this.getNodeParameter('returnAll', i);
114
+ const simplify = this.getNodeParameter('simplify', i);
110
115
  const additionalFields = this.getNodeParameter('additionalFields', i);
111
116
  const toUtc = (d) => {
112
117
  const iso = new Date(d).toISOString();
@@ -118,6 +123,8 @@ class Vh3Ai {
118
123
  createdAtFrom: toUtc(createdAtFrom),
119
124
  createdAtTo: toUtc(createdAtTo),
120
125
  };
126
+ if (simplify)
127
+ body.compact = true;
121
128
  if (additionalFields.status && additionalFields.status.length > 0) {
122
129
  body.status = additionalFields.status;
123
130
  }
@@ -156,7 +163,11 @@ class Vh3Ai {
156
163
  }
157
164
  else if (operation === 'getJobById') {
158
165
  const jobId = this.getNodeParameter('jobId', i);
159
- const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/jobs/job', { id: jobId });
166
+ const simplify = this.getNodeParameter('simplify', i);
167
+ const qs = { id: jobId };
168
+ if (simplify)
169
+ qs.compact = true;
170
+ const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/jobs/job', qs);
160
171
  responseData = [raw];
161
172
  }
162
173
  else if (operation === 'createJob') {
@@ -176,6 +187,13 @@ class Vh3Ai {
176
187
  body.orderNumber = additionalFields.orderNumber;
177
188
  if (additionalFields.jobGroupId)
178
189
  body.jobGroupId = additionalFields.jobGroupId;
190
+ const customFieldsData = this.getNodeParameter('customFields', i, {});
191
+ if (customFieldsData.values && customFieldsData.values.length > 0) {
192
+ body.customFields = customFieldsData.values.map((cf) => ({
193
+ definitionId: cf.definitionId,
194
+ value: cf.value,
195
+ }));
196
+ }
179
197
  const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/jobs/create', body);
180
198
  responseData = [raw];
181
199
  }
@@ -201,6 +219,13 @@ class Vh3Ai {
201
219
  body.isActioned = additionalFields.isActioned;
202
220
  if (additionalFields.officeNotes)
203
221
  body.officeNotes = additionalFields.officeNotes;
222
+ const customFieldsData = this.getNodeParameter('customFields', i, {});
223
+ if (customFieldsData.values && customFieldsData.values.length > 0) {
224
+ body.customFields = customFieldsData.values.map((cf) => ({
225
+ definitionId: cf.definitionId,
226
+ value: cf.value,
227
+ }));
228
+ }
204
229
  const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/jobs/edit', body);
205
230
  responseData = [raw];
206
231
  }
@@ -335,17 +360,36 @@ class Vh3Ai {
335
360
  else if (resource === 'contacts') {
336
361
  if (operation === 'getContact') {
337
362
  const contactId = this.getNodeParameter('contactId', i);
338
- const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/contacts/contact', { contactId });
363
+ const simplify = this.getNodeParameter('simplify', i);
364
+ const qs = { contactId };
365
+ if (simplify)
366
+ qs.compact = true;
367
+ const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/contacts/contact', qs);
339
368
  responseData = [raw];
340
369
  }
341
370
  else if (operation === 'listContacts') {
342
371
  const sortBy = this.getNodeParameter('sortBy', i);
343
372
  const direction = this.getNodeParameter('direction', i);
344
373
  const returnAll = this.getNodeParameter('returnAll', i);
374
+ const simplify = this.getNodeParameter('simplify', i);
345
375
  const additionalFields = this.getNodeParameter('additionalFields', i);
346
376
  const body = { sortBy, direction };
377
+ if (simplify)
378
+ body.compact = true;
347
379
  if (additionalFields.createdAtFrom)
348
380
  body.createdAtFrom = additionalFields.createdAtFrom;
381
+ if (additionalFields.reference)
382
+ body.reference = parseTexts(additionalFields.reference);
383
+ if (additionalFields.name)
384
+ body.name = additionalFields.name;
385
+ if (additionalFields.id)
386
+ body.id = parseIds(additionalFields.id);
387
+ if (additionalFields.parentId)
388
+ body.parentId = parseIds(additionalFields.parentId);
389
+ if (additionalFields.groupId)
390
+ body.groupId = parseIds(additionalFields.groupId);
391
+ if (additionalFields.status)
392
+ body.status = additionalFields.status;
349
393
  if (returnAll) {
350
394
  responseData = await GenericFunctions_1.vh3ListApiRequestAllPages.call(this, '/contacts/list', body);
351
395
  }
@@ -813,6 +857,214 @@ class Vh3Ai {
813
857
  responseData = [raw];
814
858
  }
815
859
  }
860
+ // ── QUOTES ────────────────────────────────────────────────
861
+ else if (resource === 'quotes') {
862
+ if (operation === 'listQuotes') {
863
+ const returnAll = this.getNodeParameter('returnAll', i);
864
+ const additionalFields = this.getNodeParameter('additionalFields', i);
865
+ const body = {};
866
+ if (additionalFields.sortBy)
867
+ body.sortBy = additionalFields.sortBy;
868
+ if (additionalFields.direction)
869
+ body.direction = additionalFields.direction;
870
+ if (additionalFields.id)
871
+ body.id = parseIds(additionalFields.id);
872
+ if (additionalFields.jobId)
873
+ body.jobId = parseIds(additionalFields.jobId);
874
+ if (additionalFields.jobGroupId)
875
+ body.jobGroupId = parseIds(additionalFields.jobGroupId);
876
+ if (additionalFields.contactId)
877
+ body.contactId = parseIds(additionalFields.contactId);
878
+ if (additionalFields.reference)
879
+ body.reference = parseTexts(additionalFields.reference);
880
+ if (additionalFields.createdAtFrom)
881
+ body.createdAtFrom = additionalFields.createdAtFrom;
882
+ if (additionalFields.createdAtTo)
883
+ body.createdAtTo = additionalFields.createdAtTo;
884
+ if (returnAll) {
885
+ responseData = await GenericFunctions_1.vh3ListApiRequestAllPages.call(this, '/quotes/list', body);
886
+ }
887
+ else {
888
+ body.pageSize = this.getNodeParameter('pageSize', i);
889
+ body.pageNumber = this.getNodeParameter('pageNumber', i);
890
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/list', body);
891
+ responseData = (0, GenericFunctions_1.extractItems)(raw).items;
892
+ }
893
+ }
894
+ else if (operation === 'getQuote') {
895
+ const quoteId = this.getNodeParameter('quoteId', i);
896
+ const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/quotes/quote', { quoteId });
897
+ responseData = [raw];
898
+ }
899
+ else if (operation === 'createQuote') {
900
+ const currencyCode = this.getNodeParameter('currencyCode', i);
901
+ const additionalFields = this.getNodeParameter('additionalFields', i);
902
+ const body = { currencyCode };
903
+ if (additionalFields.jobId)
904
+ body.jobId = additionalFields.jobId;
905
+ if (additionalFields.jobGroupId)
906
+ body.jobGroupId = additionalFields.jobGroupId;
907
+ if (additionalFields.contactId)
908
+ body.contactId = additionalFields.contactId;
909
+ if (additionalFields.reference)
910
+ body.reference = additionalFields.reference;
911
+ if (additionalFields.deliverySiteContactId) {
912
+ body.deliverySiteContactId = additionalFields.deliverySiteContactId;
913
+ }
914
+ if (additionalFields.departmentCodeId)
915
+ body.departmentCodeId = additionalFields.departmentCodeId;
916
+ if (additionalFields.nominalCodeId)
917
+ body.nominalCodeId = additionalFields.nominalCodeId;
918
+ if (additionalFields.clientNotes)
919
+ body.clientNotes = additionalFields.clientNotes;
920
+ if (additionalFields.internalNotes)
921
+ body.internalNotes = additionalFields.internalNotes;
922
+ if (typeof additionalFields.daysValidFor === 'number') {
923
+ body.daysValidFor = additionalFields.daysValidFor;
924
+ }
925
+ if (additionalFields.createdAt) {
926
+ body.createdAt = new Date(additionalFields.createdAt)
927
+ .toISOString()
928
+ .replace(/\.\d{3}Z$/, 'Z');
929
+ }
930
+ const customFieldsData = this.getNodeParameter('customFields', i, {});
931
+ if (customFieldsData.values && customFieldsData.values.length > 0) {
932
+ body.customFields = customFieldsData.values.map((cf) => ({
933
+ definitionId: cf.definitionId,
934
+ value: cf.value,
935
+ }));
936
+ }
937
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/create', body);
938
+ responseData = [raw];
939
+ }
940
+ else if (operation === 'editQuote') {
941
+ const quoteId = this.getNodeParameter('quoteId', i);
942
+ const additionalFields = this.getNodeParameter('additionalFields', i);
943
+ const body = { quoteId };
944
+ if (additionalFields.deliverySiteContactId) {
945
+ body.deliverySiteContactId = additionalFields.deliverySiteContactId;
946
+ }
947
+ if (additionalFields.clientNotes)
948
+ body.clientNotes = additionalFields.clientNotes;
949
+ if (additionalFields.internalNotes)
950
+ body.internalNotes = additionalFields.internalNotes;
951
+ if (additionalFields.nominalCodeId)
952
+ body.nominalCodeId = additionalFields.nominalCodeId;
953
+ if (additionalFields.departmentCodeId)
954
+ body.departmentCodeId = additionalFields.departmentCodeId;
955
+ if (typeof additionalFields.daysValidFor === 'number') {
956
+ body.daysValidFor = additionalFields.daysValidFor;
957
+ }
958
+ const customFieldsData = this.getNodeParameter('customFields', i, {});
959
+ if (customFieldsData.values && customFieldsData.values.length > 0) {
960
+ body.customFields = customFieldsData.values.map((cf) => ({
961
+ definitionId: cf.definitionId,
962
+ value: cf.value,
963
+ }));
964
+ }
965
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/edit', body);
966
+ responseData = [raw];
967
+ }
968
+ else if (operation === 'listQuoteLineItems') {
969
+ const quoteId = this.getNodeParameter('quoteId', i);
970
+ const returnAll = this.getNodeParameter('returnAll', i);
971
+ const body = { quoteId };
972
+ if (returnAll) {
973
+ responseData = await GenericFunctions_1.vh3ListApiRequestAllPages.call(this, '/quotes/line_item/list', body);
974
+ }
975
+ else {
976
+ body.pageSize = this.getNodeParameter('pageSize', i);
977
+ body.pageNumber = this.getNodeParameter('pageNumber', i);
978
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/line_item/list', body);
979
+ responseData = (0, GenericFunctions_1.extractItems)(raw).items;
980
+ }
981
+ }
982
+ else if (operation === 'getQuoteLineItem') {
983
+ const quoteId = this.getNodeParameter('quoteId', i);
984
+ const lineItemId = this.getNodeParameter('lineItemId', i);
985
+ const raw = await GenericFunctions_1.vh3ProxyGetRequest.call(this, '/quotes/line_item', { quoteId, lineItemId });
986
+ responseData = [raw];
987
+ }
988
+ else if (operation === 'createQuoteLineItem') {
989
+ const quoteId = this.getNodeParameter('quoteId', i);
990
+ const contactId = this.getNodeParameter('contactId', i);
991
+ const description = this.getNodeParameter('description', i);
992
+ const quantity = this.getNodeParameter('quantity', i);
993
+ const unitCost = this.getNodeParameter('unitCost', i);
994
+ const unitSellingPrice = this.getNodeParameter('unitSellingPrice', i);
995
+ const taxId = this.getNodeParameter('taxId', i);
996
+ const nominalCodeId = this.getNodeParameter('nominalCodeId', i);
997
+ const departmentCodeId = this.getNodeParameter('departmentCodeId', i);
998
+ const body = {
999
+ quoteId,
1000
+ contactId,
1001
+ description,
1002
+ quantity,
1003
+ unitCost,
1004
+ unitSellingPrice,
1005
+ taxId,
1006
+ nominalCodeId,
1007
+ departmentCodeId,
1008
+ };
1009
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/line_item/create', body);
1010
+ responseData = [raw];
1011
+ }
1012
+ else if (operation === 'editQuoteLineItem') {
1013
+ const quoteId = this.getNodeParameter('quoteId', i);
1014
+ const lineItemId = this.getNodeParameter('lineItemId', i);
1015
+ const description = this.getNodeParameter('description', i);
1016
+ const quantity = this.getNodeParameter('quantity', i);
1017
+ const unitCost = this.getNodeParameter('unitCost', i);
1018
+ const unitSellingPrice = this.getNodeParameter('unitSellingPrice', i);
1019
+ const taxId = this.getNodeParameter('taxId', i);
1020
+ const nominalCodeId = this.getNodeParameter('nominalCodeId', i);
1021
+ const departmentCodeId = this.getNodeParameter('departmentCodeId', i);
1022
+ const body = {
1023
+ quoteId,
1024
+ lineItemId,
1025
+ description,
1026
+ quantity,
1027
+ unitCost,
1028
+ unitSellingPrice,
1029
+ taxId,
1030
+ nominalCodeId,
1031
+ departmentCodeId,
1032
+ };
1033
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/line_item/edit', body);
1034
+ responseData = [raw];
1035
+ }
1036
+ else if (operation === 'deleteQuoteLineItem') {
1037
+ const quoteId = this.getNodeParameter('quoteId', i);
1038
+ const lineItemId = this.getNodeParameter('lineItemId', i);
1039
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/line_item/delete', {
1040
+ quoteId,
1041
+ lineItemId,
1042
+ });
1043
+ responseData = [raw];
1044
+ }
1045
+ else if (operation === 'markQuoteSent') {
1046
+ const quoteId = this.getNodeParameter('quoteId', i);
1047
+ const additionalFields = this.getNodeParameter('additionalFields', i);
1048
+ const body = { quoteId };
1049
+ if (additionalFields.sentAt) {
1050
+ body.sentAt = new Date(additionalFields.sentAt)
1051
+ .toISOString()
1052
+ .replace(/\.\d{3}Z$/, 'Z');
1053
+ }
1054
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/mark_sent', body);
1055
+ responseData = [raw];
1056
+ }
1057
+ else if (operation === 'markQuoteAccepted') {
1058
+ const quoteId = this.getNodeParameter('quoteId', i);
1059
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/mark_accepted', { quoteId });
1060
+ responseData = [raw];
1061
+ }
1062
+ else if (operation === 'markQuoteRejected') {
1063
+ const quoteId = this.getNodeParameter('quoteId', i);
1064
+ const raw = await GenericFunctions_1.vh3ListApiRequest.call(this, '/quotes/mark_rejected', { quoteId });
1065
+ responseData = [raw];
1066
+ }
1067
+ }
816
1068
  // ── NOTES ─────────────────────────────────────────────────
817
1069
  else if (resource === 'notes') {
818
1070
  if (operation === 'listNotes') {