@workbuddy/n8n-nodes-workbuddy-vnext 1.0.10 → 1.0.12

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.
@@ -117,8 +117,16 @@ class WorkBuddy {
117
117
  value: 'stages-resources',
118
118
  },
119
119
  {
120
- name: 'Settings',
121
- value: 'settings',
120
+ name: 'Settings Reference Data',
121
+ value: 'settings-reference-data',
122
+ },
123
+ {
124
+ name: 'Settings Templates',
125
+ value: 'settings-templates',
126
+ },
127
+ {
128
+ name: 'Settings Items',
129
+ value: 'settings-items',
122
130
  },
123
131
  {
124
132
  name: 'Attachments',
@@ -5544,7 +5552,7 @@ class WorkBuddy {
5544
5552
  },
5545
5553
  },
5546
5554
  },
5547
- // Settings Operations
5555
+ // Settings Reference Data Operations
5548
5556
  {
5549
5557
  displayName: 'Operation',
5550
5558
  name: 'operation',
@@ -5552,7 +5560,7 @@ class WorkBuddy {
5552
5560
  noDataExpression: true,
5553
5561
  displayOptions: {
5554
5562
  show: {
5555
- resource: ['settings'],
5563
+ resource: ['settings-reference-data'],
5556
5564
  },
5557
5565
  },
5558
5566
  options: [
@@ -5652,6 +5660,35 @@ class WorkBuddy {
5652
5660
  },
5653
5661
  },
5654
5662
  },
5663
+ ],
5664
+ default: 'PublicApiEntityStatusController_list',
5665
+ },
5666
+ {
5667
+ displayName: 'Entity',
5668
+ name: 'entity',
5669
+ type: 'string',
5670
+ default: '',
5671
+ description: 'Entity type (customer, contractor, supplier)',
5672
+ required: true,
5673
+ displayOptions: {
5674
+ show: {
5675
+ resource: ['settings-reference-data'],
5676
+ operation: ['PublicApiEntityStatusController_list'],
5677
+ },
5678
+ },
5679
+ },
5680
+ // Settings Templates Operations
5681
+ {
5682
+ displayName: 'Operation',
5683
+ name: 'operation',
5684
+ type: 'options',
5685
+ noDataExpression: true,
5686
+ displayOptions: {
5687
+ show: {
5688
+ resource: ['settings-templates'],
5689
+ },
5690
+ },
5691
+ options: [
5655
5692
  {
5656
5693
  name: 'List email templates for entity type',
5657
5694
  value: 'PublicApiTemplateController_listEmailTemplates',
@@ -5677,21 +5714,31 @@ class WorkBuddy {
5677
5714
  },
5678
5715
  },
5679
5716
  ],
5680
- default: 'PublicApiEntityStatusController_list',
5717
+ default: 'PublicApiTemplateController_listEmailTemplates',
5681
5718
  },
5682
5719
  {
5683
5720
  displayName: 'Entity',
5684
5721
  name: 'entity',
5685
- type: 'string',
5722
+ type: 'options',
5686
5723
  default: '',
5687
- description: 'Entity type (customer, contractor, supplier)',
5724
+ description: 'Entity type',
5688
5725
  required: true,
5689
5726
  displayOptions: {
5690
5727
  show: {
5691
- resource: ['settings'],
5692
- operation: ['PublicApiEntityStatusController_list'],
5728
+ resource: ['settings-templates'],
5729
+ operation: ['PublicApiTemplateController_listEmailTemplates'],
5693
5730
  },
5694
5731
  },
5732
+ options: [
5733
+ {
5734
+ name: 'job',
5735
+ value: 'job',
5736
+ },
5737
+ {
5738
+ name: 'stage',
5739
+ value: 'stage',
5740
+ },
5741
+ ],
5695
5742
  },
5696
5743
  {
5697
5744
  displayName: 'Entity',
@@ -5702,8 +5749,8 @@ class WorkBuddy {
5702
5749
  required: true,
5703
5750
  displayOptions: {
5704
5751
  show: {
5705
- resource: ['settings'],
5706
- operation: ['PublicApiTemplateController_listEmailTemplates'],
5752
+ resource: ['settings-templates'],
5753
+ operation: ['PublicApiTemplateController_listSmsTemplates'],
5707
5754
  },
5708
5755
  },
5709
5756
  options: [
@@ -5717,29 +5764,2350 @@ class WorkBuddy {
5717
5764
  },
5718
5765
  ],
5719
5766
  },
5767
+ // Settings Items Operations
5720
5768
  {
5721
- displayName: 'Entity',
5722
- name: 'entity',
5769
+ displayName: 'Operation',
5770
+ name: 'operation',
5771
+ type: 'options',
5772
+ noDataExpression: true,
5773
+ displayOptions: {
5774
+ show: {
5775
+ resource: ['settings-items'],
5776
+ },
5777
+ },
5778
+ options: [
5779
+ {
5780
+ name: 'List items',
5781
+ value: 'PublicApiItemController_list',
5782
+ action: 'Retrieve paginated editable settings items.',
5783
+ description: 'Retrieve paginated editable settings items.',
5784
+ routing: {
5785
+ request: {
5786
+ method: 'GET',
5787
+ url: '/api/v2/public/settings/items',
5788
+ },
5789
+ },
5790
+ },
5791
+ {
5792
+ name: 'Create item',
5793
+ value: 'PublicApiItemController_create',
5794
+ action: 'Create a settings item. This endpoint does not upsert.',
5795
+ description: 'Create a settings item. This endpoint does not upsert.',
5796
+ routing: {
5797
+ request: {
5798
+ method: 'POST',
5799
+ url: '/api/v2/public/settings/items',
5800
+ },
5801
+ },
5802
+ },
5803
+ {
5804
+ name: 'Upsert item',
5805
+ value: 'PublicApiItemController_upsert',
5806
+ action: 'Create or partially update a settings item using integrationId when supplied, otherwise name. Create still requires mandatory item fields.',
5807
+ description: 'Create or partially update a settings item using integrationId when supplied, otherwise name. Create still requires mandatory item fields.',
5808
+ routing: {
5809
+ request: {
5810
+ method: 'PUT',
5811
+ url: '/api/v2/public/settings/items',
5812
+ },
5813
+ },
5814
+ },
5815
+ {
5816
+ name: 'Get item',
5817
+ value: 'PublicApiItemController_getById',
5818
+ action: 'Retrieve a settings item by ID.',
5819
+ description: 'Retrieve a settings item by ID.',
5820
+ routing: {
5821
+ request: {
5822
+ method: 'GET',
5823
+ url: '/api/v2/public/settings/items/={{ $parameter["id"] }}',
5824
+ },
5825
+ },
5826
+ },
5827
+ {
5828
+ name: 'Update item',
5829
+ value: 'PublicApiItemController_update',
5830
+ action: 'Update a settings item by ID.',
5831
+ description: 'Update a settings item by ID.',
5832
+ routing: {
5833
+ request: {
5834
+ method: 'PATCH',
5835
+ url: '/api/v2/public/settings/items/={{ $parameter["id"] }}',
5836
+ },
5837
+ },
5838
+ },
5839
+ {
5840
+ name: 'Delete item',
5841
+ value: 'PublicApiItemController_delete',
5842
+ action: 'Deactivate a settings item by ID.',
5843
+ description: 'Deactivate a settings item by ID.',
5844
+ routing: {
5845
+ request: {
5846
+ method: 'DELETE',
5847
+ url: '/api/v2/public/settings/items/={{ $parameter["id"] }}',
5848
+ },
5849
+ },
5850
+ },
5851
+ {
5852
+ name: 'List item categories',
5853
+ value: 'PublicApiItemCategoryController_list',
5854
+ action: 'Retrieve active item categories and sub-categories.',
5855
+ description: 'Retrieve active item categories and sub-categories.',
5856
+ routing: {
5857
+ request: {
5858
+ method: 'GET',
5859
+ url: '/api/v2/public/settings/item-categories',
5860
+ },
5861
+ },
5862
+ },
5863
+ {
5864
+ name: 'Upsert item category',
5865
+ value: 'PublicApiItemCategoryController_upsert',
5866
+ action: 'Create a category/sub-category pair if it does not already exist.',
5867
+ description: 'Create a category/sub-category pair if it does not already exist.',
5868
+ routing: {
5869
+ request: {
5870
+ method: 'POST',
5871
+ url: '/api/v2/public/settings/item-categories/upsert',
5872
+ },
5873
+ },
5874
+ },
5875
+ {
5876
+ name: 'List UOMs',
5877
+ value: 'PublicApiUoMController_list',
5878
+ action: 'Retrieve active units of measure for item create/update.',
5879
+ description: 'Retrieve active units of measure for item create/update.',
5880
+ routing: {
5881
+ request: {
5882
+ method: 'GET',
5883
+ url: '/api/v2/public/settings/uoms',
5884
+ },
5885
+ },
5886
+ },
5887
+ ],
5888
+ default: 'PublicApiItemController_list',
5889
+ },
5890
+ {
5891
+ displayName: 'Type',
5892
+ name: 'type',
5723
5893
  type: 'options',
5724
5894
  default: '',
5725
- description: 'Entity type',
5895
+ description: '',
5726
5896
  required: true,
5727
5897
  displayOptions: {
5728
5898
  show: {
5729
- resource: ['settings'],
5730
- operation: ['PublicApiTemplateController_listSmsTemplates'],
5899
+ resource: ['settings-items'],
5900
+ operation: ['PublicApiItemController_create'],
5731
5901
  },
5732
5902
  },
5733
5903
  options: [
5734
5904
  {
5735
- name: 'job',
5736
- value: 'job',
5905
+ name: 'SERVICE',
5906
+ value: 'SERVICE',
5737
5907
  },
5738
5908
  {
5739
- name: 'stage',
5740
- value: 'stage',
5909
+ name: 'INVENTORY',
5910
+ value: 'INVENTORY',
5911
+ },
5912
+ {
5913
+ name: 'NON-INVENTORY',
5914
+ value: 'NON-INVENTORY',
5915
+ },
5916
+ {
5917
+ name: 'LABOUR',
5918
+ value: 'LABOUR',
5919
+ },
5920
+ {
5921
+ name: 'INCENTIVE',
5922
+ value: 'INCENTIVE',
5741
5923
  },
5742
5924
  ],
5925
+ routing: {
5926
+ send: {
5927
+ type: 'body',
5928
+ property: 'type',
5929
+ },
5930
+ },
5931
+ },
5932
+ {
5933
+ displayName: 'Name',
5934
+ name: 'name',
5935
+ type: 'string',
5936
+ default: '',
5937
+ description: 'Display name',
5938
+ required: true,
5939
+ displayOptions: {
5940
+ show: {
5941
+ resource: ['settings-items'],
5942
+ operation: ['PublicApiItemController_create'],
5943
+ },
5944
+ },
5945
+ routing: {
5946
+ send: {
5947
+ type: 'body',
5948
+ property: 'name',
5949
+ },
5950
+ },
5951
+ },
5952
+ {
5953
+ displayName: 'Description',
5954
+ name: 'description',
5955
+ type: 'string',
5956
+ default: '',
5957
+ description: 'Detailed description',
5958
+ required: true,
5959
+ displayOptions: {
5960
+ show: {
5961
+ resource: ['settings-items'],
5962
+ operation: ['PublicApiItemController_create'],
5963
+ },
5964
+ },
5965
+ routing: {
5966
+ send: {
5967
+ type: 'body',
5968
+ property: 'description',
5969
+ },
5970
+ },
5971
+ },
5972
+ {
5973
+ displayName: 'Flag Category',
5974
+ name: 'category',
5975
+ type: 'options',
5976
+ default: '',
5977
+ description: 'Select a flag category',
5978
+ required: true,
5979
+ typeOptions: {
5980
+ loadOptionsMethod: 'loadFlagCategoryOptions',
5981
+ },
5982
+ displayOptions: {
5983
+ show: {
5984
+ resource: ['settings-items'],
5985
+ operation: ['PublicApiItemController_create'],
5986
+ },
5987
+ },
5988
+ routing: {
5989
+ send: {
5990
+ type: 'body',
5991
+ property: 'category',
5992
+ value: '={{ JSON.parse($value) }}',
5993
+ },
5994
+ },
5995
+ },
5996
+ {
5997
+ displayName: 'Base Uom Id',
5998
+ name: 'baseUomId',
5999
+ type: 'string',
6000
+ default: '',
6001
+ description: 'base uom ID',
6002
+ required: false,
6003
+ displayOptions: {
6004
+ show: {
6005
+ resource: ['settings-items'],
6006
+ operation: ['PublicApiItemController_create'],
6007
+ },
6008
+ },
6009
+ routing: {
6010
+ send: {
6011
+ type: 'body',
6012
+ property: 'baseUomId',
6013
+ },
6014
+ },
6015
+ },
6016
+ {
6017
+ displayName: 'Base Uom Name',
6018
+ name: 'baseUomName',
6019
+ type: 'string',
6020
+ default: '',
6021
+ description: '',
6022
+ required: false,
6023
+ displayOptions: {
6024
+ show: {
6025
+ resource: ['settings-items'],
6026
+ operation: ['PublicApiItemController_create'],
6027
+ },
6028
+ },
6029
+ routing: {
6030
+ send: {
6031
+ type: 'body',
6032
+ property: 'baseUomName',
6033
+ },
6034
+ },
6035
+ },
6036
+ {
6037
+ displayName: 'Active',
6038
+ name: 'active',
6039
+ type: 'boolean',
6040
+ default: false,
6041
+ description: 'Whether the entity is active',
6042
+ required: false,
6043
+ displayOptions: {
6044
+ show: {
6045
+ resource: ['settings-items'],
6046
+ operation: ['PublicApiItemController_create'],
6047
+ },
6048
+ },
6049
+ routing: {
6050
+ send: {
6051
+ type: 'body',
6052
+ property: 'active',
6053
+ },
6054
+ },
6055
+ },
6056
+ {
6057
+ displayName: 'Integration Id',
6058
+ name: 'integrationId',
6059
+ type: 'string',
6060
+ default: '',
6061
+ description: 'integration ID',
6062
+ required: false,
6063
+ displayOptions: {
6064
+ show: {
6065
+ resource: ['settings-items'],
6066
+ operation: ['PublicApiItemController_create'],
6067
+ },
6068
+ },
6069
+ routing: {
6070
+ send: {
6071
+ type: 'body',
6072
+ property: 'integrationId',
6073
+ },
6074
+ },
6075
+ },
6076
+ {
6077
+ displayName: 'Can Override Desc',
6078
+ name: 'canOverrideDesc',
6079
+ type: 'boolean',
6080
+ default: false,
6081
+ description: '',
6082
+ required: false,
6083
+ displayOptions: {
6084
+ show: {
6085
+ resource: ['settings-items'],
6086
+ operation: ['PublicApiItemController_create'],
6087
+ },
6088
+ },
6089
+ routing: {
6090
+ send: {
6091
+ type: 'body',
6092
+ property: 'canOverrideDesc',
6093
+ },
6094
+ },
6095
+ },
6096
+ {
6097
+ displayName: 'Long Description',
6098
+ name: 'longDescription',
6099
+ type: 'string',
6100
+ default: '',
6101
+ description: '',
6102
+ required: false,
6103
+ displayOptions: {
6104
+ show: {
6105
+ resource: ['settings-items'],
6106
+ operation: ['PublicApiItemController_create'],
6107
+ },
6108
+ },
6109
+ routing: {
6110
+ send: {
6111
+ type: 'body',
6112
+ property: 'longDescription',
6113
+ },
6114
+ },
6115
+ },
6116
+ {
6117
+ displayName: 'Manufacturer',
6118
+ name: 'manufacturer',
6119
+ type: 'string',
6120
+ default: '',
6121
+ description: '',
6122
+ required: false,
6123
+ displayOptions: {
6124
+ show: {
6125
+ resource: ['settings-items'],
6126
+ operation: ['PublicApiItemController_create'],
6127
+ },
6128
+ },
6129
+ routing: {
6130
+ send: {
6131
+ type: 'body',
6132
+ property: 'manufacturer',
6133
+ },
6134
+ },
6135
+ },
6136
+ {
6137
+ displayName: 'Retail Price',
6138
+ name: 'retailPrice',
6139
+ type: 'number',
6140
+ default: 0,
6141
+ description: '',
6142
+ required: false,
6143
+ displayOptions: {
6144
+ show: {
6145
+ resource: ['settings-items'],
6146
+ operation: ['PublicApiItemController_create'],
6147
+ },
6148
+ },
6149
+ routing: {
6150
+ send: {
6151
+ type: 'body',
6152
+ property: 'retailPrice',
6153
+ },
6154
+ },
6155
+ },
6156
+ {
6157
+ displayName: 'Trade Price',
6158
+ name: 'tradePrice',
6159
+ type: 'number',
6160
+ default: 0,
6161
+ description: '',
6162
+ required: false,
6163
+ displayOptions: {
6164
+ show: {
6165
+ resource: ['settings-items'],
6166
+ operation: ['PublicApiItemController_create'],
6167
+ },
6168
+ },
6169
+ routing: {
6170
+ send: {
6171
+ type: 'body',
6172
+ property: 'tradePrice',
6173
+ },
6174
+ },
6175
+ },
6176
+ {
6177
+ displayName: 'Standard Cost',
6178
+ name: 'standardCost',
6179
+ type: 'number',
6180
+ default: 0,
6181
+ description: '',
6182
+ required: false,
6183
+ displayOptions: {
6184
+ show: {
6185
+ resource: ['settings-items'],
6186
+ operation: ['PublicApiItemController_create'],
6187
+ },
6188
+ },
6189
+ routing: {
6190
+ send: {
6191
+ type: 'body',
6192
+ property: 'standardCost',
6193
+ },
6194
+ },
6195
+ },
6196
+ {
6197
+ displayName: 'Economic Order Qty',
6198
+ name: 'economicOrderQty',
6199
+ type: 'number',
6200
+ default: 0,
6201
+ description: '',
6202
+ required: false,
6203
+ displayOptions: {
6204
+ show: {
6205
+ resource: ['settings-items'],
6206
+ operation: ['PublicApiItemController_create'],
6207
+ },
6208
+ },
6209
+ routing: {
6210
+ send: {
6211
+ type: 'body',
6212
+ property: 'economicOrderQty',
6213
+ },
6214
+ },
6215
+ },
6216
+ {
6217
+ displayName: 'Safety Stock Qty',
6218
+ name: 'safetyStockQty',
6219
+ type: 'number',
6220
+ default: 0,
6221
+ description: '',
6222
+ required: false,
6223
+ displayOptions: {
6224
+ show: {
6225
+ resource: ['settings-items'],
6226
+ operation: ['PublicApiItemController_create'],
6227
+ },
6228
+ },
6229
+ routing: {
6230
+ send: {
6231
+ type: 'body',
6232
+ property: 'safetyStockQty',
6233
+ },
6234
+ },
6235
+ },
6236
+ {
6237
+ displayName: 'Lead Time Days',
6238
+ name: 'leadTimeDays',
6239
+ type: 'number',
6240
+ default: 0,
6241
+ description: '',
6242
+ required: false,
6243
+ displayOptions: {
6244
+ show: {
6245
+ resource: ['settings-items'],
6246
+ operation: ['PublicApiItemController_create'],
6247
+ },
6248
+ },
6249
+ routing: {
6250
+ send: {
6251
+ type: 'body',
6252
+ property: 'leadTimeDays',
6253
+ },
6254
+ },
6255
+ },
6256
+ {
6257
+ displayName: 'Upc',
6258
+ name: 'upc',
6259
+ type: 'string',
6260
+ default: '',
6261
+ description: '',
6262
+ required: false,
6263
+ displayOptions: {
6264
+ show: {
6265
+ resource: ['settings-items'],
6266
+ operation: ['PublicApiItemController_create'],
6267
+ },
6268
+ },
6269
+ routing: {
6270
+ send: {
6271
+ type: 'body',
6272
+ property: 'upc',
6273
+ },
6274
+ },
6275
+ },
6276
+ {
6277
+ displayName: 'Item Sold',
6278
+ name: 'itemSold',
6279
+ type: 'boolean',
6280
+ default: false,
6281
+ description: '',
6282
+ required: false,
6283
+ displayOptions: {
6284
+ show: {
6285
+ resource: ['settings-items'],
6286
+ operation: ['PublicApiItemController_create'],
6287
+ },
6288
+ },
6289
+ routing: {
6290
+ send: {
6291
+ type: 'body',
6292
+ property: 'itemSold',
6293
+ },
6294
+ },
6295
+ },
6296
+ {
6297
+ displayName: 'Sale Gl Code',
6298
+ name: 'saleGlCode',
6299
+ type: 'string',
6300
+ default: '',
6301
+ description: '',
6302
+ required: false,
6303
+ displayOptions: {
6304
+ show: {
6305
+ resource: ['settings-items'],
6306
+ operation: ['PublicApiItemController_create'],
6307
+ },
6308
+ },
6309
+ routing: {
6310
+ send: {
6311
+ type: 'body',
6312
+ property: 'saleGlCode',
6313
+ },
6314
+ },
6315
+ },
6316
+ {
6317
+ displayName: 'Sale Tax Rate Id',
6318
+ name: 'saleTaxRateId',
6319
+ type: 'string',
6320
+ default: '',
6321
+ description: 'sale tax rate ID',
6322
+ required: false,
6323
+ displayOptions: {
6324
+ show: {
6325
+ resource: ['settings-items'],
6326
+ operation: ['PublicApiItemController_create'],
6327
+ },
6328
+ },
6329
+ routing: {
6330
+ send: {
6331
+ type: 'body',
6332
+ property: 'saleTaxRateId',
6333
+ },
6334
+ },
6335
+ },
6336
+ {
6337
+ displayName: 'Sale Tax Rate Name',
6338
+ name: 'saleTaxRateName',
6339
+ type: 'string',
6340
+ default: '',
6341
+ description: '',
6342
+ required: false,
6343
+ displayOptions: {
6344
+ show: {
6345
+ resource: ['settings-items'],
6346
+ operation: ['PublicApiItemController_create'],
6347
+ },
6348
+ },
6349
+ routing: {
6350
+ send: {
6351
+ type: 'body',
6352
+ property: 'saleTaxRateName',
6353
+ },
6354
+ },
6355
+ },
6356
+ {
6357
+ displayName: 'Item Purchased',
6358
+ name: 'itemPurchased',
6359
+ type: 'boolean',
6360
+ default: false,
6361
+ description: '',
6362
+ required: false,
6363
+ displayOptions: {
6364
+ show: {
6365
+ resource: ['settings-items'],
6366
+ operation: ['PublicApiItemController_create'],
6367
+ },
6368
+ },
6369
+ routing: {
6370
+ send: {
6371
+ type: 'body',
6372
+ property: 'itemPurchased',
6373
+ },
6374
+ },
6375
+ },
6376
+ {
6377
+ displayName: 'Purchase Gl Code',
6378
+ name: 'purchaseGlCode',
6379
+ type: 'string',
6380
+ default: '',
6381
+ description: '',
6382
+ required: false,
6383
+ displayOptions: {
6384
+ show: {
6385
+ resource: ['settings-items'],
6386
+ operation: ['PublicApiItemController_create'],
6387
+ },
6388
+ },
6389
+ routing: {
6390
+ send: {
6391
+ type: 'body',
6392
+ property: 'purchaseGlCode',
6393
+ },
6394
+ },
6395
+ },
6396
+ {
6397
+ displayName: 'Purchase Tax Rate Id',
6398
+ name: 'purchaseTaxRateId',
6399
+ type: 'string',
6400
+ default: '',
6401
+ description: 'purchase tax rate ID',
6402
+ required: false,
6403
+ displayOptions: {
6404
+ show: {
6405
+ resource: ['settings-items'],
6406
+ operation: ['PublicApiItemController_create'],
6407
+ },
6408
+ },
6409
+ routing: {
6410
+ send: {
6411
+ type: 'body',
6412
+ property: 'purchaseTaxRateId',
6413
+ },
6414
+ },
6415
+ },
6416
+ {
6417
+ displayName: 'Purchase Tax Rate Name',
6418
+ name: 'purchaseTaxRateName',
6419
+ type: 'string',
6420
+ default: '',
6421
+ description: '',
6422
+ required: false,
6423
+ displayOptions: {
6424
+ show: {
6425
+ resource: ['settings-items'],
6426
+ operation: ['PublicApiItemController_create'],
6427
+ },
6428
+ },
6429
+ routing: {
6430
+ send: {
6431
+ type: 'body',
6432
+ property: 'purchaseTaxRateName',
6433
+ },
6434
+ },
6435
+ },
6436
+ {
6437
+ displayName: 'Code Invoicing Status',
6438
+ name: 'codeInvoicingStatus',
6439
+ type: 'options',
6440
+ default: '',
6441
+ description: '',
6442
+ required: false,
6443
+ displayOptions: {
6444
+ show: {
6445
+ resource: ['settings-items'],
6446
+ operation: ['PublicApiItemController_create'],
6447
+ },
6448
+ },
6449
+ options: [
6450
+ {
6451
+ name: 'Billable',
6452
+ value: 'Billable',
6453
+ },
6454
+ {
6455
+ name: 'No Charge',
6456
+ value: 'No Charge',
6457
+ },
6458
+ {
6459
+ name: 'Not Billable',
6460
+ value: 'Not Billable',
6461
+ },
6462
+ ],
6463
+ routing: {
6464
+ send: {
6465
+ type: 'body',
6466
+ property: 'codeInvoicingStatus',
6467
+ },
6468
+ },
6469
+ },
6470
+ {
6471
+ displayName: 'Supplied By Subcontractor',
6472
+ name: 'suppliedBySubcontractor',
6473
+ type: 'boolean',
6474
+ default: false,
6475
+ description: '',
6476
+ required: false,
6477
+ displayOptions: {
6478
+ show: {
6479
+ resource: ['settings-items'],
6480
+ operation: ['PublicApiItemController_create'],
6481
+ },
6482
+ },
6483
+ routing: {
6484
+ send: {
6485
+ type: 'body',
6486
+ property: 'suppliedBySubcontractor',
6487
+ },
6488
+ },
6489
+ },
6490
+ {
6491
+ displayName: 'Auto Create Task',
6492
+ name: 'autoCreateTask',
6493
+ type: 'boolean',
6494
+ default: false,
6495
+ description: '',
6496
+ required: false,
6497
+ displayOptions: {
6498
+ show: {
6499
+ resource: ['settings-items'],
6500
+ operation: ['PublicApiItemController_create'],
6501
+ },
6502
+ },
6503
+ routing: {
6504
+ send: {
6505
+ type: 'body',
6506
+ property: 'autoCreateTask',
6507
+ },
6508
+ },
6509
+ },
6510
+ {
6511
+ displayName: 'Custom Fields',
6512
+ name: 'customFields',
6513
+ type: 'string',
6514
+ default: '',
6515
+ description: 'Custom fields as key-value pairs — validated against tenant field definitions',
6516
+ required: false,
6517
+ displayOptions: {
6518
+ show: {
6519
+ resource: ['settings-items'],
6520
+ operation: ['PublicApiItemController_create'],
6521
+ },
6522
+ },
6523
+ routing: {
6524
+ send: {
6525
+ type: 'body',
6526
+ property: 'customFields',
6527
+ },
6528
+ },
6529
+ },
6530
+ {
6531
+ displayName: 'Tracking Category1',
6532
+ name: 'trackingCategory1',
6533
+ type: 'string',
6534
+ default: '',
6535
+ description: '',
6536
+ required: false,
6537
+ displayOptions: {
6538
+ show: {
6539
+ resource: ['settings-items'],
6540
+ operation: ['PublicApiItemController_create'],
6541
+ },
6542
+ },
6543
+ routing: {
6544
+ send: {
6545
+ type: 'body',
6546
+ property: 'trackingCategory1',
6547
+ },
6548
+ },
6549
+ },
6550
+ {
6551
+ displayName: 'Tracking Category2',
6552
+ name: 'trackingCategory2',
6553
+ type: 'string',
6554
+ default: '',
6555
+ description: '',
6556
+ required: false,
6557
+ displayOptions: {
6558
+ show: {
6559
+ resource: ['settings-items'],
6560
+ operation: ['PublicApiItemController_create'],
6561
+ },
6562
+ },
6563
+ routing: {
6564
+ send: {
6565
+ type: 'body',
6566
+ property: 'trackingCategory2',
6567
+ },
6568
+ },
6569
+ },
6570
+ {
6571
+ displayName: 'Uoms',
6572
+ name: 'uoms',
6573
+ type: 'json',
6574
+ default: {},
6575
+ description: '',
6576
+ required: false,
6577
+ displayOptions: {
6578
+ show: {
6579
+ resource: ['settings-items'],
6580
+ operation: ['PublicApiItemController_create'],
6581
+ },
6582
+ },
6583
+ routing: {
6584
+ send: {
6585
+ type: 'body',
6586
+ property: 'uoms',
6587
+ },
6588
+ },
6589
+ },
6590
+ {
6591
+ displayName: 'Name',
6592
+ name: 'name',
6593
+ type: 'string',
6594
+ default: '',
6595
+ description: 'Display name',
6596
+ required: true,
6597
+ displayOptions: {
6598
+ show: {
6599
+ resource: ['settings-items'],
6600
+ operation: ['PublicApiItemController_upsert'],
6601
+ },
6602
+ },
6603
+ routing: {
6604
+ send: {
6605
+ type: 'body',
6606
+ property: 'name',
6607
+ },
6608
+ },
6609
+ },
6610
+ {
6611
+ displayName: 'Type',
6612
+ name: 'type',
6613
+ type: 'options',
6614
+ default: '',
6615
+ description: '',
6616
+ required: false,
6617
+ displayOptions: {
6618
+ show: {
6619
+ resource: ['settings-items'],
6620
+ operation: ['PublicApiItemController_upsert'],
6621
+ },
6622
+ },
6623
+ options: [
6624
+ {
6625
+ name: 'SERVICE',
6626
+ value: 'SERVICE',
6627
+ },
6628
+ {
6629
+ name: 'INVENTORY',
6630
+ value: 'INVENTORY',
6631
+ },
6632
+ {
6633
+ name: 'NON-INVENTORY',
6634
+ value: 'NON-INVENTORY',
6635
+ },
6636
+ {
6637
+ name: 'LABOUR',
6638
+ value: 'LABOUR',
6639
+ },
6640
+ {
6641
+ name: 'INCENTIVE',
6642
+ value: 'INCENTIVE',
6643
+ },
6644
+ ],
6645
+ routing: {
6646
+ send: {
6647
+ type: 'body',
6648
+ property: 'type',
6649
+ },
6650
+ },
6651
+ },
6652
+ {
6653
+ displayName: 'Base Uom Id',
6654
+ name: 'baseUomId',
6655
+ type: 'string',
6656
+ default: '',
6657
+ description: 'base uom ID',
6658
+ required: false,
6659
+ displayOptions: {
6660
+ show: {
6661
+ resource: ['settings-items'],
6662
+ operation: ['PublicApiItemController_upsert'],
6663
+ },
6664
+ },
6665
+ routing: {
6666
+ send: {
6667
+ type: 'body',
6668
+ property: 'baseUomId',
6669
+ },
6670
+ },
6671
+ },
6672
+ {
6673
+ displayName: 'Base Uom Name',
6674
+ name: 'baseUomName',
6675
+ type: 'string',
6676
+ default: '',
6677
+ description: '',
6678
+ required: false,
6679
+ displayOptions: {
6680
+ show: {
6681
+ resource: ['settings-items'],
6682
+ operation: ['PublicApiItemController_upsert'],
6683
+ },
6684
+ },
6685
+ routing: {
6686
+ send: {
6687
+ type: 'body',
6688
+ property: 'baseUomName',
6689
+ },
6690
+ },
6691
+ },
6692
+ {
6693
+ displayName: 'Description',
6694
+ name: 'description',
6695
+ type: 'string',
6696
+ default: '',
6697
+ description: 'Detailed description',
6698
+ required: false,
6699
+ displayOptions: {
6700
+ show: {
6701
+ resource: ['settings-items'],
6702
+ operation: ['PublicApiItemController_upsert'],
6703
+ },
6704
+ },
6705
+ routing: {
6706
+ send: {
6707
+ type: 'body',
6708
+ property: 'description',
6709
+ },
6710
+ },
6711
+ },
6712
+ {
6713
+ displayName: 'Flag Category',
6714
+ name: 'category',
6715
+ type: 'options',
6716
+ default: '',
6717
+ description: 'Select a flag category',
6718
+ required: false,
6719
+ typeOptions: {
6720
+ loadOptionsMethod: 'loadFlagCategoryOptions',
6721
+ },
6722
+ displayOptions: {
6723
+ show: {
6724
+ resource: ['settings-items'],
6725
+ operation: ['PublicApiItemController_upsert'],
6726
+ },
6727
+ },
6728
+ routing: {
6729
+ send: {
6730
+ type: 'body',
6731
+ property: 'category',
6732
+ value: '={{ JSON.parse($value) }}',
6733
+ },
6734
+ },
6735
+ },
6736
+ {
6737
+ displayName: 'Active',
6738
+ name: 'active',
6739
+ type: 'boolean',
6740
+ default: false,
6741
+ description: 'Whether the entity is active',
6742
+ required: false,
6743
+ displayOptions: {
6744
+ show: {
6745
+ resource: ['settings-items'],
6746
+ operation: ['PublicApiItemController_upsert'],
6747
+ },
6748
+ },
6749
+ routing: {
6750
+ send: {
6751
+ type: 'body',
6752
+ property: 'active',
6753
+ },
6754
+ },
6755
+ },
6756
+ {
6757
+ displayName: 'Integration Id',
6758
+ name: 'integrationId',
6759
+ type: 'string',
6760
+ default: '',
6761
+ description: 'integration ID',
6762
+ required: false,
6763
+ displayOptions: {
6764
+ show: {
6765
+ resource: ['settings-items'],
6766
+ operation: ['PublicApiItemController_upsert'],
6767
+ },
6768
+ },
6769
+ routing: {
6770
+ send: {
6771
+ type: 'body',
6772
+ property: 'integrationId',
6773
+ },
6774
+ },
6775
+ },
6776
+ {
6777
+ displayName: 'Can Override Desc',
6778
+ name: 'canOverrideDesc',
6779
+ type: 'boolean',
6780
+ default: false,
6781
+ description: '',
6782
+ required: false,
6783
+ displayOptions: {
6784
+ show: {
6785
+ resource: ['settings-items'],
6786
+ operation: ['PublicApiItemController_upsert'],
6787
+ },
6788
+ },
6789
+ routing: {
6790
+ send: {
6791
+ type: 'body',
6792
+ property: 'canOverrideDesc',
6793
+ },
6794
+ },
6795
+ },
6796
+ {
6797
+ displayName: 'Long Description',
6798
+ name: 'longDescription',
6799
+ type: 'string',
6800
+ default: '',
6801
+ description: '',
6802
+ required: false,
6803
+ displayOptions: {
6804
+ show: {
6805
+ resource: ['settings-items'],
6806
+ operation: ['PublicApiItemController_upsert'],
6807
+ },
6808
+ },
6809
+ routing: {
6810
+ send: {
6811
+ type: 'body',
6812
+ property: 'longDescription',
6813
+ },
6814
+ },
6815
+ },
6816
+ {
6817
+ displayName: 'Manufacturer',
6818
+ name: 'manufacturer',
6819
+ type: 'string',
6820
+ default: '',
6821
+ description: '',
6822
+ required: false,
6823
+ displayOptions: {
6824
+ show: {
6825
+ resource: ['settings-items'],
6826
+ operation: ['PublicApiItemController_upsert'],
6827
+ },
6828
+ },
6829
+ routing: {
6830
+ send: {
6831
+ type: 'body',
6832
+ property: 'manufacturer',
6833
+ },
6834
+ },
6835
+ },
6836
+ {
6837
+ displayName: 'Retail Price',
6838
+ name: 'retailPrice',
6839
+ type: 'number',
6840
+ default: 0,
6841
+ description: '',
6842
+ required: false,
6843
+ displayOptions: {
6844
+ show: {
6845
+ resource: ['settings-items'],
6846
+ operation: ['PublicApiItemController_upsert'],
6847
+ },
6848
+ },
6849
+ routing: {
6850
+ send: {
6851
+ type: 'body',
6852
+ property: 'retailPrice',
6853
+ },
6854
+ },
6855
+ },
6856
+ {
6857
+ displayName: 'Trade Price',
6858
+ name: 'tradePrice',
6859
+ type: 'number',
6860
+ default: 0,
6861
+ description: '',
6862
+ required: false,
6863
+ displayOptions: {
6864
+ show: {
6865
+ resource: ['settings-items'],
6866
+ operation: ['PublicApiItemController_upsert'],
6867
+ },
6868
+ },
6869
+ routing: {
6870
+ send: {
6871
+ type: 'body',
6872
+ property: 'tradePrice',
6873
+ },
6874
+ },
6875
+ },
6876
+ {
6877
+ displayName: 'Standard Cost',
6878
+ name: 'standardCost',
6879
+ type: 'number',
6880
+ default: 0,
6881
+ description: '',
6882
+ required: false,
6883
+ displayOptions: {
6884
+ show: {
6885
+ resource: ['settings-items'],
6886
+ operation: ['PublicApiItemController_upsert'],
6887
+ },
6888
+ },
6889
+ routing: {
6890
+ send: {
6891
+ type: 'body',
6892
+ property: 'standardCost',
6893
+ },
6894
+ },
6895
+ },
6896
+ {
6897
+ displayName: 'Economic Order Qty',
6898
+ name: 'economicOrderQty',
6899
+ type: 'number',
6900
+ default: 0,
6901
+ description: '',
6902
+ required: false,
6903
+ displayOptions: {
6904
+ show: {
6905
+ resource: ['settings-items'],
6906
+ operation: ['PublicApiItemController_upsert'],
6907
+ },
6908
+ },
6909
+ routing: {
6910
+ send: {
6911
+ type: 'body',
6912
+ property: 'economicOrderQty',
6913
+ },
6914
+ },
6915
+ },
6916
+ {
6917
+ displayName: 'Safety Stock Qty',
6918
+ name: 'safetyStockQty',
6919
+ type: 'number',
6920
+ default: 0,
6921
+ description: '',
6922
+ required: false,
6923
+ displayOptions: {
6924
+ show: {
6925
+ resource: ['settings-items'],
6926
+ operation: ['PublicApiItemController_upsert'],
6927
+ },
6928
+ },
6929
+ routing: {
6930
+ send: {
6931
+ type: 'body',
6932
+ property: 'safetyStockQty',
6933
+ },
6934
+ },
6935
+ },
6936
+ {
6937
+ displayName: 'Lead Time Days',
6938
+ name: 'leadTimeDays',
6939
+ type: 'number',
6940
+ default: 0,
6941
+ description: '',
6942
+ required: false,
6943
+ displayOptions: {
6944
+ show: {
6945
+ resource: ['settings-items'],
6946
+ operation: ['PublicApiItemController_upsert'],
6947
+ },
6948
+ },
6949
+ routing: {
6950
+ send: {
6951
+ type: 'body',
6952
+ property: 'leadTimeDays',
6953
+ },
6954
+ },
6955
+ },
6956
+ {
6957
+ displayName: 'Upc',
6958
+ name: 'upc',
6959
+ type: 'string',
6960
+ default: '',
6961
+ description: '',
6962
+ required: false,
6963
+ displayOptions: {
6964
+ show: {
6965
+ resource: ['settings-items'],
6966
+ operation: ['PublicApiItemController_upsert'],
6967
+ },
6968
+ },
6969
+ routing: {
6970
+ send: {
6971
+ type: 'body',
6972
+ property: 'upc',
6973
+ },
6974
+ },
6975
+ },
6976
+ {
6977
+ displayName: 'Item Sold',
6978
+ name: 'itemSold',
6979
+ type: 'boolean',
6980
+ default: false,
6981
+ description: '',
6982
+ required: false,
6983
+ displayOptions: {
6984
+ show: {
6985
+ resource: ['settings-items'],
6986
+ operation: ['PublicApiItemController_upsert'],
6987
+ },
6988
+ },
6989
+ routing: {
6990
+ send: {
6991
+ type: 'body',
6992
+ property: 'itemSold',
6993
+ },
6994
+ },
6995
+ },
6996
+ {
6997
+ displayName: 'Sale Gl Code',
6998
+ name: 'saleGlCode',
6999
+ type: 'string',
7000
+ default: '',
7001
+ description: '',
7002
+ required: false,
7003
+ displayOptions: {
7004
+ show: {
7005
+ resource: ['settings-items'],
7006
+ operation: ['PublicApiItemController_upsert'],
7007
+ },
7008
+ },
7009
+ routing: {
7010
+ send: {
7011
+ type: 'body',
7012
+ property: 'saleGlCode',
7013
+ },
7014
+ },
7015
+ },
7016
+ {
7017
+ displayName: 'Sale Tax Rate Id',
7018
+ name: 'saleTaxRateId',
7019
+ type: 'string',
7020
+ default: '',
7021
+ description: 'sale tax rate ID',
7022
+ required: false,
7023
+ displayOptions: {
7024
+ show: {
7025
+ resource: ['settings-items'],
7026
+ operation: ['PublicApiItemController_upsert'],
7027
+ },
7028
+ },
7029
+ routing: {
7030
+ send: {
7031
+ type: 'body',
7032
+ property: 'saleTaxRateId',
7033
+ },
7034
+ },
7035
+ },
7036
+ {
7037
+ displayName: 'Sale Tax Rate Name',
7038
+ name: 'saleTaxRateName',
7039
+ type: 'string',
7040
+ default: '',
7041
+ description: '',
7042
+ required: false,
7043
+ displayOptions: {
7044
+ show: {
7045
+ resource: ['settings-items'],
7046
+ operation: ['PublicApiItemController_upsert'],
7047
+ },
7048
+ },
7049
+ routing: {
7050
+ send: {
7051
+ type: 'body',
7052
+ property: 'saleTaxRateName',
7053
+ },
7054
+ },
7055
+ },
7056
+ {
7057
+ displayName: 'Item Purchased',
7058
+ name: 'itemPurchased',
7059
+ type: 'boolean',
7060
+ default: false,
7061
+ description: '',
7062
+ required: false,
7063
+ displayOptions: {
7064
+ show: {
7065
+ resource: ['settings-items'],
7066
+ operation: ['PublicApiItemController_upsert'],
7067
+ },
7068
+ },
7069
+ routing: {
7070
+ send: {
7071
+ type: 'body',
7072
+ property: 'itemPurchased',
7073
+ },
7074
+ },
7075
+ },
7076
+ {
7077
+ displayName: 'Purchase Gl Code',
7078
+ name: 'purchaseGlCode',
7079
+ type: 'string',
7080
+ default: '',
7081
+ description: '',
7082
+ required: false,
7083
+ displayOptions: {
7084
+ show: {
7085
+ resource: ['settings-items'],
7086
+ operation: ['PublicApiItemController_upsert'],
7087
+ },
7088
+ },
7089
+ routing: {
7090
+ send: {
7091
+ type: 'body',
7092
+ property: 'purchaseGlCode',
7093
+ },
7094
+ },
7095
+ },
7096
+ {
7097
+ displayName: 'Purchase Tax Rate Id',
7098
+ name: 'purchaseTaxRateId',
7099
+ type: 'string',
7100
+ default: '',
7101
+ description: 'purchase tax rate ID',
7102
+ required: false,
7103
+ displayOptions: {
7104
+ show: {
7105
+ resource: ['settings-items'],
7106
+ operation: ['PublicApiItemController_upsert'],
7107
+ },
7108
+ },
7109
+ routing: {
7110
+ send: {
7111
+ type: 'body',
7112
+ property: 'purchaseTaxRateId',
7113
+ },
7114
+ },
7115
+ },
7116
+ {
7117
+ displayName: 'Purchase Tax Rate Name',
7118
+ name: 'purchaseTaxRateName',
7119
+ type: 'string',
7120
+ default: '',
7121
+ description: '',
7122
+ required: false,
7123
+ displayOptions: {
7124
+ show: {
7125
+ resource: ['settings-items'],
7126
+ operation: ['PublicApiItemController_upsert'],
7127
+ },
7128
+ },
7129
+ routing: {
7130
+ send: {
7131
+ type: 'body',
7132
+ property: 'purchaseTaxRateName',
7133
+ },
7134
+ },
7135
+ },
7136
+ {
7137
+ displayName: 'Code Invoicing Status',
7138
+ name: 'codeInvoicingStatus',
7139
+ type: 'options',
7140
+ default: '',
7141
+ description: '',
7142
+ required: false,
7143
+ displayOptions: {
7144
+ show: {
7145
+ resource: ['settings-items'],
7146
+ operation: ['PublicApiItemController_upsert'],
7147
+ },
7148
+ },
7149
+ options: [
7150
+ {
7151
+ name: 'Billable',
7152
+ value: 'Billable',
7153
+ },
7154
+ {
7155
+ name: 'No Charge',
7156
+ value: 'No Charge',
7157
+ },
7158
+ {
7159
+ name: 'Not Billable',
7160
+ value: 'Not Billable',
7161
+ },
7162
+ ],
7163
+ routing: {
7164
+ send: {
7165
+ type: 'body',
7166
+ property: 'codeInvoicingStatus',
7167
+ },
7168
+ },
7169
+ },
7170
+ {
7171
+ displayName: 'Supplied By Subcontractor',
7172
+ name: 'suppliedBySubcontractor',
7173
+ type: 'boolean',
7174
+ default: false,
7175
+ description: '',
7176
+ required: false,
7177
+ displayOptions: {
7178
+ show: {
7179
+ resource: ['settings-items'],
7180
+ operation: ['PublicApiItemController_upsert'],
7181
+ },
7182
+ },
7183
+ routing: {
7184
+ send: {
7185
+ type: 'body',
7186
+ property: 'suppliedBySubcontractor',
7187
+ },
7188
+ },
7189
+ },
7190
+ {
7191
+ displayName: 'Auto Create Task',
7192
+ name: 'autoCreateTask',
7193
+ type: 'boolean',
7194
+ default: false,
7195
+ description: '',
7196
+ required: false,
7197
+ displayOptions: {
7198
+ show: {
7199
+ resource: ['settings-items'],
7200
+ operation: ['PublicApiItemController_upsert'],
7201
+ },
7202
+ },
7203
+ routing: {
7204
+ send: {
7205
+ type: 'body',
7206
+ property: 'autoCreateTask',
7207
+ },
7208
+ },
7209
+ },
7210
+ {
7211
+ displayName: 'Custom Fields',
7212
+ name: 'customFields',
7213
+ type: 'string',
7214
+ default: '',
7215
+ description: 'Custom fields as key-value pairs — validated against tenant field definitions',
7216
+ required: false,
7217
+ displayOptions: {
7218
+ show: {
7219
+ resource: ['settings-items'],
7220
+ operation: ['PublicApiItemController_upsert'],
7221
+ },
7222
+ },
7223
+ routing: {
7224
+ send: {
7225
+ type: 'body',
7226
+ property: 'customFields',
7227
+ },
7228
+ },
7229
+ },
7230
+ {
7231
+ displayName: 'Tracking Category1',
7232
+ name: 'trackingCategory1',
7233
+ type: 'string',
7234
+ default: '',
7235
+ description: '',
7236
+ required: false,
7237
+ displayOptions: {
7238
+ show: {
7239
+ resource: ['settings-items'],
7240
+ operation: ['PublicApiItemController_upsert'],
7241
+ },
7242
+ },
7243
+ routing: {
7244
+ send: {
7245
+ type: 'body',
7246
+ property: 'trackingCategory1',
7247
+ },
7248
+ },
7249
+ },
7250
+ {
7251
+ displayName: 'Tracking Category2',
7252
+ name: 'trackingCategory2',
7253
+ type: 'string',
7254
+ default: '',
7255
+ description: '',
7256
+ required: false,
7257
+ displayOptions: {
7258
+ show: {
7259
+ resource: ['settings-items'],
7260
+ operation: ['PublicApiItemController_upsert'],
7261
+ },
7262
+ },
7263
+ routing: {
7264
+ send: {
7265
+ type: 'body',
7266
+ property: 'trackingCategory2',
7267
+ },
7268
+ },
7269
+ },
7270
+ {
7271
+ displayName: 'Uoms',
7272
+ name: 'uoms',
7273
+ type: 'json',
7274
+ default: {},
7275
+ description: '',
7276
+ required: false,
7277
+ displayOptions: {
7278
+ show: {
7279
+ resource: ['settings-items'],
7280
+ operation: ['PublicApiItemController_upsert'],
7281
+ },
7282
+ },
7283
+ routing: {
7284
+ send: {
7285
+ type: 'body',
7286
+ property: 'uoms',
7287
+ },
7288
+ },
7289
+ },
7290
+ {
7291
+ displayName: 'Id',
7292
+ name: 'id',
7293
+ type: 'string',
7294
+ default: '',
7295
+ description: 'Entity ID',
7296
+ required: true,
7297
+ displayOptions: {
7298
+ show: {
7299
+ resource: ['settings-items'],
7300
+ operation: ['PublicApiItemController_getById'],
7301
+ },
7302
+ },
7303
+ },
7304
+ {
7305
+ displayName: 'Id',
7306
+ name: 'id',
7307
+ type: 'string',
7308
+ default: '',
7309
+ description: 'Entity ID',
7310
+ required: true,
7311
+ displayOptions: {
7312
+ show: {
7313
+ resource: ['settings-items'],
7314
+ operation: ['PublicApiItemController_update'],
7315
+ },
7316
+ },
7317
+ },
7318
+ {
7319
+ displayName: 'Type',
7320
+ name: 'type',
7321
+ type: 'options',
7322
+ default: '',
7323
+ description: '',
7324
+ required: false,
7325
+ displayOptions: {
7326
+ show: {
7327
+ resource: ['settings-items'],
7328
+ operation: ['PublicApiItemController_update'],
7329
+ },
7330
+ },
7331
+ options: [
7332
+ {
7333
+ name: 'SERVICE',
7334
+ value: 'SERVICE',
7335
+ },
7336
+ {
7337
+ name: 'INVENTORY',
7338
+ value: 'INVENTORY',
7339
+ },
7340
+ {
7341
+ name: 'NON-INVENTORY',
7342
+ value: 'NON-INVENTORY',
7343
+ },
7344
+ {
7345
+ name: 'LABOUR',
7346
+ value: 'LABOUR',
7347
+ },
7348
+ {
7349
+ name: 'INCENTIVE',
7350
+ value: 'INCENTIVE',
7351
+ },
7352
+ ],
7353
+ routing: {
7354
+ send: {
7355
+ type: 'body',
7356
+ property: 'type',
7357
+ },
7358
+ },
7359
+ },
7360
+ {
7361
+ displayName: 'Name',
7362
+ name: 'name',
7363
+ type: 'string',
7364
+ default: '',
7365
+ description: 'Display name',
7366
+ required: false,
7367
+ displayOptions: {
7368
+ show: {
7369
+ resource: ['settings-items'],
7370
+ operation: ['PublicApiItemController_update'],
7371
+ },
7372
+ },
7373
+ routing: {
7374
+ send: {
7375
+ type: 'body',
7376
+ property: 'name',
7377
+ },
7378
+ },
7379
+ },
7380
+ {
7381
+ displayName: 'Base Uom Id',
7382
+ name: 'baseUomId',
7383
+ type: 'string',
7384
+ default: '',
7385
+ description: 'base uom ID',
7386
+ required: false,
7387
+ displayOptions: {
7388
+ show: {
7389
+ resource: ['settings-items'],
7390
+ operation: ['PublicApiItemController_update'],
7391
+ },
7392
+ },
7393
+ routing: {
7394
+ send: {
7395
+ type: 'body',
7396
+ property: 'baseUomId',
7397
+ },
7398
+ },
7399
+ },
7400
+ {
7401
+ displayName: 'Base Uom Name',
7402
+ name: 'baseUomName',
7403
+ type: 'string',
7404
+ default: '',
7405
+ description: '',
7406
+ required: false,
7407
+ displayOptions: {
7408
+ show: {
7409
+ resource: ['settings-items'],
7410
+ operation: ['PublicApiItemController_update'],
7411
+ },
7412
+ },
7413
+ routing: {
7414
+ send: {
7415
+ type: 'body',
7416
+ property: 'baseUomName',
7417
+ },
7418
+ },
7419
+ },
7420
+ {
7421
+ displayName: 'Description',
7422
+ name: 'description',
7423
+ type: 'string',
7424
+ default: '',
7425
+ description: 'Detailed description',
7426
+ required: false,
7427
+ displayOptions: {
7428
+ show: {
7429
+ resource: ['settings-items'],
7430
+ operation: ['PublicApiItemController_update'],
7431
+ },
7432
+ },
7433
+ routing: {
7434
+ send: {
7435
+ type: 'body',
7436
+ property: 'description',
7437
+ },
7438
+ },
7439
+ },
7440
+ {
7441
+ displayName: 'Flag Category',
7442
+ name: 'category',
7443
+ type: 'options',
7444
+ default: '',
7445
+ description: 'Select a flag category',
7446
+ required: false,
7447
+ typeOptions: {
7448
+ loadOptionsMethod: 'loadFlagCategoryOptions',
7449
+ },
7450
+ displayOptions: {
7451
+ show: {
7452
+ resource: ['settings-items'],
7453
+ operation: ['PublicApiItemController_update'],
7454
+ },
7455
+ },
7456
+ routing: {
7457
+ send: {
7458
+ type: 'body',
7459
+ property: 'category',
7460
+ value: '={{ JSON.parse($value) }}',
7461
+ },
7462
+ },
7463
+ },
7464
+ {
7465
+ displayName: 'Active',
7466
+ name: 'active',
7467
+ type: 'boolean',
7468
+ default: false,
7469
+ description: 'Whether the entity is active',
7470
+ required: false,
7471
+ displayOptions: {
7472
+ show: {
7473
+ resource: ['settings-items'],
7474
+ operation: ['PublicApiItemController_update'],
7475
+ },
7476
+ },
7477
+ routing: {
7478
+ send: {
7479
+ type: 'body',
7480
+ property: 'active',
7481
+ },
7482
+ },
7483
+ },
7484
+ {
7485
+ displayName: 'Integration Id',
7486
+ name: 'integrationId',
7487
+ type: 'string',
7488
+ default: '',
7489
+ description: 'integration ID',
7490
+ required: false,
7491
+ displayOptions: {
7492
+ show: {
7493
+ resource: ['settings-items'],
7494
+ operation: ['PublicApiItemController_update'],
7495
+ },
7496
+ },
7497
+ routing: {
7498
+ send: {
7499
+ type: 'body',
7500
+ property: 'integrationId',
7501
+ },
7502
+ },
7503
+ },
7504
+ {
7505
+ displayName: 'Can Override Desc',
7506
+ name: 'canOverrideDesc',
7507
+ type: 'boolean',
7508
+ default: false,
7509
+ description: '',
7510
+ required: false,
7511
+ displayOptions: {
7512
+ show: {
7513
+ resource: ['settings-items'],
7514
+ operation: ['PublicApiItemController_update'],
7515
+ },
7516
+ },
7517
+ routing: {
7518
+ send: {
7519
+ type: 'body',
7520
+ property: 'canOverrideDesc',
7521
+ },
7522
+ },
7523
+ },
7524
+ {
7525
+ displayName: 'Long Description',
7526
+ name: 'longDescription',
7527
+ type: 'string',
7528
+ default: '',
7529
+ description: '',
7530
+ required: false,
7531
+ displayOptions: {
7532
+ show: {
7533
+ resource: ['settings-items'],
7534
+ operation: ['PublicApiItemController_update'],
7535
+ },
7536
+ },
7537
+ routing: {
7538
+ send: {
7539
+ type: 'body',
7540
+ property: 'longDescription',
7541
+ },
7542
+ },
7543
+ },
7544
+ {
7545
+ displayName: 'Manufacturer',
7546
+ name: 'manufacturer',
7547
+ type: 'string',
7548
+ default: '',
7549
+ description: '',
7550
+ required: false,
7551
+ displayOptions: {
7552
+ show: {
7553
+ resource: ['settings-items'],
7554
+ operation: ['PublicApiItemController_update'],
7555
+ },
7556
+ },
7557
+ routing: {
7558
+ send: {
7559
+ type: 'body',
7560
+ property: 'manufacturer',
7561
+ },
7562
+ },
7563
+ },
7564
+ {
7565
+ displayName: 'Retail Price',
7566
+ name: 'retailPrice',
7567
+ type: 'number',
7568
+ default: 0,
7569
+ description: '',
7570
+ required: false,
7571
+ displayOptions: {
7572
+ show: {
7573
+ resource: ['settings-items'],
7574
+ operation: ['PublicApiItemController_update'],
7575
+ },
7576
+ },
7577
+ routing: {
7578
+ send: {
7579
+ type: 'body',
7580
+ property: 'retailPrice',
7581
+ },
7582
+ },
7583
+ },
7584
+ {
7585
+ displayName: 'Trade Price',
7586
+ name: 'tradePrice',
7587
+ type: 'number',
7588
+ default: 0,
7589
+ description: '',
7590
+ required: false,
7591
+ displayOptions: {
7592
+ show: {
7593
+ resource: ['settings-items'],
7594
+ operation: ['PublicApiItemController_update'],
7595
+ },
7596
+ },
7597
+ routing: {
7598
+ send: {
7599
+ type: 'body',
7600
+ property: 'tradePrice',
7601
+ },
7602
+ },
7603
+ },
7604
+ {
7605
+ displayName: 'Standard Cost',
7606
+ name: 'standardCost',
7607
+ type: 'number',
7608
+ default: 0,
7609
+ description: '',
7610
+ required: false,
7611
+ displayOptions: {
7612
+ show: {
7613
+ resource: ['settings-items'],
7614
+ operation: ['PublicApiItemController_update'],
7615
+ },
7616
+ },
7617
+ routing: {
7618
+ send: {
7619
+ type: 'body',
7620
+ property: 'standardCost',
7621
+ },
7622
+ },
7623
+ },
7624
+ {
7625
+ displayName: 'Economic Order Qty',
7626
+ name: 'economicOrderQty',
7627
+ type: 'number',
7628
+ default: 0,
7629
+ description: '',
7630
+ required: false,
7631
+ displayOptions: {
7632
+ show: {
7633
+ resource: ['settings-items'],
7634
+ operation: ['PublicApiItemController_update'],
7635
+ },
7636
+ },
7637
+ routing: {
7638
+ send: {
7639
+ type: 'body',
7640
+ property: 'economicOrderQty',
7641
+ },
7642
+ },
7643
+ },
7644
+ {
7645
+ displayName: 'Safety Stock Qty',
7646
+ name: 'safetyStockQty',
7647
+ type: 'number',
7648
+ default: 0,
7649
+ description: '',
7650
+ required: false,
7651
+ displayOptions: {
7652
+ show: {
7653
+ resource: ['settings-items'],
7654
+ operation: ['PublicApiItemController_update'],
7655
+ },
7656
+ },
7657
+ routing: {
7658
+ send: {
7659
+ type: 'body',
7660
+ property: 'safetyStockQty',
7661
+ },
7662
+ },
7663
+ },
7664
+ {
7665
+ displayName: 'Lead Time Days',
7666
+ name: 'leadTimeDays',
7667
+ type: 'number',
7668
+ default: 0,
7669
+ description: '',
7670
+ required: false,
7671
+ displayOptions: {
7672
+ show: {
7673
+ resource: ['settings-items'],
7674
+ operation: ['PublicApiItemController_update'],
7675
+ },
7676
+ },
7677
+ routing: {
7678
+ send: {
7679
+ type: 'body',
7680
+ property: 'leadTimeDays',
7681
+ },
7682
+ },
7683
+ },
7684
+ {
7685
+ displayName: 'Upc',
7686
+ name: 'upc',
7687
+ type: 'string',
7688
+ default: '',
7689
+ description: '',
7690
+ required: false,
7691
+ displayOptions: {
7692
+ show: {
7693
+ resource: ['settings-items'],
7694
+ operation: ['PublicApiItemController_update'],
7695
+ },
7696
+ },
7697
+ routing: {
7698
+ send: {
7699
+ type: 'body',
7700
+ property: 'upc',
7701
+ },
7702
+ },
7703
+ },
7704
+ {
7705
+ displayName: 'Item Sold',
7706
+ name: 'itemSold',
7707
+ type: 'boolean',
7708
+ default: false,
7709
+ description: '',
7710
+ required: false,
7711
+ displayOptions: {
7712
+ show: {
7713
+ resource: ['settings-items'],
7714
+ operation: ['PublicApiItemController_update'],
7715
+ },
7716
+ },
7717
+ routing: {
7718
+ send: {
7719
+ type: 'body',
7720
+ property: 'itemSold',
7721
+ },
7722
+ },
7723
+ },
7724
+ {
7725
+ displayName: 'Sale Gl Code',
7726
+ name: 'saleGlCode',
7727
+ type: 'string',
7728
+ default: '',
7729
+ description: '',
7730
+ required: false,
7731
+ displayOptions: {
7732
+ show: {
7733
+ resource: ['settings-items'],
7734
+ operation: ['PublicApiItemController_update'],
7735
+ },
7736
+ },
7737
+ routing: {
7738
+ send: {
7739
+ type: 'body',
7740
+ property: 'saleGlCode',
7741
+ },
7742
+ },
7743
+ },
7744
+ {
7745
+ displayName: 'Sale Tax Rate Id',
7746
+ name: 'saleTaxRateId',
7747
+ type: 'string',
7748
+ default: '',
7749
+ description: 'sale tax rate ID',
7750
+ required: false,
7751
+ displayOptions: {
7752
+ show: {
7753
+ resource: ['settings-items'],
7754
+ operation: ['PublicApiItemController_update'],
7755
+ },
7756
+ },
7757
+ routing: {
7758
+ send: {
7759
+ type: 'body',
7760
+ property: 'saleTaxRateId',
7761
+ },
7762
+ },
7763
+ },
7764
+ {
7765
+ displayName: 'Sale Tax Rate Name',
7766
+ name: 'saleTaxRateName',
7767
+ type: 'string',
7768
+ default: '',
7769
+ description: '',
7770
+ required: false,
7771
+ displayOptions: {
7772
+ show: {
7773
+ resource: ['settings-items'],
7774
+ operation: ['PublicApiItemController_update'],
7775
+ },
7776
+ },
7777
+ routing: {
7778
+ send: {
7779
+ type: 'body',
7780
+ property: 'saleTaxRateName',
7781
+ },
7782
+ },
7783
+ },
7784
+ {
7785
+ displayName: 'Item Purchased',
7786
+ name: 'itemPurchased',
7787
+ type: 'boolean',
7788
+ default: false,
7789
+ description: '',
7790
+ required: false,
7791
+ displayOptions: {
7792
+ show: {
7793
+ resource: ['settings-items'],
7794
+ operation: ['PublicApiItemController_update'],
7795
+ },
7796
+ },
7797
+ routing: {
7798
+ send: {
7799
+ type: 'body',
7800
+ property: 'itemPurchased',
7801
+ },
7802
+ },
7803
+ },
7804
+ {
7805
+ displayName: 'Purchase Gl Code',
7806
+ name: 'purchaseGlCode',
7807
+ type: 'string',
7808
+ default: '',
7809
+ description: '',
7810
+ required: false,
7811
+ displayOptions: {
7812
+ show: {
7813
+ resource: ['settings-items'],
7814
+ operation: ['PublicApiItemController_update'],
7815
+ },
7816
+ },
7817
+ routing: {
7818
+ send: {
7819
+ type: 'body',
7820
+ property: 'purchaseGlCode',
7821
+ },
7822
+ },
7823
+ },
7824
+ {
7825
+ displayName: 'Purchase Tax Rate Id',
7826
+ name: 'purchaseTaxRateId',
7827
+ type: 'string',
7828
+ default: '',
7829
+ description: 'purchase tax rate ID',
7830
+ required: false,
7831
+ displayOptions: {
7832
+ show: {
7833
+ resource: ['settings-items'],
7834
+ operation: ['PublicApiItemController_update'],
7835
+ },
7836
+ },
7837
+ routing: {
7838
+ send: {
7839
+ type: 'body',
7840
+ property: 'purchaseTaxRateId',
7841
+ },
7842
+ },
7843
+ },
7844
+ {
7845
+ displayName: 'Purchase Tax Rate Name',
7846
+ name: 'purchaseTaxRateName',
7847
+ type: 'string',
7848
+ default: '',
7849
+ description: '',
7850
+ required: false,
7851
+ displayOptions: {
7852
+ show: {
7853
+ resource: ['settings-items'],
7854
+ operation: ['PublicApiItemController_update'],
7855
+ },
7856
+ },
7857
+ routing: {
7858
+ send: {
7859
+ type: 'body',
7860
+ property: 'purchaseTaxRateName',
7861
+ },
7862
+ },
7863
+ },
7864
+ {
7865
+ displayName: 'Code Invoicing Status',
7866
+ name: 'codeInvoicingStatus',
7867
+ type: 'options',
7868
+ default: '',
7869
+ description: '',
7870
+ required: false,
7871
+ displayOptions: {
7872
+ show: {
7873
+ resource: ['settings-items'],
7874
+ operation: ['PublicApiItemController_update'],
7875
+ },
7876
+ },
7877
+ options: [
7878
+ {
7879
+ name: 'Billable',
7880
+ value: 'Billable',
7881
+ },
7882
+ {
7883
+ name: 'No Charge',
7884
+ value: 'No Charge',
7885
+ },
7886
+ {
7887
+ name: 'Not Billable',
7888
+ value: 'Not Billable',
7889
+ },
7890
+ ],
7891
+ routing: {
7892
+ send: {
7893
+ type: 'body',
7894
+ property: 'codeInvoicingStatus',
7895
+ },
7896
+ },
7897
+ },
7898
+ {
7899
+ displayName: 'Supplied By Subcontractor',
7900
+ name: 'suppliedBySubcontractor',
7901
+ type: 'boolean',
7902
+ default: false,
7903
+ description: '',
7904
+ required: false,
7905
+ displayOptions: {
7906
+ show: {
7907
+ resource: ['settings-items'],
7908
+ operation: ['PublicApiItemController_update'],
7909
+ },
7910
+ },
7911
+ routing: {
7912
+ send: {
7913
+ type: 'body',
7914
+ property: 'suppliedBySubcontractor',
7915
+ },
7916
+ },
7917
+ },
7918
+ {
7919
+ displayName: 'Auto Create Task',
7920
+ name: 'autoCreateTask',
7921
+ type: 'boolean',
7922
+ default: false,
7923
+ description: '',
7924
+ required: false,
7925
+ displayOptions: {
7926
+ show: {
7927
+ resource: ['settings-items'],
7928
+ operation: ['PublicApiItemController_update'],
7929
+ },
7930
+ },
7931
+ routing: {
7932
+ send: {
7933
+ type: 'body',
7934
+ property: 'autoCreateTask',
7935
+ },
7936
+ },
7937
+ },
7938
+ {
7939
+ displayName: 'Custom Fields',
7940
+ name: 'customFields',
7941
+ type: 'string',
7942
+ default: '',
7943
+ description: 'Custom fields as key-value pairs — validated against tenant field definitions',
7944
+ required: false,
7945
+ displayOptions: {
7946
+ show: {
7947
+ resource: ['settings-items'],
7948
+ operation: ['PublicApiItemController_update'],
7949
+ },
7950
+ },
7951
+ routing: {
7952
+ send: {
7953
+ type: 'body',
7954
+ property: 'customFields',
7955
+ },
7956
+ },
7957
+ },
7958
+ {
7959
+ displayName: 'Tracking Category1',
7960
+ name: 'trackingCategory1',
7961
+ type: 'string',
7962
+ default: '',
7963
+ description: '',
7964
+ required: false,
7965
+ displayOptions: {
7966
+ show: {
7967
+ resource: ['settings-items'],
7968
+ operation: ['PublicApiItemController_update'],
7969
+ },
7970
+ },
7971
+ routing: {
7972
+ send: {
7973
+ type: 'body',
7974
+ property: 'trackingCategory1',
7975
+ },
7976
+ },
7977
+ },
7978
+ {
7979
+ displayName: 'Tracking Category2',
7980
+ name: 'trackingCategory2',
7981
+ type: 'string',
7982
+ default: '',
7983
+ description: '',
7984
+ required: false,
7985
+ displayOptions: {
7986
+ show: {
7987
+ resource: ['settings-items'],
7988
+ operation: ['PublicApiItemController_update'],
7989
+ },
7990
+ },
7991
+ routing: {
7992
+ send: {
7993
+ type: 'body',
7994
+ property: 'trackingCategory2',
7995
+ },
7996
+ },
7997
+ },
7998
+ {
7999
+ displayName: 'Uoms',
8000
+ name: 'uoms',
8001
+ type: 'json',
8002
+ default: {},
8003
+ description: '',
8004
+ required: false,
8005
+ displayOptions: {
8006
+ show: {
8007
+ resource: ['settings-items'],
8008
+ operation: ['PublicApiItemController_update'],
8009
+ },
8010
+ },
8011
+ routing: {
8012
+ send: {
8013
+ type: 'body',
8014
+ property: 'uoms',
8015
+ },
8016
+ },
8017
+ },
8018
+ {
8019
+ displayName: 'Id',
8020
+ name: 'id',
8021
+ type: 'string',
8022
+ default: '',
8023
+ description: 'Entity ID',
8024
+ required: true,
8025
+ displayOptions: {
8026
+ show: {
8027
+ resource: ['settings-items'],
8028
+ operation: ['PublicApiItemController_delete'],
8029
+ },
8030
+ },
8031
+ },
8032
+ {
8033
+ displayName: 'Category Id',
8034
+ name: 'categoryId',
8035
+ type: 'string',
8036
+ default: '',
8037
+ description: 'category ID',
8038
+ required: false,
8039
+ displayOptions: {
8040
+ show: {
8041
+ resource: ['settings-items'],
8042
+ operation: ['PublicApiItemCategoryController_upsert'],
8043
+ },
8044
+ },
8045
+ routing: {
8046
+ send: {
8047
+ type: 'body',
8048
+ property: 'categoryId',
8049
+ },
8050
+ },
8051
+ },
8052
+ {
8053
+ displayName: 'Category Name',
8054
+ name: 'categoryName',
8055
+ type: 'string',
8056
+ default: '',
8057
+ description: '',
8058
+ required: false,
8059
+ displayOptions: {
8060
+ show: {
8061
+ resource: ['settings-items'],
8062
+ operation: ['PublicApiItemCategoryController_upsert'],
8063
+ },
8064
+ },
8065
+ routing: {
8066
+ send: {
8067
+ type: 'body',
8068
+ property: 'categoryName',
8069
+ },
8070
+ },
8071
+ },
8072
+ {
8073
+ displayName: 'Sub Category Id',
8074
+ name: 'subCategoryId',
8075
+ type: 'string',
8076
+ default: '',
8077
+ description: 'sub category ID',
8078
+ required: false,
8079
+ displayOptions: {
8080
+ show: {
8081
+ resource: ['settings-items'],
8082
+ operation: ['PublicApiItemCategoryController_upsert'],
8083
+ },
8084
+ },
8085
+ routing: {
8086
+ send: {
8087
+ type: 'body',
8088
+ property: 'subCategoryId',
8089
+ },
8090
+ },
8091
+ },
8092
+ {
8093
+ displayName: 'Sub Category Name',
8094
+ name: 'subCategoryName',
8095
+ type: 'string',
8096
+ default: '',
8097
+ description: '',
8098
+ required: false,
8099
+ displayOptions: {
8100
+ show: {
8101
+ resource: ['settings-items'],
8102
+ operation: ['PublicApiItemCategoryController_upsert'],
8103
+ },
8104
+ },
8105
+ routing: {
8106
+ send: {
8107
+ type: 'body',
8108
+ property: 'subCategoryName',
8109
+ },
8110
+ },
5743
8111
  },
5744
8112
  // Attachments Operations
5745
8113
  {