@workbuddy/cli-vnext 1.0.107 → 1.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +502 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3157,6 +3157,10 @@ var operations = [
3157
3157
  name: "totals",
3158
3158
  type: "object"
3159
3159
  },
3160
+ {
3161
+ name: "finance",
3162
+ type: "object"
3163
+ },
3160
3164
  {
3161
3165
  name: "customFields",
3162
3166
  type: "string",
@@ -3472,6 +3476,15 @@ var operations = [
3472
3476
  required: false,
3473
3477
  description: ""
3474
3478
  },
3479
+ {
3480
+ name: "finance",
3481
+ cliName: "finance",
3482
+ optionKey: "finance",
3483
+ source: "body",
3484
+ type: "object",
3485
+ required: false,
3486
+ description: ""
3487
+ },
3475
3488
  {
3476
3489
  name: "raw-body",
3477
3490
  cliName: "raw-body",
@@ -3605,6 +3618,10 @@ var operations = [
3605
3618
  name: "totals",
3606
3619
  type: "object"
3607
3620
  },
3621
+ {
3622
+ name: "finance",
3623
+ type: "object"
3624
+ },
3608
3625
  {
3609
3626
  name: "customFields",
3610
3627
  type: "string",
@@ -3886,6 +3903,15 @@ var operations = [
3886
3903
  required: false,
3887
3904
  description: ""
3888
3905
  },
3906
+ {
3907
+ name: "finance",
3908
+ cliName: "finance",
3909
+ optionKey: "finance",
3910
+ source: "body",
3911
+ type: "object",
3912
+ required: false,
3913
+ description: ""
3914
+ },
3889
3915
  {
3890
3916
  name: "raw-body",
3891
3917
  cliName: "raw-body",
@@ -4019,6 +4045,10 @@ var operations = [
4019
4045
  name: "totals",
4020
4046
  type: "object"
4021
4047
  },
4048
+ {
4049
+ name: "finance",
4050
+ type: "object"
4051
+ },
4022
4052
  {
4023
4053
  name: "customFields",
4024
4054
  type: "string",
@@ -4045,6 +4075,217 @@ var operations = [
4045
4075
  }
4046
4076
  ]
4047
4077
  },
4078
+ {
4079
+ operationId: "PublicApiJobController_updateFinance",
4080
+ displayName: "Set job finance marks",
4081
+ description: "Mark or unmark a job Non-Billable and/or Non-Payable. Dispatches the domain finance-lock command once per changed side. Same value is a no-op. Requires jobs:financial.",
4082
+ method: "PATCH",
4083
+ path: "/jobs/{id}/finance",
4084
+ commandPath: ["jobs", "finance", "update-finance"],
4085
+ options: [
4086
+ {
4087
+ name: "id",
4088
+ cliName: "id",
4089
+ optionKey: "id",
4090
+ source: "path",
4091
+ type: "string",
4092
+ required: true,
4093
+ description: "Job ID"
4094
+ },
4095
+ {
4096
+ name: "nonBillable",
4097
+ cliName: "non-billable",
4098
+ optionKey: "nonBillable",
4099
+ source: "body",
4100
+ type: "boolean",
4101
+ required: false,
4102
+ description: ""
4103
+ },
4104
+ {
4105
+ name: "nonPayable",
4106
+ cliName: "non-payable",
4107
+ optionKey: "nonPayable",
4108
+ source: "body",
4109
+ type: "boolean",
4110
+ required: false,
4111
+ description: ""
4112
+ },
4113
+ {
4114
+ name: "note",
4115
+ cliName: "note",
4116
+ optionKey: "note",
4117
+ source: "body",
4118
+ type: "string",
4119
+ required: false,
4120
+ description: ""
4121
+ },
4122
+ {
4123
+ name: "raw-body",
4124
+ cliName: "raw-body",
4125
+ optionKey: "rawBody",
4126
+ source: "body",
4127
+ type: "object",
4128
+ required: false,
4129
+ description: "Raw request body JSON (overrides individual fields)"
4130
+ }
4131
+ ],
4132
+ hasRequestBody: true,
4133
+ responseFields: [
4134
+ {
4135
+ name: "id",
4136
+ type: "string",
4137
+ description: "Entity ID"
4138
+ },
4139
+ {
4140
+ name: "integrationId",
4141
+ type: "string",
4142
+ description: "integration ID"
4143
+ },
4144
+ {
4145
+ name: "jobNumber",
4146
+ type: "string"
4147
+ },
4148
+ {
4149
+ name: "name",
4150
+ type: "string",
4151
+ description: "Display name"
4152
+ },
4153
+ {
4154
+ name: "description",
4155
+ type: "string",
4156
+ description: "Detailed description"
4157
+ },
4158
+ {
4159
+ name: "status",
4160
+ type: "object",
4161
+ description: "Status filter"
4162
+ },
4163
+ {
4164
+ name: "customer",
4165
+ type: "object",
4166
+ description: "Inline customer object — alternative to customerId"
4167
+ },
4168
+ {
4169
+ name: "site",
4170
+ type: "string",
4171
+ description: "Inline site object — alternative to siteId"
4172
+ },
4173
+ {
4174
+ name: "contact",
4175
+ type: "string",
4176
+ description: "Inline contact object — alternative to contactId"
4177
+ },
4178
+ {
4179
+ name: "customerSupervisor",
4180
+ type: "string"
4181
+ },
4182
+ {
4183
+ name: "type",
4184
+ type: "string"
4185
+ },
4186
+ {
4187
+ name: "priority",
4188
+ type: "string"
4189
+ },
4190
+ {
4191
+ name: "owner",
4192
+ type: "string"
4193
+ },
4194
+ {
4195
+ name: "fieldSupervisor",
4196
+ type: "string"
4197
+ },
4198
+ {
4199
+ name: "zones",
4200
+ type: "array"
4201
+ },
4202
+ {
4203
+ name: "tags",
4204
+ type: "array",
4205
+ description: "Tag operation — use set, add, or remove (mutually exclusive: set vs add/remove)"
4206
+ },
4207
+ {
4208
+ name: "systemTags",
4209
+ type: "array"
4210
+ },
4211
+ {
4212
+ name: "notes",
4213
+ type: "string",
4214
+ description: "Additional notes or comments"
4215
+ },
4216
+ {
4217
+ name: "reference",
4218
+ type: "string",
4219
+ description: "External reference number"
4220
+ },
4221
+ {
4222
+ name: "customerWO",
4223
+ type: "string",
4224
+ description: "Customer work order reference"
4225
+ },
4226
+ {
4227
+ name: "customerPO",
4228
+ type: "string",
4229
+ description: "Customer purchase order reference"
4230
+ },
4231
+ {
4232
+ name: "priceBook",
4233
+ type: "string"
4234
+ },
4235
+ {
4236
+ name: "billingCompany",
4237
+ type: "string"
4238
+ },
4239
+ {
4240
+ name: "policy",
4241
+ type: "string"
4242
+ },
4243
+ {
4244
+ name: "thresholds",
4245
+ type: "string"
4246
+ },
4247
+ {
4248
+ name: "stages",
4249
+ type: "array"
4250
+ },
4251
+ {
4252
+ name: "totals",
4253
+ type: "object"
4254
+ },
4255
+ {
4256
+ name: "finance",
4257
+ type: "object"
4258
+ },
4259
+ {
4260
+ name: "customFields",
4261
+ type: "string",
4262
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
4263
+ },
4264
+ {
4265
+ name: "dueDate",
4266
+ type: "string",
4267
+ description: "Due date (ISO 8601 datetime)"
4268
+ },
4269
+ {
4270
+ name: "startDate",
4271
+ type: "string",
4272
+ description: "Start date (ISO 8601 datetime)"
4273
+ },
4274
+ {
4275
+ name: "createdAt",
4276
+ type: "string"
4277
+ },
4278
+ {
4279
+ name: "updatedAt",
4280
+ type: "string",
4281
+ description: "For optimistic concurrency — update fails if entity was modified after this timestamp"
4282
+ },
4283
+ {
4284
+ name: "summary",
4285
+ type: "object"
4286
+ }
4287
+ ]
4288
+ },
4048
4289
  {
4049
4290
  operationId: "PublicApiJobController_updateStatus",
4050
4291
  displayName: "Update job status",
@@ -4233,6 +4474,10 @@ var operations = [
4233
4474
  name: "totals",
4234
4475
  type: "object"
4235
4476
  },
4477
+ {
4478
+ name: "finance",
4479
+ type: "object"
4480
+ },
4236
4481
  {
4237
4482
  name: "customFields",
4238
4483
  type: "string",
@@ -4621,6 +4866,10 @@ var operations = [
4621
4866
  name: "totals",
4622
4867
  type: "object"
4623
4868
  },
4869
+ {
4870
+ name: "finance",
4871
+ type: "object"
4872
+ },
4624
4873
  {
4625
4874
  name: "customFields",
4626
4875
  type: "string",
@@ -4788,6 +5037,10 @@ var operations = [
4788
5037
  name: "totals",
4789
5038
  type: "object"
4790
5039
  },
5040
+ {
5041
+ name: "finance",
5042
+ type: "object"
5043
+ },
4791
5044
  {
4792
5045
  name: "customFields",
4793
5046
  type: "string",
@@ -4990,6 +5243,10 @@ var operations = [
4990
5243
  name: "totals",
4991
5244
  type: "object"
4992
5245
  },
5246
+ {
5247
+ name: "finance",
5248
+ type: "object"
5249
+ },
4993
5250
  {
4994
5251
  name: "customFields",
4995
5252
  type: "string",
@@ -5230,6 +5487,10 @@ var operations = [
5230
5487
  name: "invoicingStatus",
5231
5488
  type: "string"
5232
5489
  },
5490
+ {
5491
+ name: "payable",
5492
+ type: "boolean"
5493
+ },
5233
5494
  {
5234
5495
  name: "suppliedBySubcontractor",
5235
5496
  type: "boolean"
@@ -5364,6 +5625,15 @@ var operations = [
5364
5625
  description: "",
5365
5626
  enumValues: ["Billable", "No Charge", "Not Billable"]
5366
5627
  },
5628
+ {
5629
+ name: "payable",
5630
+ cliName: "payable",
5631
+ optionKey: "payable",
5632
+ source: "body",
5633
+ type: "boolean",
5634
+ required: false,
5635
+ description: ""
5636
+ },
5367
5637
  {
5368
5638
  name: "suppliedBySubcontractor",
5369
5639
  cliName: "supplied-by-subcontractor",
@@ -5451,6 +5721,10 @@ var operations = [
5451
5721
  name: "invoicingStatus",
5452
5722
  type: "string"
5453
5723
  },
5724
+ {
5725
+ name: "payable",
5726
+ type: "boolean"
5727
+ },
5454
5728
  {
5455
5729
  name: "suppliedBySubcontractor",
5456
5730
  type: "boolean"
@@ -6292,6 +6566,10 @@ var operations = [
6292
6566
  name: "invoicingStatus",
6293
6567
  type: "string"
6294
6568
  },
6569
+ {
6570
+ name: "payable",
6571
+ type: "boolean"
6572
+ },
6295
6573
  {
6296
6574
  name: "suppliedBySubcontractor",
6297
6575
  type: "boolean"
@@ -6370,6 +6648,190 @@ var operations = [
6370
6648
  required: false,
6371
6649
  description: "Custom fields as key-value pairs — validated against tenant field definitions"
6372
6650
  },
6651
+ {
6652
+ name: "finance",
6653
+ cliName: "finance",
6654
+ optionKey: "finance",
6655
+ source: "body",
6656
+ type: "object",
6657
+ required: false,
6658
+ description: ""
6659
+ },
6660
+ {
6661
+ name: "raw-body",
6662
+ cliName: "raw-body",
6663
+ optionKey: "rawBody",
6664
+ source: "body",
6665
+ type: "object",
6666
+ required: false,
6667
+ description: "Raw request body JSON (overrides individual fields)"
6668
+ }
6669
+ ],
6670
+ hasRequestBody: true,
6671
+ responseFields: [
6672
+ {
6673
+ name: "id",
6674
+ type: "string",
6675
+ description: "Entity ID"
6676
+ },
6677
+ {
6678
+ name: "stageNumber",
6679
+ type: "string"
6680
+ },
6681
+ {
6682
+ name: "jobId",
6683
+ type: "string",
6684
+ description: "Job ID or job number (e.g. J12345)"
6685
+ },
6686
+ {
6687
+ name: "job",
6688
+ type: "object"
6689
+ },
6690
+ {
6691
+ name: "name",
6692
+ type: "string",
6693
+ description: "Display name"
6694
+ },
6695
+ {
6696
+ name: "status",
6697
+ type: "object",
6698
+ description: "Status filter"
6699
+ },
6700
+ {
6701
+ name: "sequence",
6702
+ type: "string",
6703
+ description: "Display order / sequence number"
6704
+ },
6705
+ {
6706
+ name: "owner",
6707
+ type: "string"
6708
+ },
6709
+ {
6710
+ name: "contractor",
6711
+ type: "string"
6712
+ },
6713
+ {
6714
+ name: "pricebook",
6715
+ type: "string"
6716
+ },
6717
+ {
6718
+ name: "resources",
6719
+ type: "string"
6720
+ },
6721
+ {
6722
+ name: "startDate",
6723
+ type: "string",
6724
+ description: "Start date (ISO 8601 datetime)"
6725
+ },
6726
+ {
6727
+ name: "dueDate",
6728
+ type: "string",
6729
+ description: "Due date (ISO 8601 datetime)"
6730
+ },
6731
+ {
6732
+ name: "completedDate",
6733
+ type: "string",
6734
+ description: "Completion date (ISO 8601 datetime)"
6735
+ },
6736
+ {
6737
+ name: "completedBy",
6738
+ type: "string"
6739
+ },
6740
+ {
6741
+ name: "completedNote",
6742
+ type: "string"
6743
+ },
6744
+ {
6745
+ name: "finalisedDate",
6746
+ type: "string",
6747
+ description: "Finalisation date (ISO 8601 datetime)"
6748
+ },
6749
+ {
6750
+ name: "tags",
6751
+ type: "string",
6752
+ description: "Tag operation — use set, add, or remove (mutually exclusive: set vs add/remove)"
6753
+ },
6754
+ {
6755
+ name: "systemTags",
6756
+ type: "string"
6757
+ },
6758
+ {
6759
+ name: "schedulingTags",
6760
+ type: "string",
6761
+ description: "Scheduling tag operation — use set, add, or remove"
6762
+ },
6763
+ {
6764
+ name: "items",
6765
+ type: "array"
6766
+ },
6767
+ {
6768
+ name: "totals",
6769
+ type: "object"
6770
+ },
6771
+ {
6772
+ name: "finance",
6773
+ type: "object"
6774
+ },
6775
+ {
6776
+ name: "customFields",
6777
+ type: "string",
6778
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
6779
+ },
6780
+ {
6781
+ name: "createdAt",
6782
+ type: "string"
6783
+ },
6784
+ {
6785
+ name: "updatedAt",
6786
+ type: "string",
6787
+ description: "For optimistic concurrency — update fails if entity was modified after this timestamp"
6788
+ }
6789
+ ]
6790
+ },
6791
+ {
6792
+ operationId: "PublicJobStageController_updateFinance",
6793
+ displayName: "Set stage finance marks",
6794
+ description: "Mark or unmark a stage Non-Billable and/or Non-Payable. Dispatches the domain finance-lock command once per changed side. Same value is a no-op. Unmarking a stage while the job holds that mark is refused. Requires jobs:financial.",
6795
+ method: "PATCH",
6796
+ path: "/stages/{id}/finance",
6797
+ commandPath: ["stages", "finance", "update-finance"],
6798
+ options: [
6799
+ {
6800
+ name: "id",
6801
+ cliName: "id",
6802
+ optionKey: "id",
6803
+ source: "path",
6804
+ type: "string",
6805
+ required: true,
6806
+ description: "Stage ID"
6807
+ },
6808
+ {
6809
+ name: "nonBillable",
6810
+ cliName: "non-billable",
6811
+ optionKey: "nonBillable",
6812
+ source: "body",
6813
+ type: "boolean",
6814
+ required: false,
6815
+ description: ""
6816
+ },
6817
+ {
6818
+ name: "nonPayable",
6819
+ cliName: "non-payable",
6820
+ optionKey: "nonPayable",
6821
+ source: "body",
6822
+ type: "boolean",
6823
+ required: false,
6824
+ description: ""
6825
+ },
6826
+ {
6827
+ name: "note",
6828
+ cliName: "note",
6829
+ optionKey: "note",
6830
+ source: "body",
6831
+ type: "string",
6832
+ required: false,
6833
+ description: ""
6834
+ },
6373
6835
  {
6374
6836
  name: "raw-body",
6375
6837
  cliName: "raw-body",
@@ -6481,6 +6943,10 @@ var operations = [
6481
6943
  name: "totals",
6482
6944
  type: "object"
6483
6945
  },
6946
+ {
6947
+ name: "finance",
6948
+ type: "object"
6949
+ },
6484
6950
  {
6485
6951
  name: "customFields",
6486
6952
  type: "string",
@@ -6494,6 +6960,10 @@ var operations = [
6494
6960
  name: "updatedAt",
6495
6961
  type: "string",
6496
6962
  description: "For optimistic concurrency — update fails if entity was modified after this timestamp"
6963
+ },
6964
+ {
6965
+ name: "summary",
6966
+ type: "object"
6497
6967
  }
6498
6968
  ]
6499
6969
  },
@@ -6731,6 +7201,10 @@ var operations = [
6731
7201
  name: "totals",
6732
7202
  type: "object"
6733
7203
  },
7204
+ {
7205
+ name: "finance",
7206
+ type: "object"
7207
+ },
6734
7208
  {
6735
7209
  name: "customFields",
6736
7210
  type: "string",
@@ -6892,6 +7366,10 @@ var operations = [
6892
7366
  name: "totals",
6893
7367
  type: "object"
6894
7368
  },
7369
+ {
7370
+ name: "finance",
7371
+ type: "object"
7372
+ },
6895
7373
  {
6896
7374
  name: "customFields",
6897
7375
  type: "string",
@@ -7064,6 +7542,10 @@ var operations = [
7064
7542
  name: "totals",
7065
7543
  type: "object"
7066
7544
  },
7545
+ {
7546
+ name: "finance",
7547
+ type: "object"
7548
+ },
7067
7549
  {
7068
7550
  name: "customFields",
7069
7551
  type: "string",
@@ -7226,6 +7708,10 @@ var operations = [
7226
7708
  name: "totals",
7227
7709
  type: "object"
7228
7710
  },
7711
+ {
7712
+ name: "finance",
7713
+ type: "object"
7714
+ },
7229
7715
  {
7230
7716
  name: "customFields",
7231
7717
  type: "string",
@@ -7389,6 +7875,10 @@ var operations = [
7389
7875
  name: "totals",
7390
7876
  type: "object"
7391
7877
  },
7878
+ {
7879
+ name: "finance",
7880
+ type: "object"
7881
+ },
7392
7882
  {
7393
7883
  name: "customFields",
7394
7884
  type: "string",
@@ -7542,6 +8032,10 @@ var operations = [
7542
8032
  name: "totals",
7543
8033
  type: "object"
7544
8034
  },
8035
+ {
8036
+ name: "finance",
8037
+ type: "object"
8038
+ },
7545
8039
  {
7546
8040
  name: "customFields",
7547
8041
  type: "string",
@@ -7704,6 +8198,10 @@ var operations = [
7704
8198
  name: "totals",
7705
8199
  type: "object"
7706
8200
  },
8201
+ {
8202
+ name: "finance",
8203
+ type: "object"
8204
+ },
7707
8205
  {
7708
8206
  name: "customFields",
7709
8207
  type: "string",
@@ -7867,6 +8365,10 @@ var operations = [
7867
8365
  name: "totals",
7868
8366
  type: "object"
7869
8367
  },
8368
+ {
8369
+ name: "finance",
8370
+ type: "object"
8371
+ },
7870
8372
  {
7871
8373
  name: "customFields",
7872
8374
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-vnext",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",