@workbuddy/n8n-nodes-workbuddy-vnext 1.0.97 → 1.0.99

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.
@@ -1 +1 @@
1
- {"version":3,"file":"WorkBuddy.node.d.ts","sourceRoot":"","sources":["../../../nodes/WorkBuddy/WorkBuddy.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AA6E5G,qBAAa,SAAU,YAAW,SAAS;IACzC,WAAW,EAAE,oBAAoB,CAkouB/B;IAEF,OAAO;;0CAEiC,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;kCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;qCAGpD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGtD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;kCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGnD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;qCAGxD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAIxF;CACH"}
1
+ {"version":3,"file":"WorkBuddy.node.d.ts","sourceRoot":"","sources":["../../../nodes/WorkBuddy/WorkBuddy.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AA6E5G,qBAAa,SAAU,YAAW,SAAS;IACzC,WAAW,EAAE,oBAAoB,CAyiuB/B;IAEF,OAAO;;0CAEiC,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;kCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;qCAGpD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGtD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;kCAG3D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAGnD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;qCAGxD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAIxF;CACH"}
@@ -7693,8 +7693,8 @@ class WorkBuddy {
7693
7693
  {
7694
7694
  name: 'List stage statuses',
7695
7695
  value: 'PublicApiStageStatusController_list',
7696
- action: 'Retrieve all stage statuses configured for the tenant (Settings > Stage Status).\nEach item is a workflow state a stage (work order) can use (e.g. New, Dispatched, En Route, On Site, Completed, Finalised).\n\nResponse fields include:\n- identity: id, name, systemName, systemStatus, sortOrder\n- description (nullable)\n- activityOptions: shareWithCustomer, shareWithField (always present; unset = false)\n- displayOptions: showInContractorPortal, showInFieldApp (always present)\n\nDisplay Options rules (match Settings UI):\n- Only systemStatus On Hold or In Progress support display options; other systemStatus values return both flags as false\n- showInFieldApp is not configurable for In Progress and is always false\n- When supported and not configured, visibility defaults to true (Settings UI default)\n\nRequires scope: settings:read',
7697
- description: 'Retrieve all stage statuses configured for the tenant (Settings > Stage Status).\nEach item is a workflow state a stage (work order) can use (e.g. New, Dispatched, En Route, On Site, Completed, Finalised).\n\nResponse fields include:\n- identity: id, name, systemName, systemStatus, sortOrder\n- description (nullable)\n- activityOptions: shareWithCustomer, shareWithField (always present; unset = false)\n- displayOptions: showInContractorPortal, showInFieldApp (always present)\n\nDisplay Options rules (match Settings UI):\n- Only systemStatus On Hold or In Progress support display options; other systemStatus values return both flags as false\n- showInFieldApp is not configurable for In Progress and is always false\n- When supported and not configured, visibility defaults to true (Settings UI default)\n\nRequires scope: settings:read',
7696
+ action: 'Retrieve active stage statuses configured for the tenant (Settings > Stage Status). Soft-deleted statuses are omitted.\nEach item is a workflow state a stage (work order) can use (e.g. New, Dispatched, En Route, On Site, Completed, Finalised).\n\nResponse fields include:\n- identity: id, name, systemName, systemStatus, sortOrder\n- description (nullable)\n- activityOptions: shareWithCustomer, shareWithField (always present; unset = false)\n- displayOptions: showInContractorPortal, showInFieldApp (always present)\n\nDisplay Options rules (match Settings UI):\n- Only systemStatus On Hold or In Progress support display options; other systemStatus values return both flags as false\n- showInFieldApp is not configurable for In Progress and is always false\n- When supported and not configured, visibility defaults to true (Settings UI default)\n\nRequires scope: settings:read',
7697
+ description: 'Retrieve active stage statuses configured for the tenant (Settings > Stage Status). Soft-deleted statuses are omitted.\nEach item is a workflow state a stage (work order) can use (e.g. New, Dispatched, En Route, On Site, Completed, Finalised).\n\nResponse fields include:\n- identity: id, name, systemName, systemStatus, sortOrder\n- description (nullable)\n- activityOptions: shareWithCustomer, shareWithField (always present; unset = false)\n- displayOptions: showInContractorPortal, showInFieldApp (always present)\n\nDisplay Options rules (match Settings UI):\n- Only systemStatus On Hold or In Progress support display options; other systemStatus values return both flags as false\n- showInFieldApp is not configurable for In Progress and is always false\n- When supported and not configured, visibility defaults to true (Settings UI default)\n\nRequires scope: settings:read',
7698
7698
  routing: {
7699
7699
  request: {
7700
7700
  method: 'GET',
@@ -7705,8 +7705,8 @@ class WorkBuddy {
7705
7705
  {
7706
7706
  name: 'List tags',
7707
7707
  value: 'PublicApiTagController_list',
7708
- action: 'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, subscriptions, agreement, work, integration-types, flag-category.',
7709
- description: 'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, subscriptions, agreement, work, integration-types, flag-category.',
7708
+ action: 'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. `colors` is the Settings label-picker palette used by PUT /settings/tags. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, service-scope, subscriptions, agreement, work, integration-types, flag-category.',
7709
+ description: 'Retrieve all active tags (labels) configured. Use the optional `type` query parameter to filter by label type. Defaults to `job` if not specified. `colors` is the Settings label-picker palette used by PUT /settings/tags. Supported types: job, scheduling, quote, customer, user, overheads, form, finance, system, work-order-system, account, contact, zone, work-categories, lead-source, lead, opportunity, opportunity-lost, project, project-type, payment-type, file, asset, item-location, task, phase, site, service-type, service-scope, subscriptions, agreement, work, integration-types, flag-category.',
7710
7710
  routing: {
7711
7711
  request: {
7712
7712
  method: 'GET',
@@ -7714,6 +7714,18 @@ class WorkBuddy {
7714
7714
  },
7715
7715
  },
7716
7716
  },
7717
+ {
7718
+ name: 'Upsert a tag',
7719
+ value: 'PublicApiTagController_upsert',
7720
+ action: 'Create a tag, or return the existing active tag with the same type and name (case-insensitive). Limited to service-type, service-scope, and work-categories. Optional color must be a Settings label-picker hex; omitted color is chosen from that palette. Does not change color on an existing tag. Requires settings:tags:write — not settings:write.',
7721
+ description: 'Create a tag, or return the existing active tag with the same type and name (case-insensitive). Limited to service-type, service-scope, and work-categories. Optional color must be a Settings label-picker hex; omitted color is chosen from that palette. Does not change color on an existing tag. Requires settings:tags:write — not settings:write.',
7722
+ routing: {
7723
+ request: {
7724
+ method: 'PUT',
7725
+ url: '/api/v2/public/settings/tags',
7726
+ },
7727
+ },
7728
+ },
7717
7729
  {
7718
7730
  name: 'List zones',
7719
7731
  value: 'PublicApiZoneController_list',
@@ -8064,6 +8076,182 @@ class WorkBuddy {
8064
8076
  },
8065
8077
  ],
8066
8078
  },
8079
+ {
8080
+ displayName: 'Type',
8081
+ name: 'type',
8082
+ type: 'options',
8083
+ default: '',
8084
+ description: '',
8085
+ required: true,
8086
+ displayOptions: {
8087
+ show: {
8088
+ resource: ['settings-reference-data'],
8089
+ operation: ['PublicApiTagController_upsert'],
8090
+ },
8091
+ },
8092
+ options: [
8093
+ {
8094
+ name: 'service-type',
8095
+ value: 'service-type',
8096
+ },
8097
+ {
8098
+ name: 'service-scope',
8099
+ value: 'service-scope',
8100
+ },
8101
+ {
8102
+ name: 'work-categories',
8103
+ value: 'work-categories',
8104
+ },
8105
+ ],
8106
+ routing: {
8107
+ send: {
8108
+ type: 'body',
8109
+ property: 'type',
8110
+ },
8111
+ },
8112
+ },
8113
+ {
8114
+ displayName: 'Name',
8115
+ name: 'name',
8116
+ type: 'string',
8117
+ default: '',
8118
+ description: 'Display name',
8119
+ required: true,
8120
+ displayOptions: {
8121
+ show: {
8122
+ resource: ['settings-reference-data'],
8123
+ operation: ['PublicApiTagController_upsert'],
8124
+ },
8125
+ },
8126
+ routing: {
8127
+ send: {
8128
+ type: 'body',
8129
+ property: 'name',
8130
+ },
8131
+ },
8132
+ },
8133
+ {
8134
+ displayName: 'Color',
8135
+ name: 'color',
8136
+ type: 'options',
8137
+ default: '',
8138
+ description: '',
8139
+ required: false,
8140
+ displayOptions: {
8141
+ show: {
8142
+ resource: ['settings-reference-data'],
8143
+ operation: ['PublicApiTagController_upsert'],
8144
+ },
8145
+ },
8146
+ options: [
8147
+ {
8148
+ name: '#1abc9c',
8149
+ value: '#1abc9c',
8150
+ },
8151
+ {
8152
+ name: '#16a085',
8153
+ value: '#16a085',
8154
+ },
8155
+ {
8156
+ name: '#f1c40f',
8157
+ value: '#f1c40f',
8158
+ },
8159
+ {
8160
+ name: '#f39c12',
8161
+ value: '#f39c12',
8162
+ },
8163
+ {
8164
+ name: '#2ecc71',
8165
+ value: '#2ecc71',
8166
+ },
8167
+ {
8168
+ name: '#27ae60',
8169
+ value: '#27ae60',
8170
+ },
8171
+ {
8172
+ name: '#e67e22',
8173
+ value: '#e67e22',
8174
+ },
8175
+ {
8176
+ name: '#d35400',
8177
+ value: '#d35400',
8178
+ },
8179
+ {
8180
+ name: '#3498db',
8181
+ value: '#3498db',
8182
+ },
8183
+ {
8184
+ name: '#2980b9',
8185
+ value: '#2980b9',
8186
+ },
8187
+ {
8188
+ name: '#e74c3c',
8189
+ value: '#e74c3c',
8190
+ },
8191
+ {
8192
+ name: '#c0392b',
8193
+ value: '#c0392b',
8194
+ },
8195
+ {
8196
+ name: '#9b59b6',
8197
+ value: '#9b59b6',
8198
+ },
8199
+ {
8200
+ name: '#8e44ad',
8201
+ value: '#8e44ad',
8202
+ },
8203
+ {
8204
+ name: '#bdc3c7',
8205
+ value: '#bdc3c7',
8206
+ },
8207
+ {
8208
+ name: '#34495e',
8209
+ value: '#34495e',
8210
+ },
8211
+ {
8212
+ name: '#2c3e50',
8213
+ value: '#2c3e50',
8214
+ },
8215
+ {
8216
+ name: '#95a5a6',
8217
+ value: '#95a5a6',
8218
+ },
8219
+ {
8220
+ name: '#7f8c8d',
8221
+ value: '#7f8c8d',
8222
+ },
8223
+ {
8224
+ name: '#ec87bf',
8225
+ value: '#ec87bf',
8226
+ },
8227
+ {
8228
+ name: '#d870ad',
8229
+ value: '#d870ad',
8230
+ },
8231
+ {
8232
+ name: '#f69785',
8233
+ value: '#f69785',
8234
+ },
8235
+ {
8236
+ name: '#9ba37e',
8237
+ value: '#9ba37e',
8238
+ },
8239
+ {
8240
+ name: '#b49255',
8241
+ value: '#b49255',
8242
+ },
8243
+ {
8244
+ name: '#a94136',
8245
+ value: '#a94136',
8246
+ },
8247
+ ],
8248
+ routing: {
8249
+ send: {
8250
+ type: 'body',
8251
+ property: 'color',
8252
+ },
8253
+ },
8254
+ },
8067
8255
  // Settings Templates Operations
8068
8256
  {
8069
8257
  displayName: 'Operation',
@@ -15653,99 +15841,6 @@ class WorkBuddy {
15653
15841
  },
15654
15842
  },
15655
15843
  },
15656
- {
15657
- displayName: 'Address',
15658
- name: 'address',
15659
- type: 'collection',
15660
- default: {},
15661
- placeholder: 'Add Address',
15662
- description: '',
15663
- required: false,
15664
- displayOptions: {
15665
- show: {
15666
- resource: ['crm-customers'],
15667
- operation: ['PublicCrmCustomerController_update'],
15668
- },
15669
- },
15670
- options: [
15671
- {
15672
- displayName: 'Name',
15673
- name: 'name',
15674
- type: 'string',
15675
- default: '',
15676
- description: 'Display name',
15677
- },
15678
- {
15679
- displayName: 'Street1',
15680
- name: 'street1',
15681
- type: 'string',
15682
- default: '',
15683
- description: '',
15684
- },
15685
- {
15686
- displayName: 'Street2',
15687
- name: 'street2',
15688
- type: 'string',
15689
- default: '',
15690
- description: '',
15691
- },
15692
- {
15693
- displayName: 'Suburb',
15694
- name: 'suburb',
15695
- type: 'string',
15696
- default: '',
15697
- description: '',
15698
- },
15699
- {
15700
- displayName: 'State',
15701
- name: 'state',
15702
- type: 'string',
15703
- default: '',
15704
- description: '',
15705
- },
15706
- {
15707
- displayName: 'Postal Code',
15708
- name: 'postalCode',
15709
- type: 'string',
15710
- default: '',
15711
- description: '',
15712
- },
15713
- {
15714
- displayName: 'Country',
15715
- name: 'country',
15716
- type: 'string',
15717
- default: '',
15718
- description: '',
15719
- },
15720
- {
15721
- displayName: 'Lat',
15722
- name: 'lat',
15723
- type: 'number',
15724
- default: 0,
15725
- description: '',
15726
- },
15727
- {
15728
- displayName: 'Lgn',
15729
- name: 'lgn',
15730
- type: 'number',
15731
- default: 0,
15732
- description: '',
15733
- },
15734
- {
15735
- displayName: 'Timezone',
15736
- name: 'timezone',
15737
- type: 'string',
15738
- default: '',
15739
- description: '',
15740
- },
15741
- ],
15742
- routing: {
15743
- send: {
15744
- type: 'body',
15745
- property: 'address',
15746
- },
15747
- },
15748
- },
15749
15844
  {
15750
15845
  displayName: 'Primary Contact',
15751
15846
  name: 'primaryContact',
@@ -17321,99 +17416,6 @@ class WorkBuddy {
17321
17416
  },
17322
17417
  },
17323
17418
  },
17324
- {
17325
- displayName: 'Address',
17326
- name: 'address',
17327
- type: 'collection',
17328
- default: {},
17329
- placeholder: 'Add Address',
17330
- description: '',
17331
- required: false,
17332
- displayOptions: {
17333
- show: {
17334
- resource: ['crm-contractors'],
17335
- operation: ['PublicCrmContractorController_update'],
17336
- },
17337
- },
17338
- options: [
17339
- {
17340
- displayName: 'Name',
17341
- name: 'name',
17342
- type: 'string',
17343
- default: '',
17344
- description: 'Display name',
17345
- },
17346
- {
17347
- displayName: 'Street1',
17348
- name: 'street1',
17349
- type: 'string',
17350
- default: '',
17351
- description: '',
17352
- },
17353
- {
17354
- displayName: 'Street2',
17355
- name: 'street2',
17356
- type: 'string',
17357
- default: '',
17358
- description: '',
17359
- },
17360
- {
17361
- displayName: 'Suburb',
17362
- name: 'suburb',
17363
- type: 'string',
17364
- default: '',
17365
- description: '',
17366
- },
17367
- {
17368
- displayName: 'State',
17369
- name: 'state',
17370
- type: 'string',
17371
- default: '',
17372
- description: '',
17373
- },
17374
- {
17375
- displayName: 'Postal Code',
17376
- name: 'postalCode',
17377
- type: 'string',
17378
- default: '',
17379
- description: '',
17380
- },
17381
- {
17382
- displayName: 'Country',
17383
- name: 'country',
17384
- type: 'string',
17385
- default: '',
17386
- description: '',
17387
- },
17388
- {
17389
- displayName: 'Lat',
17390
- name: 'lat',
17391
- type: 'number',
17392
- default: 0,
17393
- description: '',
17394
- },
17395
- {
17396
- displayName: 'Lgn',
17397
- name: 'lgn',
17398
- type: 'number',
17399
- default: 0,
17400
- description: '',
17401
- },
17402
- {
17403
- displayName: 'Timezone',
17404
- name: 'timezone',
17405
- type: 'string',
17406
- default: '',
17407
- description: '',
17408
- },
17409
- ],
17410
- routing: {
17411
- send: {
17412
- type: 'body',
17413
- property: 'address',
17414
- },
17415
- },
17416
- },
17417
17419
  {
17418
17420
  displayName: 'Primary Contact',
17419
17421
  name: 'primaryContact',
@@ -18950,99 +18952,6 @@ class WorkBuddy {
18950
18952
  },
18951
18953
  },
18952
18954
  },
18953
- {
18954
- displayName: 'Address',
18955
- name: 'address',
18956
- type: 'collection',
18957
- default: {},
18958
- placeholder: 'Add Address',
18959
- description: '',
18960
- required: false,
18961
- displayOptions: {
18962
- show: {
18963
- resource: ['crm-suppliers'],
18964
- operation: ['PublicCrmSupplierController_update'],
18965
- },
18966
- },
18967
- options: [
18968
- {
18969
- displayName: 'Name',
18970
- name: 'name',
18971
- type: 'string',
18972
- default: '',
18973
- description: 'Display name',
18974
- },
18975
- {
18976
- displayName: 'Street1',
18977
- name: 'street1',
18978
- type: 'string',
18979
- default: '',
18980
- description: '',
18981
- },
18982
- {
18983
- displayName: 'Street2',
18984
- name: 'street2',
18985
- type: 'string',
18986
- default: '',
18987
- description: '',
18988
- },
18989
- {
18990
- displayName: 'Suburb',
18991
- name: 'suburb',
18992
- type: 'string',
18993
- default: '',
18994
- description: '',
18995
- },
18996
- {
18997
- displayName: 'State',
18998
- name: 'state',
18999
- type: 'string',
19000
- default: '',
19001
- description: '',
19002
- },
19003
- {
19004
- displayName: 'Postal Code',
19005
- name: 'postalCode',
19006
- type: 'string',
19007
- default: '',
19008
- description: '',
19009
- },
19010
- {
19011
- displayName: 'Country',
19012
- name: 'country',
19013
- type: 'string',
19014
- default: '',
19015
- description: '',
19016
- },
19017
- {
19018
- displayName: 'Lat',
19019
- name: 'lat',
19020
- type: 'number',
19021
- default: 0,
19022
- description: '',
19023
- },
19024
- {
19025
- displayName: 'Lgn',
19026
- name: 'lgn',
19027
- type: 'number',
19028
- default: 0,
19029
- description: '',
19030
- },
19031
- {
19032
- displayName: 'Timezone',
19033
- name: 'timezone',
19034
- type: 'string',
19035
- default: '',
19036
- description: '',
19037
- },
19038
- ],
19039
- routing: {
19040
- send: {
19041
- type: 'body',
19042
- property: 'address',
19043
- },
19044
- },
19045
- },
19046
18955
  {
19047
18956
  displayName: 'Primary Contact',
19048
18957
  name: 'primaryContact',