@workbuddy/n8n-nodes-workbuddy-vnext 1.0.92 → 1.0.93

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.
@@ -228,6 +228,22 @@ class WorkBuddy {
228
228
  name: 'Flags',
229
229
  value: 'flags',
230
230
  },
231
+ {
232
+ name: 'Service Plans',
233
+ value: 'service-plans',
234
+ },
235
+ {
236
+ name: 'Service Plans Lines',
237
+ value: 'service-plans-lines',
238
+ },
239
+ {
240
+ name: 'Service Plans Lines Tasks',
241
+ value: 'service-plans-lines-tasks',
242
+ },
243
+ {
244
+ name: 'Service Plans Lines Tasks Subtasks',
245
+ value: 'service-plans-lines-tasks-subtasks',
246
+ },
231
247
  {
232
248
  name: 'Mcp',
233
249
  value: 'mcp',
@@ -571,8 +587,8 @@ class WorkBuddy {
571
587
  {
572
588
  displayName: 'Status',
573
589
  name: 'status',
574
- type: 'string',
575
- default: '',
590
+ type: 'json',
591
+ default: {},
576
592
  description: 'Status filter',
577
593
  required: false,
578
594
  displayOptions: {
@@ -851,8 +867,8 @@ class WorkBuddy {
851
867
  {
852
868
  displayName: 'Stage Status',
853
869
  name: 'stageStatus',
854
- type: 'string',
855
- default: '',
870
+ type: 'json',
871
+ default: {},
856
872
  description: '',
857
873
  required: false,
858
874
  displayOptions: {
@@ -15730,6 +15746,50 @@ class WorkBuddy {
15730
15746
  },
15731
15747
  },
15732
15748
  },
15749
+ {
15750
+ displayName: 'Primary Contact',
15751
+ name: 'primaryContact',
15752
+ type: 'collection',
15753
+ default: {},
15754
+ placeholder: 'Add Primary Contact',
15755
+ description: '',
15756
+ required: false,
15757
+ displayOptions: {
15758
+ show: {
15759
+ resource: ['crm-customers'],
15760
+ operation: ['PublicCrmCustomerController_update'],
15761
+ },
15762
+ },
15763
+ options: [
15764
+ {
15765
+ displayName: 'Id',
15766
+ name: 'id',
15767
+ type: 'string',
15768
+ default: '',
15769
+ description: 'Entity ID',
15770
+ },
15771
+ {
15772
+ displayName: 'Name',
15773
+ name: 'name',
15774
+ type: 'string',
15775
+ default: '',
15776
+ description: 'Display name',
15777
+ },
15778
+ {
15779
+ displayName: 'Type',
15780
+ name: 'type',
15781
+ type: 'string',
15782
+ default: '',
15783
+ description: '',
15784
+ },
15785
+ ],
15786
+ routing: {
15787
+ send: {
15788
+ type: 'body',
15789
+ property: 'primaryContact',
15790
+ },
15791
+ },
15792
+ },
15733
15793
  {
15734
15794
  displayName: 'Primary Site',
15735
15795
  name: 'primarySite',
@@ -17354,6 +17414,50 @@ class WorkBuddy {
17354
17414
  },
17355
17415
  },
17356
17416
  },
17417
+ {
17418
+ displayName: 'Primary Contact',
17419
+ name: 'primaryContact',
17420
+ type: 'collection',
17421
+ default: {},
17422
+ placeholder: 'Add Primary Contact',
17423
+ description: '',
17424
+ required: false,
17425
+ displayOptions: {
17426
+ show: {
17427
+ resource: ['crm-contractors'],
17428
+ operation: ['PublicCrmContractorController_update'],
17429
+ },
17430
+ },
17431
+ options: [
17432
+ {
17433
+ displayName: 'Id',
17434
+ name: 'id',
17435
+ type: 'string',
17436
+ default: '',
17437
+ description: 'Entity ID',
17438
+ },
17439
+ {
17440
+ displayName: 'Name',
17441
+ name: 'name',
17442
+ type: 'string',
17443
+ default: '',
17444
+ description: 'Display name',
17445
+ },
17446
+ {
17447
+ displayName: 'Type',
17448
+ name: 'type',
17449
+ type: 'string',
17450
+ default: '',
17451
+ description: '',
17452
+ },
17453
+ ],
17454
+ routing: {
17455
+ send: {
17456
+ type: 'body',
17457
+ property: 'primaryContact',
17458
+ },
17459
+ },
17460
+ },
17357
17461
  {
17358
17462
  displayName: 'Primary Site',
17359
17463
  name: 'primarySite',
@@ -18939,6 +19043,50 @@ class WorkBuddy {
18939
19043
  },
18940
19044
  },
18941
19045
  },
19046
+ {
19047
+ displayName: 'Primary Contact',
19048
+ name: 'primaryContact',
19049
+ type: 'collection',
19050
+ default: {},
19051
+ placeholder: 'Add Primary Contact',
19052
+ description: '',
19053
+ required: false,
19054
+ displayOptions: {
19055
+ show: {
19056
+ resource: ['crm-suppliers'],
19057
+ operation: ['PublicCrmSupplierController_update'],
19058
+ },
19059
+ },
19060
+ options: [
19061
+ {
19062
+ displayName: 'Id',
19063
+ name: 'id',
19064
+ type: 'string',
19065
+ default: '',
19066
+ description: 'Entity ID',
19067
+ },
19068
+ {
19069
+ displayName: 'Name',
19070
+ name: 'name',
19071
+ type: 'string',
19072
+ default: '',
19073
+ description: 'Display name',
19074
+ },
19075
+ {
19076
+ displayName: 'Type',
19077
+ name: 'type',
19078
+ type: 'string',
19079
+ default: '',
19080
+ description: '',
19081
+ },
19082
+ ],
19083
+ routing: {
19084
+ send: {
19085
+ type: 'body',
19086
+ property: 'primaryContact',
19087
+ },
19088
+ },
19089
+ },
18942
19090
  {
18943
19091
  displayName: 'Primary Site',
18944
19092
  name: 'primarySite',
@@ -21139,6 +21287,2194 @@ class WorkBuddy {
21139
21287
  },
21140
21288
  ],
21141
21289
  },
21290
+ // Service Plans Operations
21291
+ {
21292
+ displayName: 'Operation',
21293
+ name: 'operation',
21294
+ type: 'options',
21295
+ noDataExpression: true,
21296
+ displayOptions: {
21297
+ show: {
21298
+ resource: ['service-plans'],
21299
+ },
21300
+ },
21301
+ options: [
21302
+ {
21303
+ name: 'Create a Service Plan',
21304
+ value: 'PublicServicePlanController_create',
21305
+ action: 'Creates only the Service Plan contract header. Lines and Tasks are added through their nested endpoints.',
21306
+ description: 'Creates only the Service Plan contract header. Lines and Tasks are added through their nested endpoints.',
21307
+ routing: {
21308
+ request: {
21309
+ method: 'POST',
21310
+ url: '/api/v2/public/service-plans',
21311
+ },
21312
+ },
21313
+ },
21314
+ {
21315
+ name: 'Get a Service Plan',
21316
+ value: 'PublicServicePlanController_get',
21317
+ action: "Resolves a WorkBuddy ID first, then the authenticated caller's integrationId.",
21318
+ description: "Resolves a WorkBuddy ID first, then the authenticated caller's integrationId.",
21319
+ routing: {
21320
+ request: {
21321
+ method: 'GET',
21322
+ url: '/api/v2/public/service-plans/={{ $parameter["identifier"] }}',
21323
+ },
21324
+ },
21325
+ },
21326
+ {
21327
+ name: 'Activate a Service Plan',
21328
+ value: 'PublicServicePlanController_activate',
21329
+ action: 'Validates and publishes a fully assembled Service Plan.',
21330
+ description: 'Validates and publishes a fully assembled Service Plan.',
21331
+ routing: {
21332
+ request: {
21333
+ method: 'POST',
21334
+ url: '/api/v2/public/service-plans/={{ $parameter["identifier"] }}/activate',
21335
+ },
21336
+ },
21337
+ },
21338
+ {
21339
+ name: 'Suspend a Service Plan',
21340
+ value: 'PublicServicePlanController_suspend',
21341
+ action: 'Stops future scheduled work while preserving history.',
21342
+ description: 'Stops future scheduled work while preserving history.',
21343
+ routing: {
21344
+ request: {
21345
+ method: 'POST',
21346
+ url: '/api/v2/public/service-plans/={{ $parameter["identifier"] }}/suspend',
21347
+ },
21348
+ },
21349
+ },
21350
+ {
21351
+ name: 'Archive a Service Plan',
21352
+ value: 'PublicServicePlanController_archive',
21353
+ action: 'Archives a suspended Service Plan and reconciles future scheduled work.',
21354
+ description: 'Archives a suspended Service Plan and reconciles future scheduled work.',
21355
+ routing: {
21356
+ request: {
21357
+ method: 'POST',
21358
+ url: '/api/v2/public/service-plans/={{ $parameter["identifier"] }}/archive',
21359
+ },
21360
+ },
21361
+ },
21362
+ ],
21363
+ default: 'PublicServicePlanController_create',
21364
+ },
21365
+ {
21366
+ displayName: 'Integration Id',
21367
+ name: 'integrationId',
21368
+ type: 'string',
21369
+ default: '',
21370
+ description: 'integration ID',
21371
+ required: true,
21372
+ displayOptions: {
21373
+ show: {
21374
+ resource: ['service-plans'],
21375
+ operation: ['PublicServicePlanController_create'],
21376
+ },
21377
+ },
21378
+ routing: {
21379
+ send: {
21380
+ type: 'body',
21381
+ property: 'integrationId',
21382
+ },
21383
+ },
21384
+ },
21385
+ {
21386
+ displayName: 'Name',
21387
+ name: 'name',
21388
+ type: 'string',
21389
+ default: '',
21390
+ description: 'Display name',
21391
+ required: true,
21392
+ displayOptions: {
21393
+ show: {
21394
+ resource: ['service-plans'],
21395
+ operation: ['PublicServicePlanController_create'],
21396
+ },
21397
+ },
21398
+ routing: {
21399
+ send: {
21400
+ type: 'body',
21401
+ property: 'name',
21402
+ },
21403
+ },
21404
+ },
21405
+ {
21406
+ displayName: 'Customer Id',
21407
+ name: 'customerId',
21408
+ type: 'options',
21409
+ default: '',
21410
+ description: 'Customer ID — use /crm/customers to look up',
21411
+ required: true,
21412
+ displayOptions: {
21413
+ show: {
21414
+ resource: ['service-plans'],
21415
+ operation: ['PublicServicePlanController_create'],
21416
+ },
21417
+ },
21418
+ typeOptions: {
21419
+ loadOptionsMethod: 'loadCustomerOptions',
21420
+ },
21421
+ routing: {
21422
+ send: {
21423
+ type: 'body',
21424
+ property: 'customerId',
21425
+ },
21426
+ },
21427
+ },
21428
+ {
21429
+ displayName: 'Site Id',
21430
+ name: 'siteId',
21431
+ type: 'options',
21432
+ default: '',
21433
+ description: 'Site ID — use /crm/sites to look up',
21434
+ required: true,
21435
+ displayOptions: {
21436
+ show: {
21437
+ resource: ['service-plans'],
21438
+ operation: ['PublicServicePlanController_create'],
21439
+ },
21440
+ },
21441
+ typeOptions: {
21442
+ loadOptionsMethod: 'loadSiteOptions',
21443
+ },
21444
+ routing: {
21445
+ send: {
21446
+ type: 'body',
21447
+ property: 'siteId',
21448
+ },
21449
+ },
21450
+ },
21451
+ {
21452
+ displayName: 'Service Type Id',
21453
+ name: 'serviceTypeId',
21454
+ type: 'string',
21455
+ default: '',
21456
+ description: 'service type ID',
21457
+ required: true,
21458
+ displayOptions: {
21459
+ show: {
21460
+ resource: ['service-plans'],
21461
+ operation: ['PublicServicePlanController_create'],
21462
+ },
21463
+ },
21464
+ routing: {
21465
+ send: {
21466
+ type: 'body',
21467
+ property: 'serviceTypeId',
21468
+ },
21469
+ },
21470
+ },
21471
+ {
21472
+ displayName: 'Service Scope Id',
21473
+ name: 'serviceScopeId',
21474
+ type: 'string',
21475
+ default: '',
21476
+ description: 'service scope ID',
21477
+ required: true,
21478
+ displayOptions: {
21479
+ show: {
21480
+ resource: ['service-plans'],
21481
+ operation: ['PublicServicePlanController_create'],
21482
+ },
21483
+ },
21484
+ routing: {
21485
+ send: {
21486
+ type: 'body',
21487
+ property: 'serviceScopeId',
21488
+ },
21489
+ },
21490
+ },
21491
+ {
21492
+ displayName: 'Date Start',
21493
+ name: 'dateStart',
21494
+ type: 'string',
21495
+ default: '',
21496
+ description: '',
21497
+ required: true,
21498
+ displayOptions: {
21499
+ show: {
21500
+ resource: ['service-plans'],
21501
+ operation: ['PublicServicePlanController_create'],
21502
+ },
21503
+ },
21504
+ routing: {
21505
+ send: {
21506
+ type: 'body',
21507
+ property: 'dateStart',
21508
+ },
21509
+ },
21510
+ },
21511
+ {
21512
+ displayName: 'Date End',
21513
+ name: 'dateEnd',
21514
+ type: 'string',
21515
+ default: '',
21516
+ description: '',
21517
+ required: false,
21518
+ displayOptions: {
21519
+ show: {
21520
+ resource: ['service-plans'],
21521
+ operation: ['PublicServicePlanController_create'],
21522
+ },
21523
+ },
21524
+ routing: {
21525
+ send: {
21526
+ type: 'body',
21527
+ property: 'dateEnd',
21528
+ },
21529
+ },
21530
+ },
21531
+ {
21532
+ displayName: 'Working Days',
21533
+ name: 'workingDays',
21534
+ type: 'multiOptions',
21535
+ default: '',
21536
+ description: '',
21537
+ required: false,
21538
+ displayOptions: {
21539
+ show: {
21540
+ resource: ['service-plans'],
21541
+ operation: ['PublicServicePlanController_create'],
21542
+ },
21543
+ },
21544
+ options: [
21545
+ {
21546
+ name: 'Mon',
21547
+ value: 'Mon',
21548
+ },
21549
+ {
21550
+ name: 'Tue',
21551
+ value: 'Tue',
21552
+ },
21553
+ {
21554
+ name: 'Wed',
21555
+ value: 'Wed',
21556
+ },
21557
+ {
21558
+ name: 'Thu',
21559
+ value: 'Thu',
21560
+ },
21561
+ {
21562
+ name: 'Fri',
21563
+ value: 'Fri',
21564
+ },
21565
+ {
21566
+ name: 'Sat',
21567
+ value: 'Sat',
21568
+ },
21569
+ {
21570
+ name: 'Sun',
21571
+ value: 'Sun',
21572
+ },
21573
+ ],
21574
+ routing: {
21575
+ send: {
21576
+ type: 'body',
21577
+ property: 'workingDays',
21578
+ },
21579
+ },
21580
+ },
21581
+ {
21582
+ displayName: 'Identifier',
21583
+ name: 'identifier',
21584
+ type: 'string',
21585
+ default: '',
21586
+ description: 'WorkBuddy Service Plan ID or caller integrationId',
21587
+ required: true,
21588
+ displayOptions: {
21589
+ show: {
21590
+ resource: ['service-plans'],
21591
+ operation: ['PublicServicePlanController_get'],
21592
+ },
21593
+ },
21594
+ },
21595
+ {
21596
+ displayName: 'Identifier',
21597
+ name: 'identifier',
21598
+ type: 'string',
21599
+ default: '',
21600
+ description: 'Entity ID or human-readable number',
21601
+ required: true,
21602
+ displayOptions: {
21603
+ show: {
21604
+ resource: ['service-plans'],
21605
+ operation: ['PublicServicePlanController_activate'],
21606
+ },
21607
+ },
21608
+ },
21609
+ {
21610
+ displayName: 'Reason',
21611
+ name: 'reason',
21612
+ type: 'string',
21613
+ default: '',
21614
+ description: 'Reason for the action (e.g. cancellation reason)',
21615
+ required: false,
21616
+ displayOptions: {
21617
+ show: {
21618
+ resource: ['service-plans'],
21619
+ operation: ['PublicServicePlanController_activate'],
21620
+ },
21621
+ },
21622
+ routing: {
21623
+ send: {
21624
+ type: 'body',
21625
+ property: 'reason',
21626
+ },
21627
+ },
21628
+ },
21629
+ {
21630
+ displayName: 'Identifier',
21631
+ name: 'identifier',
21632
+ type: 'string',
21633
+ default: '',
21634
+ description: 'Entity ID or human-readable number',
21635
+ required: true,
21636
+ displayOptions: {
21637
+ show: {
21638
+ resource: ['service-plans'],
21639
+ operation: ['PublicServicePlanController_suspend'],
21640
+ },
21641
+ },
21642
+ },
21643
+ {
21644
+ displayName: 'Reason',
21645
+ name: 'reason',
21646
+ type: 'string',
21647
+ default: '',
21648
+ description: 'Reason for the action (e.g. cancellation reason)',
21649
+ required: false,
21650
+ displayOptions: {
21651
+ show: {
21652
+ resource: ['service-plans'],
21653
+ operation: ['PublicServicePlanController_suspend'],
21654
+ },
21655
+ },
21656
+ routing: {
21657
+ send: {
21658
+ type: 'body',
21659
+ property: 'reason',
21660
+ },
21661
+ },
21662
+ },
21663
+ {
21664
+ displayName: 'Identifier',
21665
+ name: 'identifier',
21666
+ type: 'string',
21667
+ default: '',
21668
+ description: 'Entity ID or human-readable number',
21669
+ required: true,
21670
+ displayOptions: {
21671
+ show: {
21672
+ resource: ['service-plans'],
21673
+ operation: ['PublicServicePlanController_archive'],
21674
+ },
21675
+ },
21676
+ },
21677
+ {
21678
+ displayName: 'Reason',
21679
+ name: 'reason',
21680
+ type: 'string',
21681
+ default: '',
21682
+ description: 'Reason for the action (e.g. cancellation reason)',
21683
+ required: false,
21684
+ displayOptions: {
21685
+ show: {
21686
+ resource: ['service-plans'],
21687
+ operation: ['PublicServicePlanController_archive'],
21688
+ },
21689
+ },
21690
+ routing: {
21691
+ send: {
21692
+ type: 'body',
21693
+ property: 'reason',
21694
+ },
21695
+ },
21696
+ },
21697
+ // Service Plans Lines Operations
21698
+ {
21699
+ displayName: 'Operation',
21700
+ name: 'operation',
21701
+ type: 'options',
21702
+ noDataExpression: true,
21703
+ displayOptions: {
21704
+ show: {
21705
+ resource: ['service-plans-lines'],
21706
+ },
21707
+ },
21708
+ options: [
21709
+ {
21710
+ name: 'List Service Lines',
21711
+ value: 'PublicServiceLineController_list',
21712
+ action: '',
21713
+ description: '',
21714
+ routing: {
21715
+ request: {
21716
+ method: 'GET',
21717
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines',
21718
+ },
21719
+ },
21720
+ },
21721
+ {
21722
+ name: 'Create a Service Line',
21723
+ value: 'PublicServiceLineController_create',
21724
+ action: '',
21725
+ description: '',
21726
+ routing: {
21727
+ request: {
21728
+ method: 'POST',
21729
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines',
21730
+ },
21731
+ },
21732
+ },
21733
+ {
21734
+ name: 'Get a Service Line',
21735
+ value: 'PublicServiceLineController_get',
21736
+ action: '',
21737
+ description: '',
21738
+ routing: {
21739
+ request: {
21740
+ method: 'GET',
21741
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["identifier"] }}',
21742
+ },
21743
+ },
21744
+ },
21745
+ {
21746
+ name: 'Update a Service Line',
21747
+ value: 'PublicServiceLineController_patch',
21748
+ action: '',
21749
+ description: '',
21750
+ routing: {
21751
+ request: {
21752
+ method: 'PATCH',
21753
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["identifier"] }}',
21754
+ },
21755
+ },
21756
+ },
21757
+ ],
21758
+ default: 'PublicServiceLineController_list',
21759
+ },
21760
+ {
21761
+ displayName: 'Plan Id',
21762
+ name: 'planId',
21763
+ type: 'string',
21764
+ default: '',
21765
+ description: 'WorkBuddy Service Plan ID',
21766
+ required: true,
21767
+ displayOptions: {
21768
+ show: {
21769
+ resource: ['service-plans-lines'],
21770
+ operation: ['PublicServiceLineController_list'],
21771
+ },
21772
+ },
21773
+ },
21774
+ {
21775
+ displayName: 'Plan Id',
21776
+ name: 'planId',
21777
+ type: 'string',
21778
+ default: '',
21779
+ description: 'plan ID',
21780
+ required: true,
21781
+ displayOptions: {
21782
+ show: {
21783
+ resource: ['service-plans-lines'],
21784
+ operation: ['PublicServiceLineController_create'],
21785
+ },
21786
+ },
21787
+ },
21788
+ {
21789
+ displayName: 'Integration Id',
21790
+ name: 'integrationId',
21791
+ type: 'string',
21792
+ default: '',
21793
+ description: 'integration ID',
21794
+ required: true,
21795
+ displayOptions: {
21796
+ show: {
21797
+ resource: ['service-plans-lines'],
21798
+ operation: ['PublicServiceLineController_create'],
21799
+ },
21800
+ },
21801
+ routing: {
21802
+ send: {
21803
+ type: 'body',
21804
+ property: 'integrationId',
21805
+ },
21806
+ },
21807
+ },
21808
+ {
21809
+ displayName: 'Name',
21810
+ name: 'name',
21811
+ type: 'string',
21812
+ default: '',
21813
+ description: 'Display name',
21814
+ required: true,
21815
+ displayOptions: {
21816
+ show: {
21817
+ resource: ['service-plans-lines'],
21818
+ operation: ['PublicServiceLineController_create'],
21819
+ },
21820
+ },
21821
+ routing: {
21822
+ send: {
21823
+ type: 'body',
21824
+ property: 'name',
21825
+ },
21826
+ },
21827
+ },
21828
+ {
21829
+ displayName: 'Work Category Id',
21830
+ name: 'workCategoryId',
21831
+ type: 'options',
21832
+ default: '',
21833
+ description: 'Work category ID — use /settings/work-types to look up',
21834
+ required: true,
21835
+ displayOptions: {
21836
+ show: {
21837
+ resource: ['service-plans-lines'],
21838
+ operation: ['PublicServiceLineController_create'],
21839
+ },
21840
+ },
21841
+ typeOptions: {
21842
+ loadOptionsMethod: 'loadWorkTypeOptions',
21843
+ },
21844
+ routing: {
21845
+ send: {
21846
+ type: 'body',
21847
+ property: 'workCategoryId',
21848
+ },
21849
+ },
21850
+ },
21851
+ {
21852
+ displayName: 'Default Window',
21853
+ name: 'defaultWindow',
21854
+ type: 'collection',
21855
+ default: {},
21856
+ placeholder: 'Add Default Window',
21857
+ description: '',
21858
+ required: true,
21859
+ displayOptions: {
21860
+ show: {
21861
+ resource: ['service-plans-lines'],
21862
+ operation: ['PublicServiceLineController_create'],
21863
+ },
21864
+ },
21865
+ options: [
21866
+ {
21867
+ displayName: 'Start',
21868
+ name: 'start',
21869
+ type: 'string',
21870
+ default: '',
21871
+ description: '',
21872
+ },
21873
+ {
21874
+ displayName: 'End',
21875
+ name: 'end',
21876
+ type: 'string',
21877
+ default: '',
21878
+ description: '',
21879
+ },
21880
+ {
21881
+ displayName: 'Overnight',
21882
+ name: 'overnight',
21883
+ type: 'boolean',
21884
+ default: false,
21885
+ description: '',
21886
+ },
21887
+ ],
21888
+ routing: {
21889
+ send: {
21890
+ type: 'body',
21891
+ property: 'defaultWindow',
21892
+ },
21893
+ },
21894
+ },
21895
+ {
21896
+ displayName: 'Description',
21897
+ name: 'description',
21898
+ type: 'string',
21899
+ default: '',
21900
+ description: 'Detailed description',
21901
+ required: false,
21902
+ displayOptions: {
21903
+ show: {
21904
+ resource: ['service-plans-lines'],
21905
+ operation: ['PublicServiceLineController_create'],
21906
+ },
21907
+ },
21908
+ routing: {
21909
+ send: {
21910
+ type: 'body',
21911
+ property: 'description',
21912
+ },
21913
+ },
21914
+ },
21915
+ {
21916
+ displayName: 'Date Start',
21917
+ name: 'dateStart',
21918
+ type: 'string',
21919
+ default: '',
21920
+ description: '',
21921
+ required: false,
21922
+ displayOptions: {
21923
+ show: {
21924
+ resource: ['service-plans-lines'],
21925
+ operation: ['PublicServiceLineController_create'],
21926
+ },
21927
+ },
21928
+ routing: {
21929
+ send: {
21930
+ type: 'body',
21931
+ property: 'dateStart',
21932
+ },
21933
+ },
21934
+ },
21935
+ {
21936
+ displayName: 'Date End',
21937
+ name: 'dateEnd',
21938
+ type: 'string',
21939
+ default: '',
21940
+ description: '',
21941
+ required: false,
21942
+ displayOptions: {
21943
+ show: {
21944
+ resource: ['service-plans-lines'],
21945
+ operation: ['PublicServiceLineController_create'],
21946
+ },
21947
+ },
21948
+ routing: {
21949
+ send: {
21950
+ type: 'body',
21951
+ property: 'dateEnd',
21952
+ },
21953
+ },
21954
+ },
21955
+ {
21956
+ displayName: 'Working Days',
21957
+ name: 'workingDays',
21958
+ type: 'multiOptions',
21959
+ default: '',
21960
+ description: '',
21961
+ required: false,
21962
+ displayOptions: {
21963
+ show: {
21964
+ resource: ['service-plans-lines'],
21965
+ operation: ['PublicServiceLineController_create'],
21966
+ },
21967
+ },
21968
+ options: [
21969
+ {
21970
+ name: 'Mon',
21971
+ value: 'Mon',
21972
+ },
21973
+ {
21974
+ name: 'Tue',
21975
+ value: 'Tue',
21976
+ },
21977
+ {
21978
+ name: 'Wed',
21979
+ value: 'Wed',
21980
+ },
21981
+ {
21982
+ name: 'Thu',
21983
+ value: 'Thu',
21984
+ },
21985
+ {
21986
+ name: 'Fri',
21987
+ value: 'Fri',
21988
+ },
21989
+ {
21990
+ name: 'Sat',
21991
+ value: 'Sat',
21992
+ },
21993
+ {
21994
+ name: 'Sun',
21995
+ value: 'Sun',
21996
+ },
21997
+ ],
21998
+ routing: {
21999
+ send: {
22000
+ type: 'body',
22001
+ property: 'workingDays',
22002
+ },
22003
+ },
22004
+ },
22005
+ {
22006
+ displayName: 'Job Defaults',
22007
+ name: 'jobDefaults',
22008
+ type: 'collection',
22009
+ default: {},
22010
+ placeholder: 'Add Job Defaults',
22011
+ description: '',
22012
+ required: false,
22013
+ displayOptions: {
22014
+ show: {
22015
+ resource: ['service-plans-lines'],
22016
+ operation: ['PublicServiceLineController_create'],
22017
+ },
22018
+ },
22019
+ options: [
22020
+ {
22021
+ displayName: 'Name',
22022
+ name: 'name',
22023
+ type: 'string',
22024
+ default: '',
22025
+ description: 'Display name',
22026
+ },
22027
+ {
22028
+ displayName: 'Description',
22029
+ name: 'description',
22030
+ type: 'string',
22031
+ default: '',
22032
+ description: 'Detailed description',
22033
+ },
22034
+ {
22035
+ displayName: 'Duration',
22036
+ name: 'duration',
22037
+ type: 'number',
22038
+ default: 0,
22039
+ description: '',
22040
+ },
22041
+ {
22042
+ displayName: 'Priority Id',
22043
+ name: 'priorityId',
22044
+ type: 'string',
22045
+ default: '',
22046
+ description: 'Priority ID — use /settings/priorities to look up',
22047
+ },
22048
+ {
22049
+ displayName: 'Type Id',
22050
+ name: 'typeId',
22051
+ type: 'string',
22052
+ default: '',
22053
+ description: 'Job type ID — use /settings/job-types to look up',
22054
+ },
22055
+ {
22056
+ displayName: 'Tag Ids',
22057
+ name: 'tagIds',
22058
+ type: 'string',
22059
+ default: '',
22060
+ description: 'Array of tag IDs (comma-separated, e.g. "id1,id2") — use /settings/tags to look up',
22061
+ typeOptions: {
22062
+ multipleValues: true,
22063
+ },
22064
+ },
22065
+ {
22066
+ displayName: 'Owner Id',
22067
+ name: 'ownerId',
22068
+ type: 'string',
22069
+ default: '',
22070
+ description: 'Owner (employee) ID — use /crm/employees to look up',
22071
+ },
22072
+ {
22073
+ displayName: 'Field Supervisor Id',
22074
+ name: 'fieldSupervisorId',
22075
+ type: 'string',
22076
+ default: '',
22077
+ description: 'Field supervisor (employee) ID — use /crm/employees to look up',
22078
+ },
22079
+ {
22080
+ displayName: 'Price Book Id',
22081
+ name: 'priceBookId',
22082
+ type: 'string',
22083
+ default: '',
22084
+ description: 'Price book ID for job pricing',
22085
+ },
22086
+ ],
22087
+ routing: {
22088
+ send: {
22089
+ type: 'body',
22090
+ property: 'jobDefaults',
22091
+ },
22092
+ },
22093
+ },
22094
+ {
22095
+ displayName: 'Plan Id',
22096
+ name: 'planId',
22097
+ type: 'string',
22098
+ default: '',
22099
+ description: 'plan ID',
22100
+ required: true,
22101
+ displayOptions: {
22102
+ show: {
22103
+ resource: ['service-plans-lines'],
22104
+ operation: ['PublicServiceLineController_get'],
22105
+ },
22106
+ },
22107
+ },
22108
+ {
22109
+ displayName: 'Identifier',
22110
+ name: 'identifier',
22111
+ type: 'string',
22112
+ default: '',
22113
+ description: 'WorkBuddy Service Line ID or caller integrationId',
22114
+ required: true,
22115
+ displayOptions: {
22116
+ show: {
22117
+ resource: ['service-plans-lines'],
22118
+ operation: ['PublicServiceLineController_get'],
22119
+ },
22120
+ },
22121
+ },
22122
+ {
22123
+ displayName: 'Plan Id',
22124
+ name: 'planId',
22125
+ type: 'string',
22126
+ default: '',
22127
+ description: 'plan ID',
22128
+ required: true,
22129
+ displayOptions: {
22130
+ show: {
22131
+ resource: ['service-plans-lines'],
22132
+ operation: ['PublicServiceLineController_patch'],
22133
+ },
22134
+ },
22135
+ },
22136
+ {
22137
+ displayName: 'Identifier',
22138
+ name: 'identifier',
22139
+ type: 'string',
22140
+ default: '',
22141
+ description: 'Entity ID or human-readable number',
22142
+ required: true,
22143
+ displayOptions: {
22144
+ show: {
22145
+ resource: ['service-plans-lines'],
22146
+ operation: ['PublicServiceLineController_patch'],
22147
+ },
22148
+ },
22149
+ },
22150
+ {
22151
+ displayName: 'Name',
22152
+ name: 'name',
22153
+ type: 'string',
22154
+ default: '',
22155
+ description: 'Display name',
22156
+ required: false,
22157
+ displayOptions: {
22158
+ show: {
22159
+ resource: ['service-plans-lines'],
22160
+ operation: ['PublicServiceLineController_patch'],
22161
+ },
22162
+ },
22163
+ routing: {
22164
+ send: {
22165
+ type: 'body',
22166
+ property: 'name',
22167
+ },
22168
+ },
22169
+ },
22170
+ {
22171
+ displayName: 'Description',
22172
+ name: 'description',
22173
+ type: 'string',
22174
+ default: '',
22175
+ description: 'Detailed description',
22176
+ required: false,
22177
+ displayOptions: {
22178
+ show: {
22179
+ resource: ['service-plans-lines'],
22180
+ operation: ['PublicServiceLineController_patch'],
22181
+ },
22182
+ },
22183
+ routing: {
22184
+ send: {
22185
+ type: 'body',
22186
+ property: 'description',
22187
+ },
22188
+ },
22189
+ },
22190
+ {
22191
+ displayName: 'Work Category Id',
22192
+ name: 'workCategoryId',
22193
+ type: 'options',
22194
+ default: '',
22195
+ description: 'Work category ID — use /settings/work-types to look up',
22196
+ required: false,
22197
+ displayOptions: {
22198
+ show: {
22199
+ resource: ['service-plans-lines'],
22200
+ operation: ['PublicServiceLineController_patch'],
22201
+ },
22202
+ },
22203
+ typeOptions: {
22204
+ loadOptionsMethod: 'loadWorkTypeOptions',
22205
+ },
22206
+ routing: {
22207
+ send: {
22208
+ type: 'body',
22209
+ property: 'workCategoryId',
22210
+ },
22211
+ },
22212
+ },
22213
+ {
22214
+ displayName: 'Date Start',
22215
+ name: 'dateStart',
22216
+ type: 'string',
22217
+ default: '',
22218
+ description: '',
22219
+ required: false,
22220
+ displayOptions: {
22221
+ show: {
22222
+ resource: ['service-plans-lines'],
22223
+ operation: ['PublicServiceLineController_patch'],
22224
+ },
22225
+ },
22226
+ routing: {
22227
+ send: {
22228
+ type: 'body',
22229
+ property: 'dateStart',
22230
+ },
22231
+ },
22232
+ },
22233
+ {
22234
+ displayName: 'Date End',
22235
+ name: 'dateEnd',
22236
+ type: 'string',
22237
+ default: '',
22238
+ description: '',
22239
+ required: false,
22240
+ displayOptions: {
22241
+ show: {
22242
+ resource: ['service-plans-lines'],
22243
+ operation: ['PublicServiceLineController_patch'],
22244
+ },
22245
+ },
22246
+ routing: {
22247
+ send: {
22248
+ type: 'body',
22249
+ property: 'dateEnd',
22250
+ },
22251
+ },
22252
+ },
22253
+ {
22254
+ displayName: 'Default Window',
22255
+ name: 'defaultWindow',
22256
+ type: 'collection',
22257
+ default: {},
22258
+ placeholder: 'Add Default Window',
22259
+ description: '',
22260
+ required: false,
22261
+ displayOptions: {
22262
+ show: {
22263
+ resource: ['service-plans-lines'],
22264
+ operation: ['PublicServiceLineController_patch'],
22265
+ },
22266
+ },
22267
+ options: [
22268
+ {
22269
+ displayName: 'Start',
22270
+ name: 'start',
22271
+ type: 'string',
22272
+ default: '',
22273
+ description: '',
22274
+ },
22275
+ {
22276
+ displayName: 'End',
22277
+ name: 'end',
22278
+ type: 'string',
22279
+ default: '',
22280
+ description: '',
22281
+ },
22282
+ {
22283
+ displayName: 'Overnight',
22284
+ name: 'overnight',
22285
+ type: 'boolean',
22286
+ default: false,
22287
+ description: '',
22288
+ },
22289
+ ],
22290
+ routing: {
22291
+ send: {
22292
+ type: 'body',
22293
+ property: 'defaultWindow',
22294
+ },
22295
+ },
22296
+ },
22297
+ {
22298
+ displayName: 'Working Days',
22299
+ name: 'workingDays',
22300
+ type: 'multiOptions',
22301
+ default: '',
22302
+ description: '',
22303
+ required: false,
22304
+ displayOptions: {
22305
+ show: {
22306
+ resource: ['service-plans-lines'],
22307
+ operation: ['PublicServiceLineController_patch'],
22308
+ },
22309
+ },
22310
+ options: [
22311
+ {
22312
+ name: 'Mon',
22313
+ value: 'Mon',
22314
+ },
22315
+ {
22316
+ name: 'Tue',
22317
+ value: 'Tue',
22318
+ },
22319
+ {
22320
+ name: 'Wed',
22321
+ value: 'Wed',
22322
+ },
22323
+ {
22324
+ name: 'Thu',
22325
+ value: 'Thu',
22326
+ },
22327
+ {
22328
+ name: 'Fri',
22329
+ value: 'Fri',
22330
+ },
22331
+ {
22332
+ name: 'Sat',
22333
+ value: 'Sat',
22334
+ },
22335
+ {
22336
+ name: 'Sun',
22337
+ value: 'Sun',
22338
+ },
22339
+ ],
22340
+ routing: {
22341
+ send: {
22342
+ type: 'body',
22343
+ property: 'workingDays',
22344
+ },
22345
+ },
22346
+ },
22347
+ {
22348
+ displayName: 'Job Defaults',
22349
+ name: 'jobDefaults',
22350
+ type: 'collection',
22351
+ default: {},
22352
+ placeholder: 'Add Job Defaults',
22353
+ description: '',
22354
+ required: false,
22355
+ displayOptions: {
22356
+ show: {
22357
+ resource: ['service-plans-lines'],
22358
+ operation: ['PublicServiceLineController_patch'],
22359
+ },
22360
+ },
22361
+ options: [
22362
+ {
22363
+ displayName: 'Name',
22364
+ name: 'name',
22365
+ type: 'string',
22366
+ default: '',
22367
+ description: 'Display name',
22368
+ },
22369
+ {
22370
+ displayName: 'Description',
22371
+ name: 'description',
22372
+ type: 'string',
22373
+ default: '',
22374
+ description: 'Detailed description',
22375
+ },
22376
+ {
22377
+ displayName: 'Duration',
22378
+ name: 'duration',
22379
+ type: 'number',
22380
+ default: 0,
22381
+ description: '',
22382
+ },
22383
+ {
22384
+ displayName: 'Priority Id',
22385
+ name: 'priorityId',
22386
+ type: 'string',
22387
+ default: '',
22388
+ description: 'Priority ID — use /settings/priorities to look up',
22389
+ },
22390
+ {
22391
+ displayName: 'Type Id',
22392
+ name: 'typeId',
22393
+ type: 'string',
22394
+ default: '',
22395
+ description: 'Job type ID — use /settings/job-types to look up',
22396
+ },
22397
+ {
22398
+ displayName: 'Tag Ids',
22399
+ name: 'tagIds',
22400
+ type: 'string',
22401
+ default: '',
22402
+ description: 'Array of tag IDs (comma-separated, e.g. "id1,id2") — use /settings/tags to look up',
22403
+ typeOptions: {
22404
+ multipleValues: true,
22405
+ },
22406
+ },
22407
+ {
22408
+ displayName: 'Owner Id',
22409
+ name: 'ownerId',
22410
+ type: 'string',
22411
+ default: '',
22412
+ description: 'Owner (employee) ID — use /crm/employees to look up',
22413
+ },
22414
+ {
22415
+ displayName: 'Field Supervisor Id',
22416
+ name: 'fieldSupervisorId',
22417
+ type: 'string',
22418
+ default: '',
22419
+ description: 'Field supervisor (employee) ID — use /crm/employees to look up',
22420
+ },
22421
+ {
22422
+ displayName: 'Price Book Id',
22423
+ name: 'priceBookId',
22424
+ type: 'string',
22425
+ default: '',
22426
+ description: 'Price book ID for job pricing',
22427
+ },
22428
+ ],
22429
+ routing: {
22430
+ send: {
22431
+ type: 'body',
22432
+ property: 'jobDefaults',
22433
+ },
22434
+ },
22435
+ },
22436
+ // Service Plans Lines Tasks Operations
22437
+ {
22438
+ displayName: 'Operation',
22439
+ name: 'operation',
22440
+ type: 'options',
22441
+ noDataExpression: true,
22442
+ displayOptions: {
22443
+ show: {
22444
+ resource: ['service-plans-lines-tasks'],
22445
+ },
22446
+ },
22447
+ options: [
22448
+ {
22449
+ name: 'List root Service Line Tasks',
22450
+ value: 'PublicServiceLineTaskController_list',
22451
+ action: '',
22452
+ description: '',
22453
+ routing: {
22454
+ request: {
22455
+ method: 'GET',
22456
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks',
22457
+ },
22458
+ },
22459
+ },
22460
+ {
22461
+ name: 'Create root Service Line Tasks',
22462
+ value: 'PublicServiceLineTaskController_create',
22463
+ action: 'Pass one Task, or `{ items }` with 1–100 Tasks. Bulk ingest is a bounded domain command — not N public creates — and returns per-item created, existing, conflict, and invalid outcomes.',
22464
+ description: 'Pass one Task, or `{ items }` with 1–100 Tasks. Bulk ingest is a bounded domain command — not N public creates — and returns per-item created, existing, conflict, and invalid outcomes.',
22465
+ routing: {
22466
+ request: {
22467
+ method: 'POST',
22468
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks',
22469
+ },
22470
+ },
22471
+ },
22472
+ {
22473
+ name: 'Get a root Service Line Task',
22474
+ value: 'PublicServiceLineTaskController_get',
22475
+ action: '',
22476
+ description: '',
22477
+ routing: {
22478
+ request: {
22479
+ method: 'GET',
22480
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["identifier"] }}',
22481
+ },
22482
+ },
22483
+ },
22484
+ {
22485
+ name: 'Update a root Service Line Task',
22486
+ value: 'PublicServiceLineTaskController_patch',
22487
+ action: '',
22488
+ description: '',
22489
+ routing: {
22490
+ request: {
22491
+ method: 'PATCH',
22492
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["identifier"] }}',
22493
+ },
22494
+ },
22495
+ },
22496
+ ],
22497
+ default: 'PublicServiceLineTaskController_list',
22498
+ },
22499
+ {
22500
+ displayName: 'Plan Id',
22501
+ name: 'planId',
22502
+ type: 'string',
22503
+ default: '',
22504
+ description: 'WorkBuddy Service Plan ID',
22505
+ required: true,
22506
+ displayOptions: {
22507
+ show: {
22508
+ resource: ['service-plans-lines-tasks'],
22509
+ operation: ['PublicServiceLineTaskController_list'],
22510
+ },
22511
+ },
22512
+ },
22513
+ {
22514
+ displayName: 'Line Id',
22515
+ name: 'lineId',
22516
+ type: 'string',
22517
+ default: '',
22518
+ description: 'WorkBuddy Service Line ID or caller integrationId',
22519
+ required: true,
22520
+ displayOptions: {
22521
+ show: {
22522
+ resource: ['service-plans-lines-tasks'],
22523
+ operation: ['PublicServiceLineTaskController_list'],
22524
+ },
22525
+ },
22526
+ },
22527
+ {
22528
+ displayName: 'Plan Id',
22529
+ name: 'planId',
22530
+ type: 'string',
22531
+ default: '',
22532
+ description: 'plan ID',
22533
+ required: true,
22534
+ displayOptions: {
22535
+ show: {
22536
+ resource: ['service-plans-lines-tasks'],
22537
+ operation: ['PublicServiceLineTaskController_create'],
22538
+ },
22539
+ },
22540
+ },
22541
+ {
22542
+ displayName: 'Line Id',
22543
+ name: 'lineId',
22544
+ type: 'string',
22545
+ default: '',
22546
+ description: 'line ID',
22547
+ required: true,
22548
+ displayOptions: {
22549
+ show: {
22550
+ resource: ['service-plans-lines-tasks'],
22551
+ operation: ['PublicServiceLineTaskController_create'],
22552
+ },
22553
+ },
22554
+ },
22555
+ {
22556
+ displayName: 'Items',
22557
+ name: 'items',
22558
+ type: 'json',
22559
+ default: {},
22560
+ description: '',
22561
+ required: true,
22562
+ displayOptions: {
22563
+ show: {
22564
+ resource: ['service-plans-lines-tasks'],
22565
+ operation: ['PublicServiceLineTaskController_create'],
22566
+ },
22567
+ },
22568
+ routing: {
22569
+ send: {
22570
+ type: 'body',
22571
+ property: 'items',
22572
+ },
22573
+ },
22574
+ },
22575
+ {
22576
+ displayName: 'Plan Id',
22577
+ name: 'planId',
22578
+ type: 'string',
22579
+ default: '',
22580
+ description: 'plan ID',
22581
+ required: true,
22582
+ displayOptions: {
22583
+ show: {
22584
+ resource: ['service-plans-lines-tasks'],
22585
+ operation: ['PublicServiceLineTaskController_get'],
22586
+ },
22587
+ },
22588
+ },
22589
+ {
22590
+ displayName: 'Line Id',
22591
+ name: 'lineId',
22592
+ type: 'string',
22593
+ default: '',
22594
+ description: 'line ID',
22595
+ required: true,
22596
+ displayOptions: {
22597
+ show: {
22598
+ resource: ['service-plans-lines-tasks'],
22599
+ operation: ['PublicServiceLineTaskController_get'],
22600
+ },
22601
+ },
22602
+ },
22603
+ {
22604
+ displayName: 'Identifier',
22605
+ name: 'identifier',
22606
+ type: 'string',
22607
+ default: '',
22608
+ description: 'WorkBuddy Task ID or caller integrationId',
22609
+ required: true,
22610
+ displayOptions: {
22611
+ show: {
22612
+ resource: ['service-plans-lines-tasks'],
22613
+ operation: ['PublicServiceLineTaskController_get'],
22614
+ },
22615
+ },
22616
+ },
22617
+ {
22618
+ displayName: 'Plan Id',
22619
+ name: 'planId',
22620
+ type: 'string',
22621
+ default: '',
22622
+ description: 'plan ID',
22623
+ required: true,
22624
+ displayOptions: {
22625
+ show: {
22626
+ resource: ['service-plans-lines-tasks'],
22627
+ operation: ['PublicServiceLineTaskController_patch'],
22628
+ },
22629
+ },
22630
+ },
22631
+ {
22632
+ displayName: 'Line Id',
22633
+ name: 'lineId',
22634
+ type: 'string',
22635
+ default: '',
22636
+ description: 'line ID',
22637
+ required: true,
22638
+ displayOptions: {
22639
+ show: {
22640
+ resource: ['service-plans-lines-tasks'],
22641
+ operation: ['PublicServiceLineTaskController_patch'],
22642
+ },
22643
+ },
22644
+ },
22645
+ {
22646
+ displayName: 'Identifier',
22647
+ name: 'identifier',
22648
+ type: 'string',
22649
+ default: '',
22650
+ description: 'Entity ID or human-readable number',
22651
+ required: true,
22652
+ displayOptions: {
22653
+ show: {
22654
+ resource: ['service-plans-lines-tasks'],
22655
+ operation: ['PublicServiceLineTaskController_patch'],
22656
+ },
22657
+ },
22658
+ },
22659
+ {
22660
+ displayName: 'Name',
22661
+ name: 'name',
22662
+ type: 'string',
22663
+ default: '',
22664
+ description: 'Display name',
22665
+ required: false,
22666
+ displayOptions: {
22667
+ show: {
22668
+ resource: ['service-plans-lines-tasks'],
22669
+ operation: ['PublicServiceLineTaskController_patch'],
22670
+ },
22671
+ },
22672
+ routing: {
22673
+ send: {
22674
+ type: 'body',
22675
+ property: 'name',
22676
+ },
22677
+ },
22678
+ },
22679
+ {
22680
+ displayName: 'Description',
22681
+ name: 'description',
22682
+ type: 'string',
22683
+ default: '',
22684
+ description: 'Detailed description',
22685
+ required: false,
22686
+ displayOptions: {
22687
+ show: {
22688
+ resource: ['service-plans-lines-tasks'],
22689
+ operation: ['PublicServiceLineTaskController_patch'],
22690
+ },
22691
+ },
22692
+ routing: {
22693
+ send: {
22694
+ type: 'body',
22695
+ property: 'description',
22696
+ },
22697
+ },
22698
+ },
22699
+ {
22700
+ displayName: 'Starts On',
22701
+ name: 'startsOn',
22702
+ type: 'string',
22703
+ default: '',
22704
+ description: '',
22705
+ required: false,
22706
+ displayOptions: {
22707
+ show: {
22708
+ resource: ['service-plans-lines-tasks'],
22709
+ operation: ['PublicServiceLineTaskController_patch'],
22710
+ },
22711
+ },
22712
+ routing: {
22713
+ send: {
22714
+ type: 'body',
22715
+ property: 'startsOn',
22716
+ },
22717
+ },
22718
+ },
22719
+ {
22720
+ displayName: 'Schedule',
22721
+ name: 'schedule',
22722
+ type: 'string',
22723
+ default: '',
22724
+ description: '',
22725
+ required: false,
22726
+ displayOptions: {
22727
+ show: {
22728
+ resource: ['service-plans-lines-tasks'],
22729
+ operation: ['PublicServiceLineTaskController_patch'],
22730
+ },
22731
+ },
22732
+ routing: {
22733
+ send: {
22734
+ type: 'body',
22735
+ property: 'schedule',
22736
+ },
22737
+ },
22738
+ },
22739
+ {
22740
+ displayName: 'Exceptions',
22741
+ name: 'exceptions',
22742
+ type: 'json',
22743
+ default: {},
22744
+ description: '',
22745
+ required: false,
22746
+ displayOptions: {
22747
+ show: {
22748
+ resource: ['service-plans-lines-tasks'],
22749
+ operation: ['PublicServiceLineTaskController_patch'],
22750
+ },
22751
+ },
22752
+ routing: {
22753
+ send: {
22754
+ type: 'body',
22755
+ property: 'exceptions',
22756
+ },
22757
+ },
22758
+ },
22759
+ {
22760
+ displayName: 'Mandatory',
22761
+ name: 'mandatory',
22762
+ type: 'boolean',
22763
+ default: false,
22764
+ description: '',
22765
+ required: false,
22766
+ displayOptions: {
22767
+ show: {
22768
+ resource: ['service-plans-lines-tasks'],
22769
+ operation: ['PublicServiceLineTaskController_patch'],
22770
+ },
22771
+ },
22772
+ routing: {
22773
+ send: {
22774
+ type: 'body',
22775
+ property: 'mandatory',
22776
+ },
22777
+ },
22778
+ },
22779
+ {
22780
+ displayName: 'Signature Enabled',
22781
+ name: 'signatureEnabled',
22782
+ type: 'boolean',
22783
+ default: false,
22784
+ description: '',
22785
+ required: false,
22786
+ displayOptions: {
22787
+ show: {
22788
+ resource: ['service-plans-lines-tasks'],
22789
+ operation: ['PublicServiceLineTaskController_patch'],
22790
+ },
22791
+ },
22792
+ routing: {
22793
+ send: {
22794
+ type: 'body',
22795
+ property: 'signatureEnabled',
22796
+ },
22797
+ },
22798
+ },
22799
+ {
22800
+ displayName: 'Comment Enabled',
22801
+ name: 'commentEnabled',
22802
+ type: 'boolean',
22803
+ default: false,
22804
+ description: '',
22805
+ required: false,
22806
+ displayOptions: {
22807
+ show: {
22808
+ resource: ['service-plans-lines-tasks'],
22809
+ operation: ['PublicServiceLineTaskController_patch'],
22810
+ },
22811
+ },
22812
+ routing: {
22813
+ send: {
22814
+ type: 'body',
22815
+ property: 'commentEnabled',
22816
+ },
22817
+ },
22818
+ },
22819
+ {
22820
+ displayName: 'Before Photo Enabled',
22821
+ name: 'beforePhotoEnabled',
22822
+ type: 'boolean',
22823
+ default: false,
22824
+ description: '',
22825
+ required: false,
22826
+ displayOptions: {
22827
+ show: {
22828
+ resource: ['service-plans-lines-tasks'],
22829
+ operation: ['PublicServiceLineTaskController_patch'],
22830
+ },
22831
+ },
22832
+ routing: {
22833
+ send: {
22834
+ type: 'body',
22835
+ property: 'beforePhotoEnabled',
22836
+ },
22837
+ },
22838
+ },
22839
+ {
22840
+ displayName: 'During Photo Enabled',
22841
+ name: 'duringPhotoEnabled',
22842
+ type: 'boolean',
22843
+ default: false,
22844
+ description: '',
22845
+ required: false,
22846
+ displayOptions: {
22847
+ show: {
22848
+ resource: ['service-plans-lines-tasks'],
22849
+ operation: ['PublicServiceLineTaskController_patch'],
22850
+ },
22851
+ },
22852
+ routing: {
22853
+ send: {
22854
+ type: 'body',
22855
+ property: 'duringPhotoEnabled',
22856
+ },
22857
+ },
22858
+ },
22859
+ {
22860
+ displayName: 'After Photo Enabled',
22861
+ name: 'afterPhotoEnabled',
22862
+ type: 'boolean',
22863
+ default: false,
22864
+ description: '',
22865
+ required: false,
22866
+ displayOptions: {
22867
+ show: {
22868
+ resource: ['service-plans-lines-tasks'],
22869
+ operation: ['PublicServiceLineTaskController_patch'],
22870
+ },
22871
+ },
22872
+ routing: {
22873
+ send: {
22874
+ type: 'body',
22875
+ property: 'afterPhotoEnabled',
22876
+ },
22877
+ },
22878
+ },
22879
+ {
22880
+ displayName: 'File Enabled',
22881
+ name: 'fileEnabled',
22882
+ type: 'boolean',
22883
+ default: false,
22884
+ description: '',
22885
+ required: false,
22886
+ displayOptions: {
22887
+ show: {
22888
+ resource: ['service-plans-lines-tasks'],
22889
+ operation: ['PublicServiceLineTaskController_patch'],
22890
+ },
22891
+ },
22892
+ routing: {
22893
+ send: {
22894
+ type: 'body',
22895
+ property: 'fileEnabled',
22896
+ },
22897
+ },
22898
+ },
22899
+ {
22900
+ displayName: 'File Template Id',
22901
+ name: 'fileTemplateId',
22902
+ type: 'string',
22903
+ default: '',
22904
+ description: 'file template ID',
22905
+ required: false,
22906
+ displayOptions: {
22907
+ show: {
22908
+ resource: ['service-plans-lines-tasks'],
22909
+ operation: ['PublicServiceLineTaskController_patch'],
22910
+ },
22911
+ },
22912
+ routing: {
22913
+ send: {
22914
+ type: 'body',
22915
+ property: 'fileTemplateId',
22916
+ },
22917
+ },
22918
+ },
22919
+ {
22920
+ displayName: 'Form Enabled',
22921
+ name: 'formEnabled',
22922
+ type: 'boolean',
22923
+ default: false,
22924
+ description: '',
22925
+ required: false,
22926
+ displayOptions: {
22927
+ show: {
22928
+ resource: ['service-plans-lines-tasks'],
22929
+ operation: ['PublicServiceLineTaskController_patch'],
22930
+ },
22931
+ },
22932
+ routing: {
22933
+ send: {
22934
+ type: 'body',
22935
+ property: 'formEnabled',
22936
+ },
22937
+ },
22938
+ },
22939
+ {
22940
+ displayName: 'Form Template Id',
22941
+ name: 'formTemplateId',
22942
+ type: 'string',
22943
+ default: '',
22944
+ description: 'form template ID',
22945
+ required: false,
22946
+ displayOptions: {
22947
+ show: {
22948
+ resource: ['service-plans-lines-tasks'],
22949
+ operation: ['PublicServiceLineTaskController_patch'],
22950
+ },
22951
+ },
22952
+ routing: {
22953
+ send: {
22954
+ type: 'body',
22955
+ property: 'formTemplateId',
22956
+ },
22957
+ },
22958
+ },
22959
+ // Service Plans Lines Tasks Subtasks Operations
22960
+ {
22961
+ displayName: 'Operation',
22962
+ name: 'operation',
22963
+ type: 'options',
22964
+ noDataExpression: true,
22965
+ displayOptions: {
22966
+ show: {
22967
+ resource: ['service-plans-lines-tasks-subtasks'],
22968
+ },
22969
+ },
22970
+ options: [
22971
+ {
22972
+ name: 'List Subtasks',
22973
+ value: 'PublicServiceLineSubtaskController_list',
22974
+ action: '',
22975
+ description: '',
22976
+ routing: {
22977
+ request: {
22978
+ method: 'GET',
22979
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["taskId"] }}/subtasks',
22980
+ },
22981
+ },
22982
+ },
22983
+ {
22984
+ name: 'Create Subtasks',
22985
+ value: 'PublicServiceLineSubtaskController_create',
22986
+ action: 'Pass one Subtask, or `{ items }` with 1–100 Subtasks. Bounded domain ingest — not N public creates. Schedule and start-date fields are rejected.',
22987
+ description: 'Pass one Subtask, or `{ items }` with 1–100 Subtasks. Bounded domain ingest — not N public creates. Schedule and start-date fields are rejected.',
22988
+ routing: {
22989
+ request: {
22990
+ method: 'POST',
22991
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["taskId"] }}/subtasks',
22992
+ },
22993
+ },
22994
+ },
22995
+ {
22996
+ name: 'Get a Subtask',
22997
+ value: 'PublicServiceLineSubtaskController_get',
22998
+ action: '',
22999
+ description: '',
23000
+ routing: {
23001
+ request: {
23002
+ method: 'GET',
23003
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["taskId"] }}/subtasks/={{ $parameter["identifier"] }}',
23004
+ },
23005
+ },
23006
+ },
23007
+ {
23008
+ name: 'Update a Subtask',
23009
+ value: 'PublicServiceLineSubtaskController_patch',
23010
+ action: '',
23011
+ description: '',
23012
+ routing: {
23013
+ request: {
23014
+ method: 'PATCH',
23015
+ url: '/api/v2/public/service-plans/={{ $parameter["planId"] }}/lines/={{ $parameter["lineId"] }}/tasks/={{ $parameter["taskId"] }}/subtasks/={{ $parameter["identifier"] }}',
23016
+ },
23017
+ },
23018
+ },
23019
+ ],
23020
+ default: 'PublicServiceLineSubtaskController_list',
23021
+ },
23022
+ {
23023
+ displayName: 'Plan Id',
23024
+ name: 'planId',
23025
+ type: 'string',
23026
+ default: '',
23027
+ description: 'WorkBuddy Service Plan ID',
23028
+ required: true,
23029
+ displayOptions: {
23030
+ show: {
23031
+ resource: ['service-plans-lines-tasks-subtasks'],
23032
+ operation: ['PublicServiceLineSubtaskController_list'],
23033
+ },
23034
+ },
23035
+ },
23036
+ {
23037
+ displayName: 'Line Id',
23038
+ name: 'lineId',
23039
+ type: 'string',
23040
+ default: '',
23041
+ description: 'WorkBuddy Service Line ID or caller integrationId',
23042
+ required: true,
23043
+ displayOptions: {
23044
+ show: {
23045
+ resource: ['service-plans-lines-tasks-subtasks'],
23046
+ operation: ['PublicServiceLineSubtaskController_list'],
23047
+ },
23048
+ },
23049
+ },
23050
+ {
23051
+ displayName: 'Task Id',
23052
+ name: 'taskId',
23053
+ type: 'string',
23054
+ default: '',
23055
+ description: 'WorkBuddy root Task ID or caller integrationId',
23056
+ required: true,
23057
+ displayOptions: {
23058
+ show: {
23059
+ resource: ['service-plans-lines-tasks-subtasks'],
23060
+ operation: ['PublicServiceLineSubtaskController_list'],
23061
+ },
23062
+ },
23063
+ },
23064
+ {
23065
+ displayName: 'Plan Id',
23066
+ name: 'planId',
23067
+ type: 'string',
23068
+ default: '',
23069
+ description: 'plan ID',
23070
+ required: true,
23071
+ displayOptions: {
23072
+ show: {
23073
+ resource: ['service-plans-lines-tasks-subtasks'],
23074
+ operation: ['PublicServiceLineSubtaskController_create'],
23075
+ },
23076
+ },
23077
+ },
23078
+ {
23079
+ displayName: 'Line Id',
23080
+ name: 'lineId',
23081
+ type: 'string',
23082
+ default: '',
23083
+ description: 'line ID',
23084
+ required: true,
23085
+ displayOptions: {
23086
+ show: {
23087
+ resource: ['service-plans-lines-tasks-subtasks'],
23088
+ operation: ['PublicServiceLineSubtaskController_create'],
23089
+ },
23090
+ },
23091
+ },
23092
+ {
23093
+ displayName: 'Task Id',
23094
+ name: 'taskId',
23095
+ type: 'string',
23096
+ default: '',
23097
+ description: 'task ID',
23098
+ required: true,
23099
+ displayOptions: {
23100
+ show: {
23101
+ resource: ['service-plans-lines-tasks-subtasks'],
23102
+ operation: ['PublicServiceLineSubtaskController_create'],
23103
+ },
23104
+ },
23105
+ },
23106
+ {
23107
+ displayName: 'Items',
23108
+ name: 'items',
23109
+ type: 'json',
23110
+ default: {},
23111
+ description: '',
23112
+ required: true,
23113
+ displayOptions: {
23114
+ show: {
23115
+ resource: ['service-plans-lines-tasks-subtasks'],
23116
+ operation: ['PublicServiceLineSubtaskController_create'],
23117
+ },
23118
+ },
23119
+ routing: {
23120
+ send: {
23121
+ type: 'body',
23122
+ property: 'items',
23123
+ },
23124
+ },
23125
+ },
23126
+ {
23127
+ displayName: 'Plan Id',
23128
+ name: 'planId',
23129
+ type: 'string',
23130
+ default: '',
23131
+ description: 'plan ID',
23132
+ required: true,
23133
+ displayOptions: {
23134
+ show: {
23135
+ resource: ['service-plans-lines-tasks-subtasks'],
23136
+ operation: ['PublicServiceLineSubtaskController_get'],
23137
+ },
23138
+ },
23139
+ },
23140
+ {
23141
+ displayName: 'Line Id',
23142
+ name: 'lineId',
23143
+ type: 'string',
23144
+ default: '',
23145
+ description: 'line ID',
23146
+ required: true,
23147
+ displayOptions: {
23148
+ show: {
23149
+ resource: ['service-plans-lines-tasks-subtasks'],
23150
+ operation: ['PublicServiceLineSubtaskController_get'],
23151
+ },
23152
+ },
23153
+ },
23154
+ {
23155
+ displayName: 'Task Id',
23156
+ name: 'taskId',
23157
+ type: 'string',
23158
+ default: '',
23159
+ description: 'task ID',
23160
+ required: true,
23161
+ displayOptions: {
23162
+ show: {
23163
+ resource: ['service-plans-lines-tasks-subtasks'],
23164
+ operation: ['PublicServiceLineSubtaskController_get'],
23165
+ },
23166
+ },
23167
+ },
23168
+ {
23169
+ displayName: 'Identifier',
23170
+ name: 'identifier',
23171
+ type: 'string',
23172
+ default: '',
23173
+ description: 'WorkBuddy Subtask ID or caller integrationId',
23174
+ required: true,
23175
+ displayOptions: {
23176
+ show: {
23177
+ resource: ['service-plans-lines-tasks-subtasks'],
23178
+ operation: ['PublicServiceLineSubtaskController_get'],
23179
+ },
23180
+ },
23181
+ },
23182
+ {
23183
+ displayName: 'Plan Id',
23184
+ name: 'planId',
23185
+ type: 'string',
23186
+ default: '',
23187
+ description: 'plan ID',
23188
+ required: true,
23189
+ displayOptions: {
23190
+ show: {
23191
+ resource: ['service-plans-lines-tasks-subtasks'],
23192
+ operation: ['PublicServiceLineSubtaskController_patch'],
23193
+ },
23194
+ },
23195
+ },
23196
+ {
23197
+ displayName: 'Line Id',
23198
+ name: 'lineId',
23199
+ type: 'string',
23200
+ default: '',
23201
+ description: 'line ID',
23202
+ required: true,
23203
+ displayOptions: {
23204
+ show: {
23205
+ resource: ['service-plans-lines-tasks-subtasks'],
23206
+ operation: ['PublicServiceLineSubtaskController_patch'],
23207
+ },
23208
+ },
23209
+ },
23210
+ {
23211
+ displayName: 'Task Id',
23212
+ name: 'taskId',
23213
+ type: 'string',
23214
+ default: '',
23215
+ description: 'task ID',
23216
+ required: true,
23217
+ displayOptions: {
23218
+ show: {
23219
+ resource: ['service-plans-lines-tasks-subtasks'],
23220
+ operation: ['PublicServiceLineSubtaskController_patch'],
23221
+ },
23222
+ },
23223
+ },
23224
+ {
23225
+ displayName: 'Identifier',
23226
+ name: 'identifier',
23227
+ type: 'string',
23228
+ default: '',
23229
+ description: 'Entity ID or human-readable number',
23230
+ required: true,
23231
+ displayOptions: {
23232
+ show: {
23233
+ resource: ['service-plans-lines-tasks-subtasks'],
23234
+ operation: ['PublicServiceLineSubtaskController_patch'],
23235
+ },
23236
+ },
23237
+ },
23238
+ {
23239
+ displayName: 'Name',
23240
+ name: 'name',
23241
+ type: 'string',
23242
+ default: '',
23243
+ description: 'Display name',
23244
+ required: false,
23245
+ displayOptions: {
23246
+ show: {
23247
+ resource: ['service-plans-lines-tasks-subtasks'],
23248
+ operation: ['PublicServiceLineSubtaskController_patch'],
23249
+ },
23250
+ },
23251
+ routing: {
23252
+ send: {
23253
+ type: 'body',
23254
+ property: 'name',
23255
+ },
23256
+ },
23257
+ },
23258
+ {
23259
+ displayName: 'Description',
23260
+ name: 'description',
23261
+ type: 'string',
23262
+ default: '',
23263
+ description: 'Detailed description',
23264
+ required: false,
23265
+ displayOptions: {
23266
+ show: {
23267
+ resource: ['service-plans-lines-tasks-subtasks'],
23268
+ operation: ['PublicServiceLineSubtaskController_patch'],
23269
+ },
23270
+ },
23271
+ routing: {
23272
+ send: {
23273
+ type: 'body',
23274
+ property: 'description',
23275
+ },
23276
+ },
23277
+ },
23278
+ {
23279
+ displayName: 'Mandatory',
23280
+ name: 'mandatory',
23281
+ type: 'boolean',
23282
+ default: false,
23283
+ description: '',
23284
+ required: false,
23285
+ displayOptions: {
23286
+ show: {
23287
+ resource: ['service-plans-lines-tasks-subtasks'],
23288
+ operation: ['PublicServiceLineSubtaskController_patch'],
23289
+ },
23290
+ },
23291
+ routing: {
23292
+ send: {
23293
+ type: 'body',
23294
+ property: 'mandatory',
23295
+ },
23296
+ },
23297
+ },
23298
+ {
23299
+ displayName: 'Signature Enabled',
23300
+ name: 'signatureEnabled',
23301
+ type: 'boolean',
23302
+ default: false,
23303
+ description: '',
23304
+ required: false,
23305
+ displayOptions: {
23306
+ show: {
23307
+ resource: ['service-plans-lines-tasks-subtasks'],
23308
+ operation: ['PublicServiceLineSubtaskController_patch'],
23309
+ },
23310
+ },
23311
+ routing: {
23312
+ send: {
23313
+ type: 'body',
23314
+ property: 'signatureEnabled',
23315
+ },
23316
+ },
23317
+ },
23318
+ {
23319
+ displayName: 'Comment Enabled',
23320
+ name: 'commentEnabled',
23321
+ type: 'boolean',
23322
+ default: false,
23323
+ description: '',
23324
+ required: false,
23325
+ displayOptions: {
23326
+ show: {
23327
+ resource: ['service-plans-lines-tasks-subtasks'],
23328
+ operation: ['PublicServiceLineSubtaskController_patch'],
23329
+ },
23330
+ },
23331
+ routing: {
23332
+ send: {
23333
+ type: 'body',
23334
+ property: 'commentEnabled',
23335
+ },
23336
+ },
23337
+ },
23338
+ {
23339
+ displayName: 'Before Photo Enabled',
23340
+ name: 'beforePhotoEnabled',
23341
+ type: 'boolean',
23342
+ default: false,
23343
+ description: '',
23344
+ required: false,
23345
+ displayOptions: {
23346
+ show: {
23347
+ resource: ['service-plans-lines-tasks-subtasks'],
23348
+ operation: ['PublicServiceLineSubtaskController_patch'],
23349
+ },
23350
+ },
23351
+ routing: {
23352
+ send: {
23353
+ type: 'body',
23354
+ property: 'beforePhotoEnabled',
23355
+ },
23356
+ },
23357
+ },
23358
+ {
23359
+ displayName: 'During Photo Enabled',
23360
+ name: 'duringPhotoEnabled',
23361
+ type: 'boolean',
23362
+ default: false,
23363
+ description: '',
23364
+ required: false,
23365
+ displayOptions: {
23366
+ show: {
23367
+ resource: ['service-plans-lines-tasks-subtasks'],
23368
+ operation: ['PublicServiceLineSubtaskController_patch'],
23369
+ },
23370
+ },
23371
+ routing: {
23372
+ send: {
23373
+ type: 'body',
23374
+ property: 'duringPhotoEnabled',
23375
+ },
23376
+ },
23377
+ },
23378
+ {
23379
+ displayName: 'After Photo Enabled',
23380
+ name: 'afterPhotoEnabled',
23381
+ type: 'boolean',
23382
+ default: false,
23383
+ description: '',
23384
+ required: false,
23385
+ displayOptions: {
23386
+ show: {
23387
+ resource: ['service-plans-lines-tasks-subtasks'],
23388
+ operation: ['PublicServiceLineSubtaskController_patch'],
23389
+ },
23390
+ },
23391
+ routing: {
23392
+ send: {
23393
+ type: 'body',
23394
+ property: 'afterPhotoEnabled',
23395
+ },
23396
+ },
23397
+ },
23398
+ {
23399
+ displayName: 'File Enabled',
23400
+ name: 'fileEnabled',
23401
+ type: 'boolean',
23402
+ default: false,
23403
+ description: '',
23404
+ required: false,
23405
+ displayOptions: {
23406
+ show: {
23407
+ resource: ['service-plans-lines-tasks-subtasks'],
23408
+ operation: ['PublicServiceLineSubtaskController_patch'],
23409
+ },
23410
+ },
23411
+ routing: {
23412
+ send: {
23413
+ type: 'body',
23414
+ property: 'fileEnabled',
23415
+ },
23416
+ },
23417
+ },
23418
+ {
23419
+ displayName: 'File Template Id',
23420
+ name: 'fileTemplateId',
23421
+ type: 'string',
23422
+ default: '',
23423
+ description: 'file template ID',
23424
+ required: false,
23425
+ displayOptions: {
23426
+ show: {
23427
+ resource: ['service-plans-lines-tasks-subtasks'],
23428
+ operation: ['PublicServiceLineSubtaskController_patch'],
23429
+ },
23430
+ },
23431
+ routing: {
23432
+ send: {
23433
+ type: 'body',
23434
+ property: 'fileTemplateId',
23435
+ },
23436
+ },
23437
+ },
23438
+ {
23439
+ displayName: 'Form Enabled',
23440
+ name: 'formEnabled',
23441
+ type: 'boolean',
23442
+ default: false,
23443
+ description: '',
23444
+ required: false,
23445
+ displayOptions: {
23446
+ show: {
23447
+ resource: ['service-plans-lines-tasks-subtasks'],
23448
+ operation: ['PublicServiceLineSubtaskController_patch'],
23449
+ },
23450
+ },
23451
+ routing: {
23452
+ send: {
23453
+ type: 'body',
23454
+ property: 'formEnabled',
23455
+ },
23456
+ },
23457
+ },
23458
+ {
23459
+ displayName: 'Form Template Id',
23460
+ name: 'formTemplateId',
23461
+ type: 'string',
23462
+ default: '',
23463
+ description: 'form template ID',
23464
+ required: false,
23465
+ displayOptions: {
23466
+ show: {
23467
+ resource: ['service-plans-lines-tasks-subtasks'],
23468
+ operation: ['PublicServiceLineSubtaskController_patch'],
23469
+ },
23470
+ },
23471
+ routing: {
23472
+ send: {
23473
+ type: 'body',
23474
+ property: 'formTemplateId',
23475
+ },
23476
+ },
23477
+ },
21142
23478
  // Mcp Operations
21143
23479
  {
21144
23480
  displayName: 'Operation',