@workbuddy/cli-vnext 1.0.4 → 1.0.6

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 +995 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2874,6 +2874,15 @@ var operations = [
2874
2874
  required: false,
2875
2875
  description: ""
2876
2876
  },
2877
+ {
2878
+ name: "integrationId",
2879
+ cliName: "integration-id",
2880
+ optionKey: "integrationId",
2881
+ source: "body",
2882
+ type: "array",
2883
+ required: false,
2884
+ description: "integration ID"
2885
+ },
2877
2886
  {
2878
2887
  name: "resource",
2879
2888
  cliName: "resource",
@@ -3007,7 +3016,7 @@ var operations = [
3007
3016
  {
3008
3017
  operationId: "PublicApiJobController_get",
3009
3018
  displayName: "Get job by ID or job number",
3010
- description: "Retrieve a single job by its ID or human-readable job number.",
3019
+ description: "Retrieve a single job by its ID, human-readable job number, or external integration ID.",
3011
3020
  method: "GET",
3012
3021
  path: "/jobs/{identifier}",
3013
3022
  commandPath: ["jobs", "get"],
@@ -3019,7 +3028,7 @@ var operations = [
3019
3028
  source: "path",
3020
3029
  type: "string",
3021
3030
  required: true,
3022
- description: "Job ID (MongoDB ObjectId) or job number (e.g., JOB-12345)"
3031
+ description: "Job ID (MongoDB ObjectId), job number (e.g., JOB-12345), or external integration ID"
3023
3032
  }
3024
3033
  ],
3025
3034
  hasRequestBody: false,
@@ -3029,6 +3038,11 @@ var operations = [
3029
3038
  type: "string",
3030
3039
  description: "Entity ID"
3031
3040
  },
3041
+ {
3042
+ name: "integrationId",
3043
+ type: "string",
3044
+ description: "integration ID"
3045
+ },
3032
3046
  {
3033
3047
  name: "jobNumber",
3034
3048
  type: "string"
@@ -3227,6 +3241,15 @@ var operations = [
3227
3241
  required: false,
3228
3242
  description: "Display name"
3229
3243
  },
3244
+ {
3245
+ name: "integrationId",
3246
+ cliName: "integration-id",
3247
+ optionKey: "integrationId",
3248
+ source: "body",
3249
+ type: "string",
3250
+ required: false,
3251
+ description: "integration ID"
3252
+ },
3230
3253
  {
3231
3254
  name: "description",
3232
3255
  cliName: "description",
@@ -3446,6 +3469,11 @@ var operations = [
3446
3469
  type: "string",
3447
3470
  description: "Entity ID"
3448
3471
  },
3472
+ {
3473
+ name: "integrationId",
3474
+ type: "string",
3475
+ description: "integration ID"
3476
+ },
3449
3477
  {
3450
3478
  name: "jobNumber",
3451
3479
  type: "string"
@@ -3619,6 +3647,15 @@ var operations = [
3619
3647
  required: false,
3620
3648
  description: "Display name"
3621
3649
  },
3650
+ {
3651
+ name: "integrationId",
3652
+ cliName: "integration-id",
3653
+ optionKey: "integrationId",
3654
+ source: "body",
3655
+ type: "string",
3656
+ required: false,
3657
+ description: "integration ID"
3658
+ },
3622
3659
  {
3623
3660
  name: "description",
3624
3661
  cliName: "description",
@@ -3820,6 +3857,11 @@ var operations = [
3820
3857
  type: "string",
3821
3858
  description: "Entity ID"
3822
3859
  },
3860
+ {
3861
+ name: "integrationId",
3862
+ type: "string",
3863
+ description: "integration ID"
3864
+ },
3823
3865
  {
3824
3866
  name: "jobNumber",
3825
3867
  type: "string"
@@ -3982,6 +4024,11 @@ var operations = [
3982
4024
  type: "string",
3983
4025
  description: "Entity ID"
3984
4026
  },
4027
+ {
4028
+ name: "integrationId",
4029
+ type: "string",
4030
+ description: "integration ID"
4031
+ },
3985
4032
  {
3986
4033
  name: "jobNumber",
3987
4034
  type: "string"
@@ -9028,6 +9075,133 @@ var operations = [
9028
9075
  }
9029
9076
  ]
9030
9077
  },
9078
+ {
9079
+ operationId: "PublicCrmCustomerController_create",
9080
+ displayName: "Create customer",
9081
+ description: "Create customer",
9082
+ method: "POST",
9083
+ path: "/customers",
9084
+ commandPath: ["crm", "customers", "create"],
9085
+ options: [
9086
+ {
9087
+ name: "name",
9088
+ cliName: "name",
9089
+ optionKey: "name",
9090
+ source: "body",
9091
+ type: "string",
9092
+ required: true,
9093
+ description: "Display name"
9094
+ },
9095
+ {
9096
+ name: "legalName",
9097
+ cliName: "legal-name",
9098
+ optionKey: "legalName",
9099
+ source: "body",
9100
+ type: "string",
9101
+ required: false,
9102
+ description: ""
9103
+ },
9104
+ {
9105
+ name: "phone",
9106
+ cliName: "phone",
9107
+ optionKey: "phone",
9108
+ source: "body",
9109
+ type: "string",
9110
+ required: false,
9111
+ description: "Phone number"
9112
+ },
9113
+ {
9114
+ name: "email",
9115
+ cliName: "email",
9116
+ optionKey: "email",
9117
+ source: "body",
9118
+ type: "string",
9119
+ required: false,
9120
+ description: "Email address",
9121
+ format: "email"
9122
+ },
9123
+ {
9124
+ name: "website",
9125
+ cliName: "website",
9126
+ optionKey: "website",
9127
+ source: "body",
9128
+ type: "string",
9129
+ required: false,
9130
+ description: ""
9131
+ },
9132
+ {
9133
+ name: "integrationId",
9134
+ cliName: "integration-id",
9135
+ optionKey: "integrationId",
9136
+ source: "body",
9137
+ type: "string",
9138
+ required: false,
9139
+ description: "integration ID"
9140
+ },
9141
+ {
9142
+ name: "address",
9143
+ cliName: "address",
9144
+ optionKey: "address",
9145
+ source: "body",
9146
+ type: "object",
9147
+ required: true,
9148
+ description: ""
9149
+ },
9150
+ {
9151
+ name: "contact",
9152
+ cliName: "contact",
9153
+ optionKey: "contact",
9154
+ source: "body",
9155
+ type: "object",
9156
+ required: true,
9157
+ description: "Inline contact object — alternative to contactId"
9158
+ },
9159
+ {
9160
+ name: "customFields",
9161
+ cliName: "custom-fields",
9162
+ optionKey: "customFields",
9163
+ source: "body",
9164
+ type: "object",
9165
+ required: false,
9166
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
9167
+ },
9168
+ {
9169
+ name: "type",
9170
+ cliName: "type",
9171
+ optionKey: "type",
9172
+ source: "body",
9173
+ type: "string",
9174
+ required: true,
9175
+ description: "",
9176
+ enumValues: ["Service Provider", "Business", "Residential"]
9177
+ },
9178
+ {
9179
+ name: "socialNetwork",
9180
+ cliName: "social-network",
9181
+ optionKey: "socialNetwork",
9182
+ source: "body",
9183
+ type: "object",
9184
+ required: false,
9185
+ description: ""
9186
+ },
9187
+ {
9188
+ name: "raw-body",
9189
+ cliName: "raw-body",
9190
+ optionKey: "rawBody",
9191
+ source: "body",
9192
+ type: "object",
9193
+ required: false,
9194
+ description: "Raw request body JSON (overrides individual fields)"
9195
+ }
9196
+ ],
9197
+ hasRequestBody: true,
9198
+ responseFields: [
9199
+ {
9200
+ name: "item",
9201
+ type: "object"
9202
+ }
9203
+ ]
9204
+ },
9031
9205
  {
9032
9206
  operationId: "PublicCrmCustomerController_getById",
9033
9207
  displayName: "Get customer by ID",
@@ -9043,7 +9217,7 @@ var operations = [
9043
9217
  source: "path",
9044
9218
  type: "string",
9045
9219
  required: true,
9046
- description: "Customer ID"
9220
+ description: "Customer ID or integration ID"
9047
9221
  }
9048
9222
  ],
9049
9223
  hasRequestBody: false,
@@ -9054,6 +9228,150 @@ var operations = [
9054
9228
  }
9055
9229
  ]
9056
9230
  },
9231
+ {
9232
+ operationId: "PublicCrmCustomerController_update",
9233
+ displayName: "Update customer",
9234
+ description: "Update customer",
9235
+ method: "PATCH",
9236
+ path: "/customers/{id}",
9237
+ commandPath: ["crm", "customers", "update"],
9238
+ options: [
9239
+ {
9240
+ name: "id",
9241
+ cliName: "id",
9242
+ optionKey: "id",
9243
+ source: "path",
9244
+ type: "string",
9245
+ required: true,
9246
+ description: "Customer ID or integration ID"
9247
+ },
9248
+ {
9249
+ name: "name",
9250
+ cliName: "name",
9251
+ optionKey: "name",
9252
+ source: "body",
9253
+ type: "string",
9254
+ required: false,
9255
+ description: "Display name"
9256
+ },
9257
+ {
9258
+ name: "legalName",
9259
+ cliName: "legal-name",
9260
+ optionKey: "legalName",
9261
+ source: "body",
9262
+ type: "string",
9263
+ required: false,
9264
+ description: ""
9265
+ },
9266
+ {
9267
+ name: "phone",
9268
+ cliName: "phone",
9269
+ optionKey: "phone",
9270
+ source: "body",
9271
+ type: "string",
9272
+ required: false,
9273
+ description: "Phone number"
9274
+ },
9275
+ {
9276
+ name: "email",
9277
+ cliName: "email",
9278
+ optionKey: "email",
9279
+ source: "body",
9280
+ type: "string",
9281
+ required: false,
9282
+ description: "Email address",
9283
+ format: "email"
9284
+ },
9285
+ {
9286
+ name: "website",
9287
+ cliName: "website",
9288
+ optionKey: "website",
9289
+ source: "body",
9290
+ type: "string",
9291
+ required: false,
9292
+ description: ""
9293
+ },
9294
+ {
9295
+ name: "integrationId",
9296
+ cliName: "integration-id",
9297
+ optionKey: "integrationId",
9298
+ source: "body",
9299
+ type: "string",
9300
+ required: false,
9301
+ description: "integration ID"
9302
+ },
9303
+ {
9304
+ name: "address",
9305
+ cliName: "address",
9306
+ optionKey: "address",
9307
+ source: "body",
9308
+ type: "object",
9309
+ required: false,
9310
+ description: ""
9311
+ },
9312
+ {
9313
+ name: "owner",
9314
+ cliName: "owner",
9315
+ optionKey: "owner",
9316
+ source: "body",
9317
+ type: "object",
9318
+ required: false,
9319
+ description: ""
9320
+ },
9321
+ {
9322
+ name: "labels",
9323
+ cliName: "labels",
9324
+ optionKey: "labels",
9325
+ source: "body",
9326
+ type: "array",
9327
+ required: false,
9328
+ description: ""
9329
+ },
9330
+ {
9331
+ name: "description",
9332
+ cliName: "description",
9333
+ optionKey: "description",
9334
+ source: "body",
9335
+ type: "string",
9336
+ required: false,
9337
+ description: "Detailed description"
9338
+ },
9339
+ {
9340
+ name: "customFields",
9341
+ cliName: "custom-fields",
9342
+ optionKey: "customFields",
9343
+ source: "body",
9344
+ type: "object",
9345
+ required: false,
9346
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
9347
+ },
9348
+ {
9349
+ name: "socialNetwork",
9350
+ cliName: "social-network",
9351
+ optionKey: "socialNetwork",
9352
+ source: "body",
9353
+ type: "object",
9354
+ required: false,
9355
+ description: ""
9356
+ },
9357
+ {
9358
+ name: "raw-body",
9359
+ cliName: "raw-body",
9360
+ optionKey: "rawBody",
9361
+ source: "body",
9362
+ type: "object",
9363
+ required: false,
9364
+ description: "Raw request body JSON (overrides individual fields)"
9365
+ }
9366
+ ],
9367
+ hasRequestBody: true,
9368
+ responseFields: [
9369
+ {
9370
+ name: "item",
9371
+ type: "object"
9372
+ }
9373
+ ]
9374
+ },
9057
9375
  {
9058
9376
  operationId: "PublicCrmCustomerController_listContacts",
9059
9377
  displayName: "List contacts for customer",
@@ -9257,26 +9575,350 @@ var operations = [
9257
9575
  ]
9258
9576
  },
9259
9577
  {
9260
- operationId: "PublicCrmContractorController_getById",
9261
- displayName: "Get contractor by ID",
9262
- description: "Get contractor by ID",
9263
- method: "GET",
9264
- path: "/contractors/{id}",
9265
- commandPath: ["crm", "contractors", "get"],
9578
+ operationId: "PublicCrmContractorController_create",
9579
+ displayName: "Create contractor",
9580
+ description: "Create contractor",
9581
+ method: "POST",
9582
+ path: "/contractors",
9583
+ commandPath: ["crm", "contractors", "create"],
9266
9584
  options: [
9267
9585
  {
9268
- name: "id",
9269
- cliName: "id",
9270
- optionKey: "id",
9271
- source: "path",
9586
+ name: "name",
9587
+ cliName: "name",
9588
+ optionKey: "name",
9589
+ source: "body",
9272
9590
  type: "string",
9273
9591
  required: true,
9274
- description: "Contractor ID"
9275
- }
9276
- ],
9277
- hasRequestBody: false,
9278
- responseFields: [
9279
- {
9592
+ description: "Display name"
9593
+ },
9594
+ {
9595
+ name: "legalName",
9596
+ cliName: "legal-name",
9597
+ optionKey: "legalName",
9598
+ source: "body",
9599
+ type: "string",
9600
+ required: false,
9601
+ description: ""
9602
+ },
9603
+ {
9604
+ name: "phone",
9605
+ cliName: "phone",
9606
+ optionKey: "phone",
9607
+ source: "body",
9608
+ type: "string",
9609
+ required: false,
9610
+ description: "Phone number"
9611
+ },
9612
+ {
9613
+ name: "email",
9614
+ cliName: "email",
9615
+ optionKey: "email",
9616
+ source: "body",
9617
+ type: "string",
9618
+ required: false,
9619
+ description: "Email address",
9620
+ format: "email"
9621
+ },
9622
+ {
9623
+ name: "website",
9624
+ cliName: "website",
9625
+ optionKey: "website",
9626
+ source: "body",
9627
+ type: "string",
9628
+ required: false,
9629
+ description: ""
9630
+ },
9631
+ {
9632
+ name: "integrationId",
9633
+ cliName: "integration-id",
9634
+ optionKey: "integrationId",
9635
+ source: "body",
9636
+ type: "string",
9637
+ required: false,
9638
+ description: "integration ID"
9639
+ },
9640
+ {
9641
+ name: "address",
9642
+ cliName: "address",
9643
+ optionKey: "address",
9644
+ source: "body",
9645
+ type: "object",
9646
+ required: true,
9647
+ description: ""
9648
+ },
9649
+ {
9650
+ name: "contact",
9651
+ cliName: "contact",
9652
+ optionKey: "contact",
9653
+ source: "body",
9654
+ type: "object",
9655
+ required: true,
9656
+ description: "Inline contact object — alternative to contactId"
9657
+ },
9658
+ {
9659
+ name: "customFields",
9660
+ cliName: "custom-fields",
9661
+ optionKey: "customFields",
9662
+ source: "body",
9663
+ type: "object",
9664
+ required: false,
9665
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
9666
+ },
9667
+ {
9668
+ name: "hidePrices",
9669
+ cliName: "hide-prices",
9670
+ optionKey: "hidePrices",
9671
+ source: "body",
9672
+ type: "boolean",
9673
+ required: false,
9674
+ description: ""
9675
+ },
9676
+ {
9677
+ name: "raw-body",
9678
+ cliName: "raw-body",
9679
+ optionKey: "rawBody",
9680
+ source: "body",
9681
+ type: "object",
9682
+ required: false,
9683
+ description: "Raw request body JSON (overrides individual fields)"
9684
+ }
9685
+ ],
9686
+ hasRequestBody: true,
9687
+ responseFields: [
9688
+ {
9689
+ name: "item",
9690
+ type: "object"
9691
+ }
9692
+ ]
9693
+ },
9694
+ {
9695
+ operationId: "PublicCrmContractorController_getById",
9696
+ displayName: "Get contractor by ID",
9697
+ description: "Get contractor by ID",
9698
+ method: "GET",
9699
+ path: "/contractors/{id}",
9700
+ commandPath: ["crm", "contractors", "get"],
9701
+ options: [
9702
+ {
9703
+ name: "id",
9704
+ cliName: "id",
9705
+ optionKey: "id",
9706
+ source: "path",
9707
+ type: "string",
9708
+ required: true,
9709
+ description: "Contractor ID or integration ID"
9710
+ }
9711
+ ],
9712
+ hasRequestBody: false,
9713
+ responseFields: [
9714
+ {
9715
+ name: "item",
9716
+ type: "object"
9717
+ }
9718
+ ]
9719
+ },
9720
+ {
9721
+ operationId: "PublicCrmContractorController_update",
9722
+ displayName: "Update contractor",
9723
+ description: "Update contractor",
9724
+ method: "PATCH",
9725
+ path: "/contractors/{id}",
9726
+ commandPath: ["crm", "contractors", "update"],
9727
+ options: [
9728
+ {
9729
+ name: "id",
9730
+ cliName: "id",
9731
+ optionKey: "id",
9732
+ source: "path",
9733
+ type: "string",
9734
+ required: true,
9735
+ description: "Contractor ID or integration ID"
9736
+ },
9737
+ {
9738
+ name: "name",
9739
+ cliName: "name",
9740
+ optionKey: "name",
9741
+ source: "body",
9742
+ type: "string",
9743
+ required: false,
9744
+ description: "Display name"
9745
+ },
9746
+ {
9747
+ name: "legalName",
9748
+ cliName: "legal-name",
9749
+ optionKey: "legalName",
9750
+ source: "body",
9751
+ type: "string",
9752
+ required: false,
9753
+ description: ""
9754
+ },
9755
+ {
9756
+ name: "phone",
9757
+ cliName: "phone",
9758
+ optionKey: "phone",
9759
+ source: "body",
9760
+ type: "string",
9761
+ required: false,
9762
+ description: "Phone number"
9763
+ },
9764
+ {
9765
+ name: "email",
9766
+ cliName: "email",
9767
+ optionKey: "email",
9768
+ source: "body",
9769
+ type: "string",
9770
+ required: false,
9771
+ description: "Email address",
9772
+ format: "email"
9773
+ },
9774
+ {
9775
+ name: "website",
9776
+ cliName: "website",
9777
+ optionKey: "website",
9778
+ source: "body",
9779
+ type: "string",
9780
+ required: false,
9781
+ description: ""
9782
+ },
9783
+ {
9784
+ name: "integrationId",
9785
+ cliName: "integration-id",
9786
+ optionKey: "integrationId",
9787
+ source: "body",
9788
+ type: "string",
9789
+ required: false,
9790
+ description: "integration ID"
9791
+ },
9792
+ {
9793
+ name: "address",
9794
+ cliName: "address",
9795
+ optionKey: "address",
9796
+ source: "body",
9797
+ type: "object",
9798
+ required: false,
9799
+ description: ""
9800
+ },
9801
+ {
9802
+ name: "owner",
9803
+ cliName: "owner",
9804
+ optionKey: "owner",
9805
+ source: "body",
9806
+ type: "object",
9807
+ required: false,
9808
+ description: ""
9809
+ },
9810
+ {
9811
+ name: "labels",
9812
+ cliName: "labels",
9813
+ optionKey: "labels",
9814
+ source: "body",
9815
+ type: "array",
9816
+ required: false,
9817
+ description: ""
9818
+ },
9819
+ {
9820
+ name: "description",
9821
+ cliName: "description",
9822
+ optionKey: "description",
9823
+ source: "body",
9824
+ type: "string",
9825
+ required: false,
9826
+ description: "Detailed description"
9827
+ },
9828
+ {
9829
+ name: "customFields",
9830
+ cliName: "custom-fields",
9831
+ optionKey: "customFields",
9832
+ source: "body",
9833
+ type: "object",
9834
+ required: false,
9835
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
9836
+ },
9837
+ {
9838
+ name: "zones",
9839
+ cliName: "zones",
9840
+ optionKey: "zones",
9841
+ source: "body",
9842
+ type: "array",
9843
+ required: false,
9844
+ description: ""
9845
+ },
9846
+ {
9847
+ name: "companies",
9848
+ cliName: "companies",
9849
+ optionKey: "companies",
9850
+ source: "body",
9851
+ type: "array",
9852
+ required: false,
9853
+ description: ""
9854
+ },
9855
+ {
9856
+ name: "workCategories",
9857
+ cliName: "work-categories",
9858
+ optionKey: "workCategories",
9859
+ source: "body",
9860
+ type: "array",
9861
+ required: false,
9862
+ description: ""
9863
+ },
9864
+ {
9865
+ name: "scheduling",
9866
+ cliName: "scheduling",
9867
+ optionKey: "scheduling",
9868
+ source: "body",
9869
+ type: "object",
9870
+ required: false,
9871
+ description: ""
9872
+ },
9873
+ {
9874
+ name: "dispatching",
9875
+ cliName: "dispatching",
9876
+ optionKey: "dispatching",
9877
+ source: "body",
9878
+ type: "object",
9879
+ required: false,
9880
+ description: ""
9881
+ },
9882
+ {
9883
+ name: "timesheet",
9884
+ cliName: "timesheet",
9885
+ optionKey: "timesheet",
9886
+ source: "body",
9887
+ type: "object",
9888
+ required: false,
9889
+ description: ""
9890
+ },
9891
+ {
9892
+ name: "hidePrices",
9893
+ cliName: "hide-prices",
9894
+ optionKey: "hidePrices",
9895
+ source: "body",
9896
+ type: "boolean",
9897
+ required: false,
9898
+ description: ""
9899
+ },
9900
+ {
9901
+ name: "pricebook",
9902
+ cliName: "pricebook",
9903
+ optionKey: "pricebook",
9904
+ source: "body",
9905
+ type: "object",
9906
+ required: false,
9907
+ description: ""
9908
+ },
9909
+ {
9910
+ name: "raw-body",
9911
+ cliName: "raw-body",
9912
+ optionKey: "rawBody",
9913
+ source: "body",
9914
+ type: "object",
9915
+ required: false,
9916
+ description: "Raw request body JSON (overrides individual fields)"
9917
+ }
9918
+ ],
9919
+ hasRequestBody: true,
9920
+ responseFields: [
9921
+ {
9280
9922
  name: "item",
9281
9923
  type: "object"
9282
9924
  }
@@ -9321,6 +9963,123 @@ var operations = [
9321
9963
  }
9322
9964
  ]
9323
9965
  },
9966
+ {
9967
+ operationId: "PublicCrmSupplierController_create",
9968
+ displayName: "Create supplier",
9969
+ description: "Create supplier",
9970
+ method: "POST",
9971
+ path: "/suppliers",
9972
+ commandPath: ["crm", "suppliers", "create"],
9973
+ options: [
9974
+ {
9975
+ name: "name",
9976
+ cliName: "name",
9977
+ optionKey: "name",
9978
+ source: "body",
9979
+ type: "string",
9980
+ required: true,
9981
+ description: "Display name"
9982
+ },
9983
+ {
9984
+ name: "legalName",
9985
+ cliName: "legal-name",
9986
+ optionKey: "legalName",
9987
+ source: "body",
9988
+ type: "string",
9989
+ required: false,
9990
+ description: ""
9991
+ },
9992
+ {
9993
+ name: "phone",
9994
+ cliName: "phone",
9995
+ optionKey: "phone",
9996
+ source: "body",
9997
+ type: "string",
9998
+ required: false,
9999
+ description: "Phone number"
10000
+ },
10001
+ {
10002
+ name: "email",
10003
+ cliName: "email",
10004
+ optionKey: "email",
10005
+ source: "body",
10006
+ type: "string",
10007
+ required: false,
10008
+ description: "Email address",
10009
+ format: "email"
10010
+ },
10011
+ {
10012
+ name: "website",
10013
+ cliName: "website",
10014
+ optionKey: "website",
10015
+ source: "body",
10016
+ type: "string",
10017
+ required: false,
10018
+ description: ""
10019
+ },
10020
+ {
10021
+ name: "integrationId",
10022
+ cliName: "integration-id",
10023
+ optionKey: "integrationId",
10024
+ source: "body",
10025
+ type: "string",
10026
+ required: false,
10027
+ description: "integration ID"
10028
+ },
10029
+ {
10030
+ name: "address",
10031
+ cliName: "address",
10032
+ optionKey: "address",
10033
+ source: "body",
10034
+ type: "object",
10035
+ required: true,
10036
+ description: ""
10037
+ },
10038
+ {
10039
+ name: "contact",
10040
+ cliName: "contact",
10041
+ optionKey: "contact",
10042
+ source: "body",
10043
+ type: "object",
10044
+ required: true,
10045
+ description: "Inline contact object — alternative to contactId"
10046
+ },
10047
+ {
10048
+ name: "customFields",
10049
+ cliName: "custom-fields",
10050
+ optionKey: "customFields",
10051
+ source: "body",
10052
+ type: "object",
10053
+ required: false,
10054
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
10055
+ },
10056
+ {
10057
+ name: "taxId",
10058
+ cliName: "tax-id",
10059
+ optionKey: "taxId",
10060
+ source: "body",
10061
+ type: "string",
10062
+ required: false,
10063
+ description: "tax ID"
10064
+ },
10065
+ {
10066
+ name: "raw-body",
10067
+ cliName: "raw-body",
10068
+ optionKey: "rawBody",
10069
+ source: "body",
10070
+ type: "object",
10071
+ required: false,
10072
+ description: "Raw request body JSON (overrides individual fields)"
10073
+ }
10074
+ ],
10075
+ hasRequestBody: true,
10076
+ responseFields: [
10077
+ {
10078
+ name: "item",
10079
+ type: "object"
10080
+ }
10081
+ ]
10082
+ },
9324
10083
  {
9325
10084
  operationId: "PublicCrmSupplierController_getById",
9326
10085
  displayName: "Get supplier by ID",
@@ -9336,7 +10095,7 @@ var operations = [
9336
10095
  source: "path",
9337
10096
  type: "string",
9338
10097
  required: true,
9339
- description: "Supplier ID"
10098
+ description: "Supplier ID or integration ID"
9340
10099
  }
9341
10100
  ],
9342
10101
  hasRequestBody: false,
@@ -9347,6 +10106,222 @@ var operations = [
9347
10106
  }
9348
10107
  ]
9349
10108
  },
10109
+ {
10110
+ operationId: "PublicCrmSupplierController_update",
10111
+ displayName: "Update supplier",
10112
+ description: "Update supplier",
10113
+ method: "PATCH",
10114
+ path: "/suppliers/{id}",
10115
+ commandPath: ["crm", "suppliers", "update"],
10116
+ options: [
10117
+ {
10118
+ name: "id",
10119
+ cliName: "id",
10120
+ optionKey: "id",
10121
+ source: "path",
10122
+ type: "string",
10123
+ required: true,
10124
+ description: "Supplier ID or integration ID"
10125
+ },
10126
+ {
10127
+ name: "name",
10128
+ cliName: "name",
10129
+ optionKey: "name",
10130
+ source: "body",
10131
+ type: "string",
10132
+ required: false,
10133
+ description: "Display name"
10134
+ },
10135
+ {
10136
+ name: "legalName",
10137
+ cliName: "legal-name",
10138
+ optionKey: "legalName",
10139
+ source: "body",
10140
+ type: "string",
10141
+ required: false,
10142
+ description: ""
10143
+ },
10144
+ {
10145
+ name: "phone",
10146
+ cliName: "phone",
10147
+ optionKey: "phone",
10148
+ source: "body",
10149
+ type: "string",
10150
+ required: false,
10151
+ description: "Phone number"
10152
+ },
10153
+ {
10154
+ name: "email",
10155
+ cliName: "email",
10156
+ optionKey: "email",
10157
+ source: "body",
10158
+ type: "string",
10159
+ required: false,
10160
+ description: "Email address",
10161
+ format: "email"
10162
+ },
10163
+ {
10164
+ name: "website",
10165
+ cliName: "website",
10166
+ optionKey: "website",
10167
+ source: "body",
10168
+ type: "string",
10169
+ required: false,
10170
+ description: ""
10171
+ },
10172
+ {
10173
+ name: "integrationId",
10174
+ cliName: "integration-id",
10175
+ optionKey: "integrationId",
10176
+ source: "body",
10177
+ type: "string",
10178
+ required: false,
10179
+ description: "integration ID"
10180
+ },
10181
+ {
10182
+ name: "address",
10183
+ cliName: "address",
10184
+ optionKey: "address",
10185
+ source: "body",
10186
+ type: "object",
10187
+ required: false,
10188
+ description: ""
10189
+ },
10190
+ {
10191
+ name: "owner",
10192
+ cliName: "owner",
10193
+ optionKey: "owner",
10194
+ source: "body",
10195
+ type: "object",
10196
+ required: false,
10197
+ description: ""
10198
+ },
10199
+ {
10200
+ name: "labels",
10201
+ cliName: "labels",
10202
+ optionKey: "labels",
10203
+ source: "body",
10204
+ type: "array",
10205
+ required: false,
10206
+ description: ""
10207
+ },
10208
+ {
10209
+ name: "description",
10210
+ cliName: "description",
10211
+ optionKey: "description",
10212
+ source: "body",
10213
+ type: "string",
10214
+ required: false,
10215
+ description: "Detailed description"
10216
+ },
10217
+ {
10218
+ name: "customFields",
10219
+ cliName: "custom-fields",
10220
+ optionKey: "customFields",
10221
+ source: "body",
10222
+ type: "object",
10223
+ required: false,
10224
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
10225
+ },
10226
+ {
10227
+ name: "zones",
10228
+ cliName: "zones",
10229
+ optionKey: "zones",
10230
+ source: "body",
10231
+ type: "array",
10232
+ required: false,
10233
+ description: ""
10234
+ },
10235
+ {
10236
+ name: "workCategories",
10237
+ cliName: "work-categories",
10238
+ optionKey: "workCategories",
10239
+ source: "body",
10240
+ type: "array",
10241
+ required: false,
10242
+ description: ""
10243
+ },
10244
+ {
10245
+ name: "taxId",
10246
+ cliName: "tax-id",
10247
+ optionKey: "taxId",
10248
+ source: "body",
10249
+ type: "string",
10250
+ required: false,
10251
+ description: "tax ID"
10252
+ },
10253
+ {
10254
+ name: "accounting",
10255
+ cliName: "accounting",
10256
+ optionKey: "accounting",
10257
+ source: "body",
10258
+ type: "object",
10259
+ required: false,
10260
+ description: ""
10261
+ },
10262
+ {
10263
+ name: "financeTags",
10264
+ cliName: "finance-tags",
10265
+ optionKey: "financeTags",
10266
+ source: "body",
10267
+ type: "array",
10268
+ required: false,
10269
+ description: ""
10270
+ },
10271
+ {
10272
+ name: "invoices",
10273
+ cliName: "invoices",
10274
+ optionKey: "invoices",
10275
+ source: "body",
10276
+ type: "object",
10277
+ required: false,
10278
+ description: ""
10279
+ },
10280
+ {
10281
+ name: "billTo",
10282
+ cliName: "bill-to",
10283
+ optionKey: "billTo",
10284
+ source: "body",
10285
+ type: "object",
10286
+ required: false,
10287
+ description: ""
10288
+ },
10289
+ {
10290
+ name: "credit",
10291
+ cliName: "credit",
10292
+ optionKey: "credit",
10293
+ source: "body",
10294
+ type: "object",
10295
+ required: false,
10296
+ description: ""
10297
+ },
10298
+ {
10299
+ name: "billTheme",
10300
+ cliName: "bill-theme",
10301
+ optionKey: "billTheme",
10302
+ source: "body",
10303
+ type: "object",
10304
+ required: false,
10305
+ description: ""
10306
+ },
10307
+ {
10308
+ name: "raw-body",
10309
+ cliName: "raw-body",
10310
+ optionKey: "rawBody",
10311
+ source: "body",
10312
+ type: "object",
10313
+ required: false,
10314
+ description: "Raw request body JSON (overrides individual fields)"
10315
+ }
10316
+ ],
10317
+ hasRequestBody: true,
10318
+ responseFields: [
10319
+ {
10320
+ name: "item",
10321
+ type: "object"
10322
+ }
10323
+ ]
10324
+ },
9350
10325
  {
9351
10326
  operationId: "PublicCrmCompanyController_list",
9352
10327
  displayName: "List companies",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-vnext",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",