@workbuddy/n8n-nodes-workbuddy-vnext 1.0.69 → 1.0.70

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.
@@ -5664,26 +5664,6 @@ class WorkBuddy {
5664
5664
  },
5665
5665
  },
5666
5666
  },
5667
- {
5668
- displayName: 'Sequence',
5669
- name: 'sequence',
5670
- type: 'number',
5671
- default: 0,
5672
- description: 'Display order / sequence number',
5673
- required: false,
5674
- displayOptions: {
5675
- show: {
5676
- resource: ['stages'],
5677
- operation: ['PublicJobStageController_create'],
5678
- },
5679
- },
5680
- routing: {
5681
- send: {
5682
- type: 'body',
5683
- property: 'sequence',
5684
- },
5685
- },
5686
- },
5687
5667
  {
5688
5668
  displayName: 'Start Date',
5689
5669
  name: 'startDate',
@@ -6756,8 +6736,8 @@ class WorkBuddy {
6756
6736
  {
6757
6737
  name: 'List entity statuses',
6758
6738
  value: 'PublicApiEntityStatusController_list',
6759
- action: 'Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier',
6760
- description: 'Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier',
6739
+ action: 'Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier, contact, external-user',
6740
+ description: 'Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier, contact, external-user',
6761
6741
  routing: {
6762
6742
  request: {
6763
6743
  method: 'GET',
@@ -6861,6 +6841,30 @@ class WorkBuddy {
6861
6841
  },
6862
6842
  },
6863
6843
  },
6844
+ {
6845
+ name: 'List client portal roles',
6846
+ value: 'PublicApiPortalRoleController_listClientPortal',
6847
+ action: 'Roles assignable to customer login contacts (UserType.Client). Includes custom client roles; includes built-in system client roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.',
6848
+ description: 'Roles assignable to customer login contacts (UserType.Client). Includes custom client roles; includes built-in system client roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.',
6849
+ routing: {
6850
+ request: {
6851
+ method: 'GET',
6852
+ url: '/api/v2/public/settings/roles/client-portal',
6853
+ },
6854
+ },
6855
+ },
6856
+ {
6857
+ name: 'List contractor portal roles',
6858
+ value: 'PublicApiPortalRoleController_listContractorPortal',
6859
+ action: 'Roles assignable to contractor login contacts (UserType.Subcontractor). Includes custom contractor roles; includes built-in system contractor roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.',
6860
+ description: 'Roles assignable to contractor login contacts (UserType.Subcontractor). Includes custom contractor roles; includes built-in system contractor roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.',
6861
+ routing: {
6862
+ request: {
6863
+ method: 'GET',
6864
+ url: '/api/v2/public/settings/roles/contractor-portal',
6865
+ },
6866
+ },
6867
+ },
6864
6868
  ],
6865
6869
  default: 'PublicApiEntityStatusController_list',
6866
6870
  },
@@ -6869,7 +6873,7 @@ class WorkBuddy {
6869
6873
  name: 'entity',
6870
6874
  type: 'options',
6871
6875
  default: '',
6872
- description: 'Entity type (customer, contractor, supplier)',
6876
+ description: 'Entity type (customer, contractor, supplier, contact, external-user)',
6873
6877
  required: true,
6874
6878
  displayOptions: {
6875
6879
  show: {
@@ -6890,6 +6894,14 @@ class WorkBuddy {
6890
6894
  name: 'supplier',
6891
6895
  value: 'supplier',
6892
6896
  },
6897
+ {
6898
+ name: 'contact',
6899
+ value: 'contact',
6900
+ },
6901
+ {
6902
+ name: 'external-user',
6903
+ value: 'external-user',
6904
+ },
6893
6905
  ],
6894
6906
  },
6895
6907
  // Settings Templates Operations
@@ -13755,7 +13767,7 @@ class WorkBuddy {
13755
13767
  },
13756
13768
  },
13757
13769
  {
13758
- name: 'Create customer contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).',
13770
+ name: 'Create customer contact',
13759
13771
  value: 'PublicCrmCustomerController_createContact',
13760
13772
  action: '',
13761
13773
  description: '',
@@ -13766,30 +13778,6 @@ class WorkBuddy {
13766
13778
  },
13767
13779
  },
13768
13780
  },
13769
- {
13770
- name: 'Get customer contact by ID',
13771
- value: 'PublicCrmCustomerController_getContact',
13772
- action: '',
13773
- description: '',
13774
- routing: {
13775
- request: {
13776
- method: 'GET',
13777
- url: '/api/v2/public/customers/={{ $parameter["customerId"] }}/contacts/={{ $parameter["contactId"] }}',
13778
- },
13779
- },
13780
- },
13781
- {
13782
- name: 'Update customer contact',
13783
- value: 'PublicCrmCustomerController_updateContact',
13784
- action: '',
13785
- description: '',
13786
- routing: {
13787
- request: {
13788
- method: 'PATCH',
13789
- url: '/api/v2/public/customers/={{ $parameter["customerId"] }}/contacts/={{ $parameter["contactId"] }}',
13790
- },
13791
- },
13792
- },
13793
13781
  {
13794
13782
  name: 'Delete customer contact',
13795
13783
  value: 'PublicCrmCustomerController_deleteContact',
@@ -13803,7 +13791,7 @@ class WorkBuddy {
13803
13791
  },
13804
13792
  },
13805
13793
  {
13806
- name: 'Promote an existing contact to external user and send invite (CRM)',
13794
+ name: 'Invite contact (CRM)',
13807
13795
  value: 'PublicCrmCustomerController_inviteContact',
13808
13796
  action: '',
13809
13797
  description: '',
@@ -13814,30 +13802,6 @@ class WorkBuddy {
13814
13802
  },
13815
13803
  },
13816
13804
  },
13817
- {
13818
- name: 'Unlock portal login for an external user (CRM)',
13819
- value: 'PublicCrmCustomerController_activateContact',
13820
- action: '',
13821
- description: '',
13822
- routing: {
13823
- request: {
13824
- method: 'POST',
13825
- url: '/api/v2/public/customers/={{ $parameter["customerId"] }}/contacts/={{ $parameter["contactId"] }}/activate',
13826
- },
13827
- },
13828
- },
13829
- {
13830
- name: 'Lock portal login for an external user (CRM)',
13831
- value: 'PublicCrmCustomerController_deactivateContact',
13832
- action: '',
13833
- description: '',
13834
- routing: {
13835
- request: {
13836
- method: 'POST',
13837
- url: '/api/v2/public/customers/={{ $parameter["customerId"] }}/contacts/={{ $parameter["contactId"] }}/deactivate',
13838
- },
13839
- },
13840
- },
13841
13805
  {
13842
13806
  name: 'List sites for customer',
13843
13807
  value: 'PublicCrmCustomerController_listSites',
@@ -15097,6 +15061,26 @@ class WorkBuddy {
15097
15061
  },
15098
15062
  },
15099
15063
  },
15064
+ {
15065
+ displayName: 'Auto Dispatch',
15066
+ name: 'autoDispatch',
15067
+ type: 'boolean',
15068
+ default: false,
15069
+ description: '',
15070
+ required: false,
15071
+ displayOptions: {
15072
+ show: {
15073
+ resource: ['crm-customers'],
15074
+ operation: ['PublicCrmCustomerController_createContact'],
15075
+ },
15076
+ },
15077
+ routing: {
15078
+ send: {
15079
+ type: 'body',
15080
+ property: 'autoDispatch',
15081
+ },
15082
+ },
15083
+ },
15100
15084
  {
15101
15085
  displayName: 'Customer Id',
15102
15086
  name: 'customerId',
@@ -15107,7 +15091,7 @@ class WorkBuddy {
15107
15091
  displayOptions: {
15108
15092
  show: {
15109
15093
  resource: ['crm-customers'],
15110
- operation: ['PublicCrmCustomerController_getContact'],
15094
+ operation: ['PublicCrmCustomerController_deleteContact'],
15111
15095
  },
15112
15096
  },
15113
15097
  },
@@ -15121,7 +15105,7 @@ class WorkBuddy {
15121
15105
  displayOptions: {
15122
15106
  show: {
15123
15107
  resource: ['crm-customers'],
15124
- operation: ['PublicCrmCustomerController_getContact'],
15108
+ operation: ['PublicCrmCustomerController_deleteContact'],
15125
15109
  },
15126
15110
  },
15127
15111
  },
@@ -15135,7 +15119,7 @@ class WorkBuddy {
15135
15119
  displayOptions: {
15136
15120
  show: {
15137
15121
  resource: ['crm-customers'],
15138
- operation: ['PublicCrmCustomerController_updateContact'],
15122
+ operation: ['PublicCrmCustomerController_inviteContact'],
15139
15123
  },
15140
15124
  },
15141
15125
  },
@@ -15149,494 +15133,222 @@ class WorkBuddy {
15149
15133
  displayOptions: {
15150
15134
  show: {
15151
15135
  resource: ['crm-customers'],
15152
- operation: ['PublicCrmCustomerController_updateContact'],
15136
+ operation: ['PublicCrmCustomerController_inviteContact'],
15153
15137
  },
15154
15138
  },
15155
15139
  },
15156
15140
  {
15157
- displayName: 'First Name',
15158
- name: 'firstName',
15141
+ displayName: 'Role Id',
15142
+ name: 'roleId',
15159
15143
  type: 'string',
15160
15144
  default: '',
15161
- description: '',
15162
- required: false,
15145
+ description: 'role ID',
15146
+ required: true,
15163
15147
  displayOptions: {
15164
15148
  show: {
15165
15149
  resource: ['crm-customers'],
15166
- operation: ['PublicCrmCustomerController_updateContact'],
15150
+ operation: ['PublicCrmCustomerController_inviteContact'],
15167
15151
  },
15168
15152
  },
15169
15153
  routing: {
15170
15154
  send: {
15171
15155
  type: 'body',
15172
- property: 'firstName',
15156
+ property: 'roleId',
15173
15157
  },
15174
15158
  },
15175
15159
  },
15176
15160
  {
15177
- displayName: 'Last Name',
15178
- name: 'lastName',
15161
+ displayName: 'Email',
15162
+ name: 'email',
15179
15163
  type: 'string',
15180
15164
  default: '',
15181
- description: '',
15165
+ description: 'Email address',
15182
15166
  required: false,
15183
15167
  displayOptions: {
15184
15168
  show: {
15185
15169
  resource: ['crm-customers'],
15186
- operation: ['PublicCrmCustomerController_updateContact'],
15170
+ operation: ['PublicCrmCustomerController_inviteContact'],
15187
15171
  },
15188
15172
  },
15189
15173
  routing: {
15190
15174
  send: {
15191
15175
  type: 'body',
15192
- property: 'lastName',
15176
+ property: 'email',
15193
15177
  },
15194
15178
  },
15195
15179
  },
15196
15180
  {
15197
- displayName: 'Email',
15198
- name: 'email',
15199
- type: 'string',
15200
- default: '',
15201
- description: 'Email address',
15181
+ displayName: 'Send Email',
15182
+ name: 'sendEmail',
15183
+ type: 'boolean',
15184
+ default: false,
15185
+ description: '',
15202
15186
  required: false,
15203
15187
  displayOptions: {
15204
15188
  show: {
15205
15189
  resource: ['crm-customers'],
15206
- operation: ['PublicCrmCustomerController_updateContact'],
15190
+ operation: ['PublicCrmCustomerController_inviteContact'],
15207
15191
  },
15208
15192
  },
15209
15193
  routing: {
15210
15194
  send: {
15211
15195
  type: 'body',
15212
- property: 'email',
15196
+ property: 'sendEmail',
15213
15197
  },
15214
15198
  },
15215
15199
  },
15216
15200
  {
15217
- displayName: 'Phone',
15218
- name: 'phone',
15201
+ displayName: 'Customer Id',
15202
+ name: 'customerId',
15219
15203
  type: 'string',
15220
15204
  default: '',
15221
- description: 'Phone number',
15222
- required: false,
15205
+ description: 'Customer ID',
15206
+ required: true,
15223
15207
  displayOptions: {
15224
15208
  show: {
15225
15209
  resource: ['crm-customers'],
15226
- operation: ['PublicCrmCustomerController_updateContact'],
15227
- },
15228
- },
15229
- routing: {
15230
- send: {
15231
- type: 'body',
15232
- property: 'phone',
15210
+ operation: ['PublicCrmCustomerController_listSites'],
15233
15211
  },
15234
15212
  },
15235
15213
  },
15236
15214
  {
15237
- displayName: 'Mobile',
15238
- name: 'mobile',
15215
+ displayName: 'Cursor',
15216
+ name: 'cursor',
15239
15217
  type: 'string',
15240
15218
  default: '',
15241
- description: 'Mobile phone number',
15219
+ description: '',
15242
15220
  required: false,
15243
15221
  displayOptions: {
15244
15222
  show: {
15245
15223
  resource: ['crm-customers'],
15246
- operation: ['PublicCrmCustomerController_updateContact'],
15224
+ operation: ['PublicCrmCustomerController_listSites'],
15247
15225
  },
15248
15226
  },
15249
15227
  routing: {
15250
- send: {
15251
- type: 'body',
15252
- property: 'mobile',
15228
+ request: {
15229
+ qs: {
15230
+ cursor: '={{$value}}',
15231
+ },
15253
15232
  },
15254
15233
  },
15255
15234
  },
15256
15235
  {
15257
- displayName: 'Title',
15258
- name: 'title',
15259
- type: 'string',
15236
+ displayName: 'Limit',
15237
+ name: 'limit',
15238
+ type: 'number',
15260
15239
  default: '',
15261
15240
  description: '',
15262
15241
  required: false,
15263
15242
  displayOptions: {
15264
15243
  show: {
15265
15244
  resource: ['crm-customers'],
15266
- operation: ['PublicCrmCustomerController_updateContact'],
15245
+ operation: ['PublicCrmCustomerController_listSites'],
15267
15246
  },
15268
15247
  },
15269
15248
  routing: {
15270
- send: {
15271
- type: 'body',
15272
- property: 'title',
15249
+ request: {
15250
+ qs: {
15251
+ limit: '={{$value}}',
15252
+ },
15273
15253
  },
15274
15254
  },
15275
15255
  },
15256
+ // Crm Employees Operations
15276
15257
  {
15277
- displayName: 'Note',
15278
- name: 'note',
15258
+ displayName: 'Operation',
15259
+ name: 'operation',
15260
+ type: 'options',
15261
+ noDataExpression: true,
15262
+ displayOptions: {
15263
+ show: {
15264
+ resource: ['crm-employees'],
15265
+ },
15266
+ },
15267
+ options: [
15268
+ {
15269
+ name: 'List employees',
15270
+ value: 'PublicCrmEmployeeController_list',
15271
+ action: '',
15272
+ description: '',
15273
+ routing: {
15274
+ request: {
15275
+ method: 'GET',
15276
+ url: '/api/v2/public/employees',
15277
+ },
15278
+ },
15279
+ },
15280
+ {
15281
+ name: 'Get employee by ID',
15282
+ value: 'PublicCrmEmployeeController_getById',
15283
+ action: '',
15284
+ description: '',
15285
+ routing: {
15286
+ request: {
15287
+ method: 'GET',
15288
+ url: '/api/v2/public/employees/={{ $parameter["id"] }}',
15289
+ },
15290
+ },
15291
+ },
15292
+ ],
15293
+ default: 'PublicCrmEmployeeController_list',
15294
+ },
15295
+ {
15296
+ displayName: 'Cursor',
15297
+ name: 'cursor',
15279
15298
  type: 'string',
15280
15299
  default: '',
15281
15300
  description: '',
15282
15301
  required: false,
15283
15302
  displayOptions: {
15284
15303
  show: {
15285
- resource: ['crm-customers'],
15286
- operation: ['PublicCrmCustomerController_updateContact'],
15304
+ resource: ['crm-employees'],
15305
+ operation: ['PublicCrmEmployeeController_list'],
15287
15306
  },
15288
15307
  },
15289
15308
  routing: {
15290
- send: {
15291
- type: 'body',
15292
- property: 'note',
15309
+ request: {
15310
+ qs: {
15311
+ cursor: '={{$value}}',
15312
+ },
15293
15313
  },
15294
15314
  },
15295
15315
  },
15296
15316
  {
15297
- displayName: 'Integration Id',
15298
- name: 'integrationId',
15299
- type: 'string',
15317
+ displayName: 'Limit',
15318
+ name: 'limit',
15319
+ type: 'number',
15300
15320
  default: '',
15301
- description: 'integration ID',
15321
+ description: '',
15302
15322
  required: false,
15303
15323
  displayOptions: {
15304
15324
  show: {
15305
- resource: ['crm-customers'],
15306
- operation: ['PublicCrmCustomerController_updateContact'],
15325
+ resource: ['crm-employees'],
15326
+ operation: ['PublicCrmEmployeeController_list'],
15307
15327
  },
15308
15328
  },
15309
15329
  routing: {
15310
- send: {
15311
- type: 'body',
15312
- property: 'integrationId',
15330
+ request: {
15331
+ qs: {
15332
+ limit: '={{$value}}',
15333
+ },
15313
15334
  },
15314
15335
  },
15315
15336
  },
15316
15337
  {
15317
- displayName: 'Customer Id',
15318
- name: 'customerId',
15338
+ displayName: 'Id',
15339
+ name: 'id',
15319
15340
  type: 'string',
15320
15341
  default: '',
15321
- description: 'Customer ID',
15342
+ description: 'Employee ID',
15322
15343
  required: true,
15323
15344
  displayOptions: {
15324
15345
  show: {
15325
- resource: ['crm-customers'],
15326
- operation: ['PublicCrmCustomerController_deleteContact'],
15346
+ resource: ['crm-employees'],
15347
+ operation: ['PublicCrmEmployeeController_getById'],
15327
15348
  },
15328
15349
  },
15329
15350
  },
15330
- {
15331
- displayName: 'Contact Id',
15332
- name: 'contactId',
15333
- type: 'string',
15334
- default: '',
15335
- description: 'Contact ID',
15336
- required: true,
15337
- displayOptions: {
15338
- show: {
15339
- resource: ['crm-customers'],
15340
- operation: ['PublicCrmCustomerController_deleteContact'],
15341
- },
15342
- },
15343
- },
15344
- {
15345
- displayName: 'Customer Id',
15346
- name: 'customerId',
15347
- type: 'string',
15348
- default: '',
15349
- description: 'Customer ID',
15350
- required: true,
15351
- displayOptions: {
15352
- show: {
15353
- resource: ['crm-customers'],
15354
- operation: ['PublicCrmCustomerController_inviteContact'],
15355
- },
15356
- },
15357
- },
15358
- {
15359
- displayName: 'Contact Id',
15360
- name: 'contactId',
15361
- type: 'string',
15362
- default: '',
15363
- description: 'Contact ID',
15364
- required: true,
15365
- displayOptions: {
15366
- show: {
15367
- resource: ['crm-customers'],
15368
- operation: ['PublicCrmCustomerController_inviteContact'],
15369
- },
15370
- },
15371
- },
15372
- {
15373
- displayName: 'Email',
15374
- name: 'email',
15375
- type: 'string',
15376
- default: '',
15377
- description: 'Email address',
15378
- required: false,
15379
- displayOptions: {
15380
- show: {
15381
- resource: ['crm-customers'],
15382
- operation: ['PublicCrmCustomerController_inviteContact'],
15383
- },
15384
- },
15385
- routing: {
15386
- send: {
15387
- type: 'body',
15388
- property: 'email',
15389
- },
15390
- },
15391
- },
15392
- {
15393
- displayName: 'Role Id',
15394
- name: 'roleId',
15395
- type: 'string',
15396
- default: '',
15397
- description: 'role ID',
15398
- required: false,
15399
- displayOptions: {
15400
- show: {
15401
- resource: ['crm-customers'],
15402
- operation: ['PublicCrmCustomerController_inviteContact'],
15403
- },
15404
- },
15405
- routing: {
15406
- send: {
15407
- type: 'body',
15408
- property: 'roleId',
15409
- },
15410
- },
15411
- },
15412
- {
15413
- displayName: 'Send Email',
15414
- name: 'sendEmail',
15415
- type: 'boolean',
15416
- default: false,
15417
- description: '',
15418
- required: false,
15419
- displayOptions: {
15420
- show: {
15421
- resource: ['crm-customers'],
15422
- operation: ['PublicCrmCustomerController_inviteContact'],
15423
- },
15424
- },
15425
- routing: {
15426
- send: {
15427
- type: 'body',
15428
- property: 'sendEmail',
15429
- },
15430
- },
15431
- },
15432
- {
15433
- displayName: 'Customer Id',
15434
- name: 'customerId',
15435
- type: 'string',
15436
- default: '',
15437
- description: 'Customer ID',
15438
- required: true,
15439
- displayOptions: {
15440
- show: {
15441
- resource: ['crm-customers'],
15442
- operation: ['PublicCrmCustomerController_activateContact'],
15443
- },
15444
- },
15445
- },
15446
- {
15447
- displayName: 'Contact Id',
15448
- name: 'contactId',
15449
- type: 'string',
15450
- default: '',
15451
- description: 'Contact ID',
15452
- required: true,
15453
- displayOptions: {
15454
- show: {
15455
- resource: ['crm-customers'],
15456
- operation: ['PublicCrmCustomerController_activateContact'],
15457
- },
15458
- },
15459
- },
15460
- {
15461
- displayName: 'Customer Id',
15462
- name: 'customerId',
15463
- type: 'string',
15464
- default: '',
15465
- description: 'Customer ID',
15466
- required: true,
15467
- displayOptions: {
15468
- show: {
15469
- resource: ['crm-customers'],
15470
- operation: ['PublicCrmCustomerController_deactivateContact'],
15471
- },
15472
- },
15473
- },
15474
- {
15475
- displayName: 'Contact Id',
15476
- name: 'contactId',
15477
- type: 'string',
15478
- default: '',
15479
- description: 'Contact ID',
15480
- required: true,
15481
- displayOptions: {
15482
- show: {
15483
- resource: ['crm-customers'],
15484
- operation: ['PublicCrmCustomerController_deactivateContact'],
15485
- },
15486
- },
15487
- },
15488
- {
15489
- displayName: 'Customer Id',
15490
- name: 'customerId',
15491
- type: 'string',
15492
- default: '',
15493
- description: 'Customer ID',
15494
- required: true,
15495
- displayOptions: {
15496
- show: {
15497
- resource: ['crm-customers'],
15498
- operation: ['PublicCrmCustomerController_listSites'],
15499
- },
15500
- },
15501
- },
15502
- {
15503
- displayName: 'Cursor',
15504
- name: 'cursor',
15505
- type: 'string',
15506
- default: '',
15507
- description: '',
15508
- required: false,
15509
- displayOptions: {
15510
- show: {
15511
- resource: ['crm-customers'],
15512
- operation: ['PublicCrmCustomerController_listSites'],
15513
- },
15514
- },
15515
- routing: {
15516
- request: {
15517
- qs: {
15518
- cursor: '={{$value}}',
15519
- },
15520
- },
15521
- },
15522
- },
15523
- {
15524
- displayName: 'Limit',
15525
- name: 'limit',
15526
- type: 'number',
15527
- default: '',
15528
- description: '',
15529
- required: false,
15530
- displayOptions: {
15531
- show: {
15532
- resource: ['crm-customers'],
15533
- operation: ['PublicCrmCustomerController_listSites'],
15534
- },
15535
- },
15536
- routing: {
15537
- request: {
15538
- qs: {
15539
- limit: '={{$value}}',
15540
- },
15541
- },
15542
- },
15543
- },
15544
- // Crm Employees Operations
15545
- {
15546
- displayName: 'Operation',
15547
- name: 'operation',
15548
- type: 'options',
15549
- noDataExpression: true,
15550
- displayOptions: {
15551
- show: {
15552
- resource: ['crm-employees'],
15553
- },
15554
- },
15555
- options: [
15556
- {
15557
- name: 'List employees',
15558
- value: 'PublicCrmEmployeeController_list',
15559
- action: '',
15560
- description: '',
15561
- routing: {
15562
- request: {
15563
- method: 'GET',
15564
- url: '/api/v2/public/employees',
15565
- },
15566
- },
15567
- },
15568
- {
15569
- name: 'Get employee by ID',
15570
- value: 'PublicCrmEmployeeController_getById',
15571
- action: '',
15572
- description: '',
15573
- routing: {
15574
- request: {
15575
- method: 'GET',
15576
- url: '/api/v2/public/employees/={{ $parameter["id"] }}',
15577
- },
15578
- },
15579
- },
15580
- ],
15581
- default: 'PublicCrmEmployeeController_list',
15582
- },
15583
- {
15584
- displayName: 'Cursor',
15585
- name: 'cursor',
15586
- type: 'string',
15587
- default: '',
15588
- description: '',
15589
- required: false,
15590
- displayOptions: {
15591
- show: {
15592
- resource: ['crm-employees'],
15593
- operation: ['PublicCrmEmployeeController_list'],
15594
- },
15595
- },
15596
- routing: {
15597
- request: {
15598
- qs: {
15599
- cursor: '={{$value}}',
15600
- },
15601
- },
15602
- },
15603
- },
15604
- {
15605
- displayName: 'Limit',
15606
- name: 'limit',
15607
- type: 'number',
15608
- default: '',
15609
- description: '',
15610
- required: false,
15611
- displayOptions: {
15612
- show: {
15613
- resource: ['crm-employees'],
15614
- operation: ['PublicCrmEmployeeController_list'],
15615
- },
15616
- },
15617
- routing: {
15618
- request: {
15619
- qs: {
15620
- limit: '={{$value}}',
15621
- },
15622
- },
15623
- },
15624
- },
15625
- {
15626
- displayName: 'Id',
15627
- name: 'id',
15628
- type: 'string',
15629
- default: '',
15630
- description: 'Employee ID',
15631
- required: true,
15632
- displayOptions: {
15633
- show: {
15634
- resource: ['crm-employees'],
15635
- operation: ['PublicCrmEmployeeController_getById'],
15636
- },
15637
- },
15638
- },
15639
- // Crm Contractors Operations
15351
+ // Crm Contractors Operations
15640
15352
  {
15641
15353
  displayName: 'Operation',
15642
15354
  name: 'operation',
@@ -15721,7 +15433,7 @@ class WorkBuddy {
15721
15433
  },
15722
15434
  },
15723
15435
  {
15724
- name: 'Create contractor contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).',
15436
+ name: 'Create contractor contact',
15725
15437
  value: 'PublicCrmContractorController_createContact',
15726
15438
  action: '',
15727
15439
  description: '',
@@ -15732,30 +15444,6 @@ class WorkBuddy {
15732
15444
  },
15733
15445
  },
15734
15446
  },
15735
- {
15736
- name: 'Get contractor contact by ID',
15737
- value: 'PublicCrmContractorController_getContact',
15738
- action: '',
15739
- description: '',
15740
- routing: {
15741
- request: {
15742
- method: 'GET',
15743
- url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}',
15744
- },
15745
- },
15746
- },
15747
- {
15748
- name: 'Update contractor contact',
15749
- value: 'PublicCrmContractorController_updateContact',
15750
- action: '',
15751
- description: '',
15752
- routing: {
15753
- request: {
15754
- method: 'PATCH',
15755
- url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}',
15756
- },
15757
- },
15758
- },
15759
15447
  {
15760
15448
  name: 'Delete contractor contact',
15761
15449
  value: 'PublicCrmContractorController_deleteContact',
@@ -15769,38 +15457,14 @@ class WorkBuddy {
15769
15457
  },
15770
15458
  },
15771
15459
  {
15772
- name: 'Promote an existing contact to external user and send invite (CRM > Contractors)',
15773
- value: 'PublicCrmContractorController_inviteContact',
15774
- action: '',
15775
- description: '',
15776
- routing: {
15777
- request: {
15778
- method: 'POST',
15779
- url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}/invite',
15780
- },
15781
- },
15782
- },
15783
- {
15784
- name: 'Unlock portal login for an external user (CRM > Contractors)',
15785
- value: 'PublicCrmContractorController_activateContact',
15786
- action: '',
15787
- description: '',
15788
- routing: {
15789
- request: {
15790
- method: 'POST',
15791
- url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}/activate',
15792
- },
15793
- },
15794
- },
15795
- {
15796
- name: 'Lock portal login for an external user (CRM > Contractors)',
15797
- value: 'PublicCrmContractorController_deactivateContact',
15460
+ name: 'Invite contact (CRM > Contractors)',
15461
+ value: 'PublicCrmContractorController_inviteContact',
15798
15462
  action: '',
15799
15463
  description: '',
15800
15464
  routing: {
15801
15465
  request: {
15802
15466
  method: 'POST',
15803
- url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}/deactivate',
15467
+ url: '/api/v2/public/contractors/={{ $parameter["contractorId"] }}/contacts/={{ $parameter["contactId"] }}/invite',
15804
15468
  },
15805
15469
  },
15806
15470
  },
@@ -16500,260 +16164,9 @@ class WorkBuddy {
16500
16164
  },
16501
16165
  },
16502
16166
  },
16503
- {
16504
- displayName: 'Primary Site',
16505
- name: 'primarySite',
16506
- type: 'json',
16507
- default: {},
16508
- description: '',
16509
- required: false,
16510
- displayOptions: {
16511
- show: {
16512
- resource: ['crm-contractors'],
16513
- operation: ['PublicCrmContractorController_update'],
16514
- },
16515
- },
16516
- routing: {
16517
- send: {
16518
- type: 'body',
16519
- property: 'primarySite',
16520
- },
16521
- },
16522
- },
16523
- {
16524
- displayName: 'Owner',
16525
- name: 'owner',
16526
- type: 'json',
16527
- default: {},
16528
- description: '',
16529
- required: false,
16530
- displayOptions: {
16531
- show: {
16532
- resource: ['crm-contractors'],
16533
- operation: ['PublicCrmContractorController_update'],
16534
- },
16535
- },
16536
- routing: {
16537
- send: {
16538
- type: 'body',
16539
- property: 'owner',
16540
- },
16541
- },
16542
- },
16543
- {
16544
- displayName: 'Labels',
16545
- name: 'labels',
16546
- type: 'json',
16547
- default: {},
16548
- description: '',
16549
- required: false,
16550
- displayOptions: {
16551
- show: {
16552
- resource: ['crm-contractors'],
16553
- operation: ['PublicCrmContractorController_update'],
16554
- },
16555
- },
16556
- routing: {
16557
- send: {
16558
- type: 'body',
16559
- property: 'labels',
16560
- },
16561
- },
16562
- },
16563
- {
16564
- displayName: 'Notes',
16565
- name: 'notes',
16566
- type: 'string',
16567
- default: '',
16568
- description: 'Additional notes or comments',
16569
- required: false,
16570
- displayOptions: {
16571
- show: {
16572
- resource: ['crm-contractors'],
16573
- operation: ['PublicCrmContractorController_update'],
16574
- },
16575
- },
16576
- routing: {
16577
- send: {
16578
- type: 'body',
16579
- property: 'notes',
16580
- },
16581
- },
16582
- },
16583
- {
16584
- displayName: 'Custom Fields',
16585
- name: 'customFields',
16586
- type: 'json',
16587
- default: {},
16588
- description: 'Custom fields as key-value pairs — validated against tenant field definitions',
16589
- required: false,
16590
- displayOptions: {
16591
- show: {
16592
- resource: ['crm-contractors'],
16593
- operation: ['PublicCrmContractorController_update'],
16594
- },
16595
- },
16596
- routing: {
16597
- send: {
16598
- type: 'body',
16599
- property: 'customFields',
16600
- },
16601
- },
16602
- },
16603
- {
16604
- displayName: 'Social Network',
16605
- name: 'socialNetwork',
16606
- type: 'collection',
16607
- default: {},
16608
- placeholder: 'Add Social Network',
16609
- description: '',
16610
- required: false,
16611
- displayOptions: {
16612
- show: {
16613
- resource: ['crm-contractors'],
16614
- operation: ['PublicCrmContractorController_update'],
16615
- },
16616
- },
16617
- options: [
16618
- {
16619
- displayName: 'Facebook',
16620
- name: 'facebook',
16621
- type: 'string',
16622
- default: '',
16623
- description: '',
16624
- },
16625
- {
16626
- displayName: 'Twitter',
16627
- name: 'twitter',
16628
- type: 'string',
16629
- default: '',
16630
- description: '',
16631
- },
16632
- {
16633
- displayName: 'Linkedin',
16634
- name: 'linkedin',
16635
- type: 'string',
16636
- default: '',
16637
- description: '',
16638
- },
16639
- {
16640
- displayName: 'Instagram',
16641
- name: 'instagram',
16642
- type: 'string',
16643
- default: '',
16644
- description: '',
16645
- },
16646
- ],
16647
- routing: {
16648
- send: {
16649
- type: 'body',
16650
- property: 'socialNetwork',
16651
- },
16652
- },
16653
- },
16654
- {
16655
- displayName: 'Zones',
16656
- name: 'zones',
16657
- type: 'json',
16658
- default: {},
16659
- description: '',
16660
- required: false,
16661
- displayOptions: {
16662
- show: {
16663
- resource: ['crm-contractors'],
16664
- operation: ['PublicCrmContractorController_update'],
16665
- },
16666
- },
16667
- routing: {
16668
- send: {
16669
- type: 'body',
16670
- property: 'zones',
16671
- },
16672
- },
16673
- },
16674
- {
16675
- displayName: 'Companies',
16676
- name: 'companies',
16677
- type: 'json',
16678
- default: {},
16679
- description: '',
16680
- required: false,
16681
- displayOptions: {
16682
- show: {
16683
- resource: ['crm-contractors'],
16684
- operation: ['PublicCrmContractorController_update'],
16685
- },
16686
- },
16687
- routing: {
16688
- send: {
16689
- type: 'body',
16690
- property: 'companies',
16691
- },
16692
- },
16693
- },
16694
- {
16695
- displayName: 'Work Categories',
16696
- name: 'workCategories',
16697
- type: 'json',
16698
- default: {},
16699
- description: '',
16700
- required: false,
16701
- displayOptions: {
16702
- show: {
16703
- resource: ['crm-contractors'],
16704
- operation: ['PublicCrmContractorController_update'],
16705
- },
16706
- },
16707
- routing: {
16708
- send: {
16709
- type: 'body',
16710
- property: 'workCategories',
16711
- },
16712
- },
16713
- },
16714
- {
16715
- displayName: 'Scheduling',
16716
- name: 'scheduling',
16717
- type: 'json',
16718
- default: {},
16719
- description: '',
16720
- required: false,
16721
- displayOptions: {
16722
- show: {
16723
- resource: ['crm-contractors'],
16724
- operation: ['PublicCrmContractorController_update'],
16725
- },
16726
- },
16727
- routing: {
16728
- send: {
16729
- type: 'body',
16730
- property: 'scheduling',
16731
- },
16732
- },
16733
- },
16734
- {
16735
- displayName: 'Dispatching',
16736
- name: 'dispatching',
16737
- type: 'json',
16738
- default: {},
16739
- description: '',
16740
- required: false,
16741
- displayOptions: {
16742
- show: {
16743
- resource: ['crm-contractors'],
16744
- operation: ['PublicCrmContractorController_update'],
16745
- },
16746
- },
16747
- routing: {
16748
- send: {
16749
- type: 'body',
16750
- property: 'dispatching',
16751
- },
16752
- },
16753
- },
16754
- {
16755
- displayName: 'Timesheet',
16756
- name: 'timesheet',
16167
+ {
16168
+ displayName: 'Primary Site',
16169
+ name: 'primarySite',
16757
16170
  type: 'json',
16758
16171
  default: {},
16759
16172
  description: '',
@@ -16767,15 +16180,15 @@ class WorkBuddy {
16767
16180
  routing: {
16768
16181
  send: {
16769
16182
  type: 'body',
16770
- property: 'timesheet',
16183
+ property: 'primarySite',
16771
16184
  },
16772
16185
  },
16773
16186
  },
16774
16187
  {
16775
- displayName: 'Hide Prices',
16776
- name: 'hidePrices',
16777
- type: 'boolean',
16778
- default: false,
16188
+ displayName: 'Owner',
16189
+ name: 'owner',
16190
+ type: 'json',
16191
+ default: {},
16779
16192
  description: '',
16780
16193
  required: false,
16781
16194
  displayOptions: {
@@ -16787,13 +16200,13 @@ class WorkBuddy {
16787
16200
  routing: {
16788
16201
  send: {
16789
16202
  type: 'body',
16790
- property: 'hidePrices',
16203
+ property: 'owner',
16791
16204
  },
16792
16205
  },
16793
16206
  },
16794
16207
  {
16795
- displayName: 'Pricebook',
16796
- name: 'pricebook',
16208
+ displayName: 'Labels',
16209
+ name: 'labels',
16797
16210
  type: 'json',
16798
16211
  default: {},
16799
16212
  description: '',
@@ -16807,351 +16220,312 @@ class WorkBuddy {
16807
16220
  routing: {
16808
16221
  send: {
16809
16222
  type: 'body',
16810
- property: 'pricebook',
16811
- },
16812
- },
16813
- },
16814
- {
16815
- displayName: 'Id',
16816
- name: 'id',
16817
- type: 'string',
16818
- default: '',
16819
- description: 'Contractor ID or integration ID',
16820
- required: true,
16821
- displayOptions: {
16822
- show: {
16823
- resource: ['crm-contractors'],
16824
- operation: ['PublicCrmContractorController_updateStatus'],
16223
+ property: 'labels',
16825
16224
  },
16826
16225
  },
16827
16226
  },
16828
16227
  {
16829
- displayName: 'Status Id',
16830
- name: 'statusId',
16228
+ displayName: 'Notes',
16229
+ name: 'notes',
16831
16230
  type: 'string',
16832
16231
  default: '',
16833
- description: 'status ID',
16834
- required: true,
16232
+ description: 'Additional notes or comments',
16233
+ required: false,
16835
16234
  displayOptions: {
16836
16235
  show: {
16837
16236
  resource: ['crm-contractors'],
16838
- operation: ['PublicCrmContractorController_updateStatus'],
16237
+ operation: ['PublicCrmContractorController_update'],
16839
16238
  },
16840
16239
  },
16841
16240
  routing: {
16842
16241
  send: {
16843
16242
  type: 'body',
16844
- property: 'statusId',
16243
+ property: 'notes',
16845
16244
  },
16846
16245
  },
16847
16246
  },
16848
16247
  {
16849
- displayName: 'Note',
16850
- name: 'note',
16851
- type: 'string',
16852
- default: '',
16853
- description: '',
16248
+ displayName: 'Custom Fields',
16249
+ name: 'customFields',
16250
+ type: 'json',
16251
+ default: {},
16252
+ description: 'Custom fields as key-value pairs — validated against tenant field definitions',
16854
16253
  required: false,
16855
16254
  displayOptions: {
16856
16255
  show: {
16857
16256
  resource: ['crm-contractors'],
16858
- operation: ['PublicCrmContractorController_updateStatus'],
16257
+ operation: ['PublicCrmContractorController_update'],
16859
16258
  },
16860
16259
  },
16861
16260
  routing: {
16862
16261
  send: {
16863
16262
  type: 'body',
16864
- property: 'note',
16865
- },
16866
- },
16867
- },
16868
- {
16869
- displayName: 'Contractor Id',
16870
- name: 'contractorId',
16871
- type: 'string',
16872
- default: '',
16873
- description: 'Contractor ID',
16874
- required: true,
16875
- displayOptions: {
16876
- show: {
16877
- resource: ['crm-contractors'],
16878
- operation: ['PublicCrmContractorController_listContacts'],
16263
+ property: 'customFields',
16879
16264
  },
16880
16265
  },
16881
16266
  },
16882
16267
  {
16883
- displayName: 'Cursor',
16884
- name: 'cursor',
16885
- type: 'string',
16886
- default: '',
16268
+ displayName: 'Social Network',
16269
+ name: 'socialNetwork',
16270
+ type: 'collection',
16271
+ default: {},
16272
+ placeholder: 'Add Social Network',
16887
16273
  description: '',
16888
16274
  required: false,
16889
16275
  displayOptions: {
16890
16276
  show: {
16891
16277
  resource: ['crm-contractors'],
16892
- operation: ['PublicCrmContractorController_listContacts'],
16278
+ operation: ['PublicCrmContractorController_update'],
16893
16279
  },
16894
16280
  },
16895
- routing: {
16896
- request: {
16897
- qs: {
16898
- cursor: '={{$value}}',
16899
- },
16281
+ options: [
16282
+ {
16283
+ displayName: 'Facebook',
16284
+ name: 'facebook',
16285
+ type: 'string',
16286
+ default: '',
16287
+ description: '',
16900
16288
  },
16901
- },
16902
- },
16903
- {
16904
- displayName: 'Limit',
16905
- name: 'limit',
16906
- type: 'number',
16907
- default: '',
16908
- description: '',
16909
- required: false,
16910
- displayOptions: {
16911
- show: {
16912
- resource: ['crm-contractors'],
16913
- operation: ['PublicCrmContractorController_listContacts'],
16289
+ {
16290
+ displayName: 'Twitter',
16291
+ name: 'twitter',
16292
+ type: 'string',
16293
+ default: '',
16294
+ description: '',
16914
16295
  },
16915
- },
16916
- routing: {
16917
- request: {
16918
- qs: {
16919
- limit: '={{$value}}',
16920
- },
16296
+ {
16297
+ displayName: 'Linkedin',
16298
+ name: 'linkedin',
16299
+ type: 'string',
16300
+ default: '',
16301
+ description: '',
16921
16302
  },
16922
- },
16923
- },
16924
- {
16925
- displayName: 'Contractor Id',
16926
- name: 'contractorId',
16927
- type: 'string',
16928
- default: '',
16929
- description: 'Contractor ID',
16930
- required: true,
16931
- displayOptions: {
16932
- show: {
16933
- resource: ['crm-contractors'],
16934
- operation: ['PublicCrmContractorController_createContact'],
16303
+ {
16304
+ displayName: 'Instagram',
16305
+ name: 'instagram',
16306
+ type: 'string',
16307
+ default: '',
16308
+ description: '',
16309
+ },
16310
+ ],
16311
+ routing: {
16312
+ send: {
16313
+ type: 'body',
16314
+ property: 'socialNetwork',
16935
16315
  },
16936
16316
  },
16937
16317
  },
16938
16318
  {
16939
- displayName: 'First Name',
16940
- name: 'firstName',
16941
- type: 'string',
16942
- default: '',
16319
+ displayName: 'Zones',
16320
+ name: 'zones',
16321
+ type: 'json',
16322
+ default: {},
16943
16323
  description: '',
16944
- required: true,
16324
+ required: false,
16945
16325
  displayOptions: {
16946
16326
  show: {
16947
16327
  resource: ['crm-contractors'],
16948
- operation: ['PublicCrmContractorController_createContact'],
16328
+ operation: ['PublicCrmContractorController_update'],
16949
16329
  },
16950
16330
  },
16951
16331
  routing: {
16952
16332
  send: {
16953
16333
  type: 'body',
16954
- property: 'firstName',
16334
+ property: 'zones',
16955
16335
  },
16956
16336
  },
16957
16337
  },
16958
16338
  {
16959
- displayName: 'Last Name',
16960
- name: 'lastName',
16961
- type: 'string',
16962
- default: '',
16339
+ displayName: 'Companies',
16340
+ name: 'companies',
16341
+ type: 'json',
16342
+ default: {},
16963
16343
  description: '',
16964
- required: true,
16344
+ required: false,
16965
16345
  displayOptions: {
16966
16346
  show: {
16967
16347
  resource: ['crm-contractors'],
16968
- operation: ['PublicCrmContractorController_createContact'],
16348
+ operation: ['PublicCrmContractorController_update'],
16969
16349
  },
16970
16350
  },
16971
16351
  routing: {
16972
16352
  send: {
16973
16353
  type: 'body',
16974
- property: 'lastName',
16354
+ property: 'companies',
16975
16355
  },
16976
16356
  },
16977
16357
  },
16978
16358
  {
16979
- displayName: 'Login',
16980
- name: 'login',
16981
- type: 'boolean',
16982
- default: false,
16359
+ displayName: 'Work Categories',
16360
+ name: 'workCategories',
16361
+ type: 'json',
16362
+ default: {},
16983
16363
  description: '',
16984
- required: true,
16364
+ required: false,
16985
16365
  displayOptions: {
16986
16366
  show: {
16987
16367
  resource: ['crm-contractors'],
16988
- operation: ['PublicCrmContractorController_createContact'],
16368
+ operation: ['PublicCrmContractorController_update'],
16989
16369
  },
16990
16370
  },
16991
16371
  routing: {
16992
16372
  send: {
16993
16373
  type: 'body',
16994
- property: 'login',
16374
+ property: 'workCategories',
16995
16375
  },
16996
16376
  },
16997
16377
  },
16998
16378
  {
16999
- displayName: 'Email',
17000
- name: 'email',
17001
- type: 'string',
17002
- default: '',
17003
- description: 'Email address',
16379
+ displayName: 'Scheduling',
16380
+ name: 'scheduling',
16381
+ type: 'json',
16382
+ default: {},
16383
+ description: '',
17004
16384
  required: false,
17005
16385
  displayOptions: {
17006
16386
  show: {
17007
16387
  resource: ['crm-contractors'],
17008
- operation: ['PublicCrmContractorController_createContact'],
16388
+ operation: ['PublicCrmContractorController_update'],
17009
16389
  },
17010
16390
  },
17011
16391
  routing: {
17012
16392
  send: {
17013
16393
  type: 'body',
17014
- property: 'email',
16394
+ property: 'scheduling',
17015
16395
  },
17016
16396
  },
17017
16397
  },
17018
16398
  {
17019
- displayName: 'Phone',
17020
- name: 'phone',
17021
- type: 'string',
17022
- default: '',
17023
- description: 'Phone number',
16399
+ displayName: 'Dispatching',
16400
+ name: 'dispatching',
16401
+ type: 'json',
16402
+ default: {},
16403
+ description: '',
17024
16404
  required: false,
17025
16405
  displayOptions: {
17026
16406
  show: {
17027
16407
  resource: ['crm-contractors'],
17028
- operation: ['PublicCrmContractorController_createContact'],
16408
+ operation: ['PublicCrmContractorController_update'],
17029
16409
  },
17030
16410
  },
17031
16411
  routing: {
17032
16412
  send: {
17033
16413
  type: 'body',
17034
- property: 'phone',
16414
+ property: 'dispatching',
17035
16415
  },
17036
16416
  },
17037
16417
  },
17038
16418
  {
17039
- displayName: 'Mobile',
17040
- name: 'mobile',
17041
- type: 'string',
17042
- default: '',
17043
- description: 'Mobile phone number',
16419
+ displayName: 'Timesheet',
16420
+ name: 'timesheet',
16421
+ type: 'json',
16422
+ default: {},
16423
+ description: '',
17044
16424
  required: false,
17045
16425
  displayOptions: {
17046
16426
  show: {
17047
16427
  resource: ['crm-contractors'],
17048
- operation: ['PublicCrmContractorController_createContact'],
16428
+ operation: ['PublicCrmContractorController_update'],
17049
16429
  },
17050
16430
  },
17051
16431
  routing: {
17052
16432
  send: {
17053
16433
  type: 'body',
17054
- property: 'mobile',
16434
+ property: 'timesheet',
17055
16435
  },
17056
16436
  },
17057
16437
  },
17058
16438
  {
17059
- displayName: 'Title',
17060
- name: 'title',
17061
- type: 'string',
17062
- default: '',
16439
+ displayName: 'Hide Prices',
16440
+ name: 'hidePrices',
16441
+ type: 'boolean',
16442
+ default: false,
17063
16443
  description: '',
17064
16444
  required: false,
17065
16445
  displayOptions: {
17066
16446
  show: {
17067
16447
  resource: ['crm-contractors'],
17068
- operation: ['PublicCrmContractorController_createContact'],
16448
+ operation: ['PublicCrmContractorController_update'],
17069
16449
  },
17070
16450
  },
17071
16451
  routing: {
17072
16452
  send: {
17073
16453
  type: 'body',
17074
- property: 'title',
16454
+ property: 'hidePrices',
17075
16455
  },
17076
16456
  },
17077
- },
17078
- {
17079
- displayName: 'Note',
17080
- name: 'note',
17081
- type: 'string',
17082
- default: '',
16457
+ },
16458
+ {
16459
+ displayName: 'Pricebook',
16460
+ name: 'pricebook',
16461
+ type: 'json',
16462
+ default: {},
17083
16463
  description: '',
17084
16464
  required: false,
17085
16465
  displayOptions: {
17086
16466
  show: {
17087
16467
  resource: ['crm-contractors'],
17088
- operation: ['PublicCrmContractorController_createContact'],
16468
+ operation: ['PublicCrmContractorController_update'],
17089
16469
  },
17090
16470
  },
17091
16471
  routing: {
17092
16472
  send: {
17093
16473
  type: 'body',
17094
- property: 'note',
16474
+ property: 'pricebook',
17095
16475
  },
17096
16476
  },
17097
16477
  },
17098
16478
  {
17099
- displayName: 'Integration Id',
17100
- name: 'integrationId',
16479
+ displayName: 'Id',
16480
+ name: 'id',
17101
16481
  type: 'string',
17102
16482
  default: '',
17103
- description: 'integration ID',
17104
- required: false,
16483
+ description: 'Contractor ID or integration ID',
16484
+ required: true,
17105
16485
  displayOptions: {
17106
16486
  show: {
17107
16487
  resource: ['crm-contractors'],
17108
- operation: ['PublicCrmContractorController_createContact'],
17109
- },
17110
- },
17111
- routing: {
17112
- send: {
17113
- type: 'body',
17114
- property: 'integrationId',
16488
+ operation: ['PublicCrmContractorController_updateStatus'],
17115
16489
  },
17116
16490
  },
17117
16491
  },
17118
16492
  {
17119
- displayName: 'Role Id',
17120
- name: 'roleId',
16493
+ displayName: 'Status Id',
16494
+ name: 'statusId',
17121
16495
  type: 'string',
17122
16496
  default: '',
17123
- description: 'role ID',
17124
- required: false,
16497
+ description: 'status ID',
16498
+ required: true,
17125
16499
  displayOptions: {
17126
16500
  show: {
17127
16501
  resource: ['crm-contractors'],
17128
- operation: ['PublicCrmContractorController_createContact'],
16502
+ operation: ['PublicCrmContractorController_updateStatus'],
17129
16503
  },
17130
16504
  },
17131
16505
  routing: {
17132
16506
  send: {
17133
16507
  type: 'body',
17134
- property: 'roleId',
16508
+ property: 'statusId',
17135
16509
  },
17136
16510
  },
17137
16511
  },
17138
16512
  {
17139
- displayName: 'Send Email',
17140
- name: 'sendEmail',
17141
- type: 'boolean',
17142
- default: false,
16513
+ displayName: 'Note',
16514
+ name: 'note',
16515
+ type: 'string',
16516
+ default: '',
17143
16517
  description: '',
17144
16518
  required: false,
17145
16519
  displayOptions: {
17146
16520
  show: {
17147
16521
  resource: ['crm-contractors'],
17148
- operation: ['PublicCrmContractorController_createContact'],
16522
+ operation: ['PublicCrmContractorController_updateStatus'],
17149
16523
  },
17150
16524
  },
17151
16525
  routing: {
17152
16526
  send: {
17153
16527
  type: 'body',
17154
- property: 'sendEmail',
16528
+ property: 'note',
17155
16529
  },
17156
16530
  },
17157
16531
  },
@@ -17165,49 +16539,63 @@ class WorkBuddy {
17165
16539
  displayOptions: {
17166
16540
  show: {
17167
16541
  resource: ['crm-contractors'],
17168
- operation: ['PublicCrmContractorController_getContact'],
16542
+ operation: ['PublicCrmContractorController_listContacts'],
17169
16543
  },
17170
16544
  },
17171
16545
  },
17172
16546
  {
17173
- displayName: 'Contact Id',
17174
- name: 'contactId',
16547
+ displayName: 'Cursor',
16548
+ name: 'cursor',
17175
16549
  type: 'string',
17176
16550
  default: '',
17177
- description: 'Contact ID',
17178
- required: true,
16551
+ description: '',
16552
+ required: false,
17179
16553
  displayOptions: {
17180
16554
  show: {
17181
16555
  resource: ['crm-contractors'],
17182
- operation: ['PublicCrmContractorController_getContact'],
16556
+ operation: ['PublicCrmContractorController_listContacts'],
16557
+ },
16558
+ },
16559
+ routing: {
16560
+ request: {
16561
+ qs: {
16562
+ cursor: '={{$value}}',
16563
+ },
17183
16564
  },
17184
16565
  },
17185
16566
  },
17186
16567
  {
17187
- displayName: 'Contractor Id',
17188
- name: 'contractorId',
17189
- type: 'string',
16568
+ displayName: 'Limit',
16569
+ name: 'limit',
16570
+ type: 'number',
17190
16571
  default: '',
17191
- description: 'Contractor ID',
17192
- required: true,
16572
+ description: '',
16573
+ required: false,
17193
16574
  displayOptions: {
17194
16575
  show: {
17195
16576
  resource: ['crm-contractors'],
17196
- operation: ['PublicCrmContractorController_updateContact'],
16577
+ operation: ['PublicCrmContractorController_listContacts'],
16578
+ },
16579
+ },
16580
+ routing: {
16581
+ request: {
16582
+ qs: {
16583
+ limit: '={{$value}}',
16584
+ },
17197
16585
  },
17198
16586
  },
17199
16587
  },
17200
16588
  {
17201
- displayName: 'Contact Id',
17202
- name: 'contactId',
16589
+ displayName: 'Contractor Id',
16590
+ name: 'contractorId',
17203
16591
  type: 'string',
17204
16592
  default: '',
17205
- description: 'Contact ID',
16593
+ description: 'Contractor ID',
17206
16594
  required: true,
17207
16595
  displayOptions: {
17208
16596
  show: {
17209
16597
  resource: ['crm-contractors'],
17210
- operation: ['PublicCrmContractorController_updateContact'],
16598
+ operation: ['PublicCrmContractorController_createContact'],
17211
16599
  },
17212
16600
  },
17213
16601
  },
@@ -17217,11 +16605,11 @@ class WorkBuddy {
17217
16605
  type: 'string',
17218
16606
  default: '',
17219
16607
  description: '',
17220
- required: false,
16608
+ required: true,
17221
16609
  displayOptions: {
17222
16610
  show: {
17223
16611
  resource: ['crm-contractors'],
17224
- operation: ['PublicCrmContractorController_updateContact'],
16612
+ operation: ['PublicCrmContractorController_createContact'],
17225
16613
  },
17226
16614
  },
17227
16615
  routing: {
@@ -17237,11 +16625,11 @@ class WorkBuddy {
17237
16625
  type: 'string',
17238
16626
  default: '',
17239
16627
  description: '',
17240
- required: false,
16628
+ required: true,
17241
16629
  displayOptions: {
17242
16630
  show: {
17243
16631
  resource: ['crm-contractors'],
17244
- operation: ['PublicCrmContractorController_updateContact'],
16632
+ operation: ['PublicCrmContractorController_createContact'],
17245
16633
  },
17246
16634
  },
17247
16635
  routing: {
@@ -17251,6 +16639,26 @@ class WorkBuddy {
17251
16639
  },
17252
16640
  },
17253
16641
  },
16642
+ {
16643
+ displayName: 'Login',
16644
+ name: 'login',
16645
+ type: 'boolean',
16646
+ default: false,
16647
+ description: '',
16648
+ required: true,
16649
+ displayOptions: {
16650
+ show: {
16651
+ resource: ['crm-contractors'],
16652
+ operation: ['PublicCrmContractorController_createContact'],
16653
+ },
16654
+ },
16655
+ routing: {
16656
+ send: {
16657
+ type: 'body',
16658
+ property: 'login',
16659
+ },
16660
+ },
16661
+ },
17254
16662
  {
17255
16663
  displayName: 'Email',
17256
16664
  name: 'email',
@@ -17261,7 +16669,7 @@ class WorkBuddy {
17261
16669
  displayOptions: {
17262
16670
  show: {
17263
16671
  resource: ['crm-contractors'],
17264
- operation: ['PublicCrmContractorController_updateContact'],
16672
+ operation: ['PublicCrmContractorController_createContact'],
17265
16673
  },
17266
16674
  },
17267
16675
  routing: {
@@ -17281,7 +16689,7 @@ class WorkBuddy {
17281
16689
  displayOptions: {
17282
16690
  show: {
17283
16691
  resource: ['crm-contractors'],
17284
- operation: ['PublicCrmContractorController_updateContact'],
16692
+ operation: ['PublicCrmContractorController_createContact'],
17285
16693
  },
17286
16694
  },
17287
16695
  routing: {
@@ -17301,7 +16709,7 @@ class WorkBuddy {
17301
16709
  displayOptions: {
17302
16710
  show: {
17303
16711
  resource: ['crm-contractors'],
17304
- operation: ['PublicCrmContractorController_updateContact'],
16712
+ operation: ['PublicCrmContractorController_createContact'],
17305
16713
  },
17306
16714
  },
17307
16715
  routing: {
@@ -17321,7 +16729,7 @@ class WorkBuddy {
17321
16729
  displayOptions: {
17322
16730
  show: {
17323
16731
  resource: ['crm-contractors'],
17324
- operation: ['PublicCrmContractorController_updateContact'],
16732
+ operation: ['PublicCrmContractorController_createContact'],
17325
16733
  },
17326
16734
  },
17327
16735
  routing: {
@@ -17341,7 +16749,7 @@ class WorkBuddy {
17341
16749
  displayOptions: {
17342
16750
  show: {
17343
16751
  resource: ['crm-contractors'],
17344
- operation: ['PublicCrmContractorController_updateContact'],
16752
+ operation: ['PublicCrmContractorController_createContact'],
17345
16753
  },
17346
16754
  },
17347
16755
  routing: {
@@ -17361,7 +16769,7 @@ class WorkBuddy {
17361
16769
  displayOptions: {
17362
16770
  show: {
17363
16771
  resource: ['crm-contractors'],
17364
- operation: ['PublicCrmContractorController_updateContact'],
16772
+ operation: ['PublicCrmContractorController_createContact'],
17365
16773
  },
17366
16774
  },
17367
16775
  routing: {
@@ -17371,6 +16779,66 @@ class WorkBuddy {
17371
16779
  },
17372
16780
  },
17373
16781
  },
16782
+ {
16783
+ displayName: 'Role Id',
16784
+ name: 'roleId',
16785
+ type: 'string',
16786
+ default: '',
16787
+ description: 'role ID',
16788
+ required: false,
16789
+ displayOptions: {
16790
+ show: {
16791
+ resource: ['crm-contractors'],
16792
+ operation: ['PublicCrmContractorController_createContact'],
16793
+ },
16794
+ },
16795
+ routing: {
16796
+ send: {
16797
+ type: 'body',
16798
+ property: 'roleId',
16799
+ },
16800
+ },
16801
+ },
16802
+ {
16803
+ displayName: 'Send Email',
16804
+ name: 'sendEmail',
16805
+ type: 'boolean',
16806
+ default: false,
16807
+ description: '',
16808
+ required: false,
16809
+ displayOptions: {
16810
+ show: {
16811
+ resource: ['crm-contractors'],
16812
+ operation: ['PublicCrmContractorController_createContact'],
16813
+ },
16814
+ },
16815
+ routing: {
16816
+ send: {
16817
+ type: 'body',
16818
+ property: 'sendEmail',
16819
+ },
16820
+ },
16821
+ },
16822
+ {
16823
+ displayName: 'Auto Dispatch',
16824
+ name: 'autoDispatch',
16825
+ type: 'boolean',
16826
+ default: false,
16827
+ description: '',
16828
+ required: false,
16829
+ displayOptions: {
16830
+ show: {
16831
+ resource: ['crm-contractors'],
16832
+ operation: ['PublicCrmContractorController_createContact'],
16833
+ },
16834
+ },
16835
+ routing: {
16836
+ send: {
16837
+ type: 'body',
16838
+ property: 'autoDispatch',
16839
+ },
16840
+ },
16841
+ },
17374
16842
  {
17375
16843
  displayName: 'Contractor Id',
17376
16844
  name: 'contractorId',
@@ -17428,12 +16896,12 @@ class WorkBuddy {
17428
16896
  },
17429
16897
  },
17430
16898
  {
17431
- displayName: 'Email',
17432
- name: 'email',
16899
+ displayName: 'Role Id',
16900
+ name: 'roleId',
17433
16901
  type: 'string',
17434
16902
  default: '',
17435
- description: 'Email address',
17436
- required: false,
16903
+ description: 'role ID',
16904
+ required: true,
17437
16905
  displayOptions: {
17438
16906
  show: {
17439
16907
  resource: ['crm-contractors'],
@@ -17443,16 +16911,16 @@ class WorkBuddy {
17443
16911
  routing: {
17444
16912
  send: {
17445
16913
  type: 'body',
17446
- property: 'email',
16914
+ property: 'roleId',
17447
16915
  },
17448
16916
  },
17449
16917
  },
17450
16918
  {
17451
- displayName: 'Role Id',
17452
- name: 'roleId',
16919
+ displayName: 'Email',
16920
+ name: 'email',
17453
16921
  type: 'string',
17454
16922
  default: '',
17455
- description: 'role ID',
16923
+ description: 'Email address',
17456
16924
  required: false,
17457
16925
  displayOptions: {
17458
16926
  show: {
@@ -17463,7 +16931,7 @@ class WorkBuddy {
17463
16931
  routing: {
17464
16932
  send: {
17465
16933
  type: 'body',
17466
- property: 'roleId',
16934
+ property: 'email',
17467
16935
  },
17468
16936
  },
17469
16937
  },
@@ -17479,67 +16947,11 @@ class WorkBuddy {
17479
16947
  resource: ['crm-contractors'],
17480
16948
  operation: ['PublicCrmContractorController_inviteContact'],
17481
16949
  },
17482
- },
17483
- routing: {
17484
- send: {
17485
- type: 'body',
17486
- property: 'sendEmail',
17487
- },
17488
- },
17489
- },
17490
- {
17491
- displayName: 'Contractor Id',
17492
- name: 'contractorId',
17493
- type: 'string',
17494
- default: '',
17495
- description: 'Contractor ID',
17496
- required: true,
17497
- displayOptions: {
17498
- show: {
17499
- resource: ['crm-contractors'],
17500
- operation: ['PublicCrmContractorController_activateContact'],
17501
- },
17502
- },
17503
- },
17504
- {
17505
- displayName: 'Contact Id',
17506
- name: 'contactId',
17507
- type: 'string',
17508
- default: '',
17509
- description: 'Contact ID',
17510
- required: true,
17511
- displayOptions: {
17512
- show: {
17513
- resource: ['crm-contractors'],
17514
- operation: ['PublicCrmContractorController_activateContact'],
17515
- },
17516
- },
17517
- },
17518
- {
17519
- displayName: 'Contractor Id',
17520
- name: 'contractorId',
17521
- type: 'string',
17522
- default: '',
17523
- description: 'Contractor ID',
17524
- required: true,
17525
- displayOptions: {
17526
- show: {
17527
- resource: ['crm-contractors'],
17528
- operation: ['PublicCrmContractorController_deactivateContact'],
17529
- },
17530
- },
17531
- },
17532
- {
17533
- displayName: 'Contact Id',
17534
- name: 'contactId',
17535
- type: 'string',
17536
- default: '',
17537
- description: 'Contact ID',
17538
- required: true,
17539
- displayOptions: {
17540
- show: {
17541
- resource: ['crm-contractors'],
17542
- operation: ['PublicCrmContractorController_deactivateContact'],
16950
+ },
16951
+ routing: {
16952
+ send: {
16953
+ type: 'body',
16954
+ property: 'sendEmail',
17543
16955
  },
17544
16956
  },
17545
16957
  },
@@ -18920,7 +18332,7 @@ class WorkBuddy {
18920
18332
  },
18921
18333
  options: [
18922
18334
  {
18923
- name: 'List contacts (Basic and Login contacts)',
18335
+ name: 'List contacts (contacts + external users)',
18924
18336
  value: 'PublicCrmContactController_list',
18925
18337
  action: '',
18926
18338
  description: '',
@@ -18943,6 +18355,30 @@ class WorkBuddy {
18943
18355
  },
18944
18356
  },
18945
18357
  },
18358
+ {
18359
+ name: 'Update contact',
18360
+ value: 'PublicCrmContactController_update',
18361
+ action: '',
18362
+ description: '',
18363
+ routing: {
18364
+ request: {
18365
+ method: 'PATCH',
18366
+ url: '/api/v2/public/contacts/={{ $parameter["id"] }}',
18367
+ },
18368
+ },
18369
+ },
18370
+ {
18371
+ name: 'Update contact status',
18372
+ value: 'PublicCrmContactController_updateStatus',
18373
+ action: '',
18374
+ description: '',
18375
+ routing: {
18376
+ request: {
18377
+ method: 'PATCH',
18378
+ url: '/api/v2/public/contacts/={{ $parameter["id"] }}/status',
18379
+ },
18380
+ },
18381
+ },
18946
18382
  ],
18947
18383
  default: 'PublicCrmContactController_list',
18948
18384
  },
@@ -19002,6 +18438,254 @@ class WorkBuddy {
19002
18438
  },
19003
18439
  },
19004
18440
  },
18441
+ {
18442
+ displayName: 'Id',
18443
+ name: 'id',
18444
+ type: 'string',
18445
+ default: '',
18446
+ description: 'Contact ID',
18447
+ required: true,
18448
+ displayOptions: {
18449
+ show: {
18450
+ resource: ['crm-contacts'],
18451
+ operation: ['PublicCrmContactController_update'],
18452
+ },
18453
+ },
18454
+ },
18455
+ {
18456
+ displayName: 'First Name',
18457
+ name: 'firstName',
18458
+ type: 'string',
18459
+ default: '',
18460
+ description: '',
18461
+ required: false,
18462
+ displayOptions: {
18463
+ show: {
18464
+ resource: ['crm-contacts'],
18465
+ operation: ['PublicCrmContactController_update'],
18466
+ },
18467
+ },
18468
+ routing: {
18469
+ send: {
18470
+ type: 'body',
18471
+ property: 'firstName',
18472
+ },
18473
+ },
18474
+ },
18475
+ {
18476
+ displayName: 'Last Name',
18477
+ name: 'lastName',
18478
+ type: 'string',
18479
+ default: '',
18480
+ description: '',
18481
+ required: false,
18482
+ displayOptions: {
18483
+ show: {
18484
+ resource: ['crm-contacts'],
18485
+ operation: ['PublicCrmContactController_update'],
18486
+ },
18487
+ },
18488
+ routing: {
18489
+ send: {
18490
+ type: 'body',
18491
+ property: 'lastName',
18492
+ },
18493
+ },
18494
+ },
18495
+ {
18496
+ displayName: 'Email',
18497
+ name: 'email',
18498
+ type: 'string',
18499
+ default: '',
18500
+ description: 'Email address',
18501
+ required: false,
18502
+ displayOptions: {
18503
+ show: {
18504
+ resource: ['crm-contacts'],
18505
+ operation: ['PublicCrmContactController_update'],
18506
+ },
18507
+ },
18508
+ routing: {
18509
+ send: {
18510
+ type: 'body',
18511
+ property: 'email',
18512
+ },
18513
+ },
18514
+ },
18515
+ {
18516
+ displayName: 'Phone',
18517
+ name: 'phone',
18518
+ type: 'string',
18519
+ default: '',
18520
+ description: 'Phone number',
18521
+ required: false,
18522
+ displayOptions: {
18523
+ show: {
18524
+ resource: ['crm-contacts'],
18525
+ operation: ['PublicCrmContactController_update'],
18526
+ },
18527
+ },
18528
+ routing: {
18529
+ send: {
18530
+ type: 'body',
18531
+ property: 'phone',
18532
+ },
18533
+ },
18534
+ },
18535
+ {
18536
+ displayName: 'Mobile',
18537
+ name: 'mobile',
18538
+ type: 'string',
18539
+ default: '',
18540
+ description: 'Mobile phone number',
18541
+ required: false,
18542
+ displayOptions: {
18543
+ show: {
18544
+ resource: ['crm-contacts'],
18545
+ operation: ['PublicCrmContactController_update'],
18546
+ },
18547
+ },
18548
+ routing: {
18549
+ send: {
18550
+ type: 'body',
18551
+ property: 'mobile',
18552
+ },
18553
+ },
18554
+ },
18555
+ {
18556
+ displayName: 'Title',
18557
+ name: 'title',
18558
+ type: 'string',
18559
+ default: '',
18560
+ description: '',
18561
+ required: false,
18562
+ displayOptions: {
18563
+ show: {
18564
+ resource: ['crm-contacts'],
18565
+ operation: ['PublicCrmContactController_update'],
18566
+ },
18567
+ },
18568
+ routing: {
18569
+ send: {
18570
+ type: 'body',
18571
+ property: 'title',
18572
+ },
18573
+ },
18574
+ },
18575
+ {
18576
+ displayName: 'Note',
18577
+ name: 'note',
18578
+ type: 'string',
18579
+ default: '',
18580
+ description: '',
18581
+ required: false,
18582
+ displayOptions: {
18583
+ show: {
18584
+ resource: ['crm-contacts'],
18585
+ operation: ['PublicCrmContactController_update'],
18586
+ },
18587
+ },
18588
+ routing: {
18589
+ send: {
18590
+ type: 'body',
18591
+ property: 'note',
18592
+ },
18593
+ },
18594
+ },
18595
+ {
18596
+ displayName: 'Integration Id',
18597
+ name: 'integrationId',
18598
+ type: 'string',
18599
+ default: '',
18600
+ description: 'integration ID',
18601
+ required: false,
18602
+ displayOptions: {
18603
+ show: {
18604
+ resource: ['crm-contacts'],
18605
+ operation: ['PublicCrmContactController_update'],
18606
+ },
18607
+ },
18608
+ routing: {
18609
+ send: {
18610
+ type: 'body',
18611
+ property: 'integrationId',
18612
+ },
18613
+ },
18614
+ },
18615
+ {
18616
+ displayName: 'Auto Dispatch',
18617
+ name: 'autoDispatch',
18618
+ type: 'boolean',
18619
+ default: false,
18620
+ description: '',
18621
+ required: false,
18622
+ displayOptions: {
18623
+ show: {
18624
+ resource: ['crm-contacts'],
18625
+ operation: ['PublicCrmContactController_update'],
18626
+ },
18627
+ },
18628
+ routing: {
18629
+ send: {
18630
+ type: 'body',
18631
+ property: 'autoDispatch',
18632
+ },
18633
+ },
18634
+ },
18635
+ {
18636
+ displayName: 'Id',
18637
+ name: 'id',
18638
+ type: 'string',
18639
+ default: '',
18640
+ description: 'Contact ID',
18641
+ required: true,
18642
+ displayOptions: {
18643
+ show: {
18644
+ resource: ['crm-contacts'],
18645
+ operation: ['PublicCrmContactController_updateStatus'],
18646
+ },
18647
+ },
18648
+ },
18649
+ {
18650
+ displayName: 'Status Id',
18651
+ name: 'statusId',
18652
+ type: 'string',
18653
+ default: '',
18654
+ description: 'status ID',
18655
+ required: true,
18656
+ displayOptions: {
18657
+ show: {
18658
+ resource: ['crm-contacts'],
18659
+ operation: ['PublicCrmContactController_updateStatus'],
18660
+ },
18661
+ },
18662
+ routing: {
18663
+ send: {
18664
+ type: 'body',
18665
+ property: 'statusId',
18666
+ },
18667
+ },
18668
+ },
18669
+ {
18670
+ displayName: 'Note',
18671
+ name: 'note',
18672
+ type: 'string',
18673
+ default: '',
18674
+ description: '',
18675
+ required: false,
18676
+ displayOptions: {
18677
+ show: {
18678
+ resource: ['crm-contacts'],
18679
+ operation: ['PublicCrmContactController_updateStatus'],
18680
+ },
18681
+ },
18682
+ routing: {
18683
+ send: {
18684
+ type: 'body',
18685
+ property: 'note',
18686
+ },
18687
+ },
18688
+ },
19005
18689
  // Crm Invites Operations
19006
18690
  {
19007
18691
  displayName: 'Operation',