@workbuddy/cli-vnext 1.0.64 → 1.0.66

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 +271 -516
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4918,7 +4918,7 @@ var operations = [
4918
4918
  },
4919
4919
  {
4920
4920
  name: "sequence",
4921
- type: "number",
4921
+ type: "string",
4922
4922
  description: "Display order / sequence number"
4923
4923
  },
4924
4924
  {
@@ -5563,15 +5563,6 @@ var operations = [
5563
5563
  description: "Work category ID — use /settings/work-types to look up",
5564
5564
  lookupEndpoint: "/settings/work-types"
5565
5565
  },
5566
- {
5567
- name: "sequence",
5568
- cliName: "sequence",
5569
- optionKey: "sequence",
5570
- source: "body",
5571
- type: "number",
5572
- required: false,
5573
- description: "Display order / sequence number"
5574
- },
5575
5566
  {
5576
5567
  name: "startDate",
5577
5568
  cliName: "start-date",
@@ -5641,7 +5632,7 @@ var operations = [
5641
5632
  },
5642
5633
  {
5643
5634
  name: "sequence",
5644
- type: "number",
5635
+ type: "string",
5645
5636
  description: "Display order / sequence number"
5646
5637
  },
5647
5638
  {
@@ -5891,7 +5882,7 @@ var operations = [
5891
5882
  },
5892
5883
  {
5893
5884
  name: "sequence",
5894
- type: "number",
5885
+ type: "string",
5895
5886
  description: "Display order / sequence number"
5896
5887
  },
5897
5888
  {
@@ -6052,7 +6043,7 @@ var operations = [
6052
6043
  },
6053
6044
  {
6054
6045
  name: "sequence",
6055
- type: "number",
6046
+ type: "string",
6056
6047
  description: "Display order / sequence number"
6057
6048
  },
6058
6049
  {
@@ -6215,7 +6206,7 @@ var operations = [
6215
6206
  },
6216
6207
  {
6217
6208
  name: "sequence",
6218
- type: "number",
6209
+ type: "string",
6219
6210
  description: "Display order / sequence number"
6220
6211
  },
6221
6212
  {
@@ -6378,7 +6369,7 @@ var operations = [
6378
6369
  },
6379
6370
  {
6380
6371
  name: "sequence",
6381
- type: "number",
6372
+ type: "string",
6382
6373
  description: "Display order / sequence number"
6383
6374
  },
6384
6375
  {
@@ -6531,7 +6522,7 @@ var operations = [
6531
6522
  },
6532
6523
  {
6533
6524
  name: "sequence",
6534
- type: "number",
6525
+ type: "string",
6535
6526
  description: "Display order / sequence number"
6536
6527
  },
6537
6528
  {
@@ -6694,7 +6685,7 @@ var operations = [
6694
6685
  },
6695
6686
  {
6696
6687
  name: "sequence",
6697
- type: "number",
6688
+ type: "string",
6698
6689
  description: "Display order / sequence number"
6699
6690
  },
6700
6691
  {
@@ -7169,7 +7160,7 @@ var operations = [
7169
7160
  {
7170
7161
  operationId: "PublicApiEntityStatusController_list",
7171
7162
  displayName: "List entity statuses",
7172
- description: "Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier",
7163
+ description: "Retrieve all active statuses for a given entity type. Supported entities: customer, contractor, supplier, contact, external-user",
7173
7164
  method: "GET",
7174
7165
  path: "/settings/entity-statuses/{entity}",
7175
7166
  commandPath: ["settings", "reference", "data", "entity-statuses", "get"],
@@ -7181,8 +7172,8 @@ var operations = [
7181
7172
  source: "path",
7182
7173
  type: "string",
7183
7174
  required: true,
7184
- description: "Entity type (customer, contractor, supplier)",
7185
- enumValues: ["customer", "contractor", "supplier"]
7175
+ description: "Entity type (customer, contractor, supplier, contact, external-user)",
7176
+ enumValues: ["customer", "contractor", "supplier", "contact", "external-user"]
7186
7177
  }
7187
7178
  ],
7188
7179
  hasRequestBody: false,
@@ -8312,6 +8303,38 @@ var operations = [
8312
8303
  }
8313
8304
  ]
8314
8305
  },
8306
+ {
8307
+ operationId: "PublicApiPortalRoleController_listClientPortal",
8308
+ displayName: "List client portal roles",
8309
+ description: "Roles assignable to customer login contacts (UserType.Client). Includes custom client roles; includes built-in system client roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.",
8310
+ method: "GET",
8311
+ path: "/settings/roles/client-portal",
8312
+ commandPath: ["settings", "reference", "data", "roles", "client-portal", "list"],
8313
+ options: [],
8314
+ hasRequestBody: false,
8315
+ responseFields: [
8316
+ {
8317
+ name: "items",
8318
+ type: "array"
8319
+ }
8320
+ ]
8321
+ },
8322
+ {
8323
+ operationId: "PublicApiPortalRoleController_listContractorPortal",
8324
+ displayName: "List contractor portal roles",
8325
+ description: "Roles assignable to contractor login contacts (UserType.Subcontractor). Includes custom contractor roles; includes built-in system contractor roles only when Enable System Security Roles is on for the tenant. Use item.id as roleId when login is true on contact create/invite.",
8326
+ method: "GET",
8327
+ path: "/settings/roles/contractor-portal",
8328
+ commandPath: ["settings", "reference", "data", "roles", "contractor-portal", "list"],
8329
+ options: [],
8330
+ hasRequestBody: false,
8331
+ responseFields: [
8332
+ {
8333
+ name: "items",
8334
+ type: "array"
8335
+ }
8336
+ ]
8337
+ },
8315
8338
  {
8316
8339
  operationId: "PublicAttachmentController_createUploadSession",
8317
8340
  displayName: "Create upload session",
@@ -11365,8 +11388,8 @@ var operations = [
11365
11388
  },
11366
11389
  {
11367
11390
  operationId: "PublicCrmCustomerController_createContact",
11368
- displayName: "Create customer contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).",
11369
- description: "Create customer contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).",
11391
+ displayName: "Create customer contact",
11392
+ description: "Create customer contact",
11370
11393
  method: "POST",
11371
11394
  path: "/customers/{customerId}/contacts",
11372
11395
  commandPath: ["crm", "customers", "create-contact"],
@@ -11482,161 +11505,14 @@ var operations = [
11482
11505
  description: ""
11483
11506
  },
11484
11507
  {
11485
- name: "raw-body",
11486
- cliName: "raw-body",
11487
- optionKey: "rawBody",
11488
- source: "body",
11489
- type: "object",
11490
- required: false,
11491
- description: "Raw request body JSON (overrides individual fields)"
11492
- }
11493
- ],
11494
- hasRequestBody: true,
11495
- responseFields: [
11496
- {
11497
- name: "item",
11498
- type: "object"
11499
- }
11500
- ]
11501
- },
11502
- {
11503
- operationId: "PublicCrmCustomerController_getContact",
11504
- displayName: "Get customer contact by ID",
11505
- description: "Get customer contact by ID",
11506
- method: "GET",
11507
- path: "/customers/{customerId}/contacts/{contactId}",
11508
- commandPath: ["crm", "customers", "contacts", "get"],
11509
- options: [
11510
- {
11511
- name: "customerId",
11512
- cliName: "customer-id",
11513
- optionKey: "customerId",
11514
- source: "path",
11515
- type: "string",
11516
- required: true,
11517
- description: "Customer ID",
11518
- lookupEndpoint: "/crm/customers"
11519
- },
11520
- {
11521
- name: "contactId",
11522
- cliName: "contact-id",
11523
- optionKey: "contactId",
11524
- source: "path",
11525
- type: "string",
11526
- required: true,
11527
- description: "Contact ID",
11528
- lookupEndpoint: "/crm/contacts"
11529
- }
11530
- ],
11531
- hasRequestBody: false,
11532
- responseFields: [
11533
- {
11534
- name: "item",
11535
- type: "object"
11536
- }
11537
- ]
11538
- },
11539
- {
11540
- operationId: "PublicCrmCustomerController_updateContact",
11541
- displayName: "Update customer contact",
11542
- description: "Update customer contact",
11543
- method: "PATCH",
11544
- path: "/customers/{customerId}/contacts/{contactId}",
11545
- commandPath: ["crm", "customers", "contacts", "update-contact"],
11546
- options: [
11547
- {
11548
- name: "customerId",
11549
- cliName: "customer-id",
11550
- optionKey: "customerId",
11551
- source: "path",
11552
- type: "string",
11553
- required: true,
11554
- description: "Customer ID",
11555
- lookupEndpoint: "/crm/customers"
11556
- },
11557
- {
11558
- name: "contactId",
11559
- cliName: "contact-id",
11560
- optionKey: "contactId",
11561
- source: "path",
11562
- type: "string",
11563
- required: true,
11564
- description: "Contact ID",
11565
- lookupEndpoint: "/crm/contacts"
11566
- },
11567
- {
11568
- name: "firstName",
11569
- cliName: "first-name",
11570
- optionKey: "firstName",
11571
- source: "body",
11572
- type: "string",
11573
- required: false,
11574
- description: ""
11575
- },
11576
- {
11577
- name: "lastName",
11578
- cliName: "last-name",
11579
- optionKey: "lastName",
11580
- source: "body",
11581
- type: "string",
11582
- required: false,
11583
- description: ""
11584
- },
11585
- {
11586
- name: "email",
11587
- cliName: "email",
11588
- optionKey: "email",
11589
- source: "body",
11590
- type: "string",
11591
- required: false,
11592
- description: "Email address",
11593
- format: "email"
11594
- },
11595
- {
11596
- name: "phone",
11597
- cliName: "phone",
11598
- optionKey: "phone",
11599
- source: "body",
11600
- type: "string",
11601
- required: false,
11602
- description: "Phone number"
11603
- },
11604
- {
11605
- name: "mobile",
11606
- cliName: "mobile",
11607
- optionKey: "mobile",
11608
- source: "body",
11609
- type: "string",
11610
- required: false,
11611
- description: "Mobile phone number"
11612
- },
11613
- {
11614
- name: "title",
11615
- cliName: "title",
11616
- optionKey: "title",
11617
- source: "body",
11618
- type: "string",
11619
- required: false,
11620
- description: ""
11621
- },
11622
- {
11623
- name: "note",
11624
- cliName: "note",
11625
- optionKey: "note",
11508
+ name: "autoDispatch",
11509
+ cliName: "auto-dispatch",
11510
+ optionKey: "autoDispatch",
11626
11511
  source: "body",
11627
- type: "string",
11512
+ type: "boolean",
11628
11513
  required: false,
11629
11514
  description: ""
11630
11515
  },
11631
- {
11632
- name: "integrationId",
11633
- cliName: "integration-id",
11634
- optionKey: "integrationId",
11635
- source: "body",
11636
- type: "string",
11637
- required: false,
11638
- description: "integration ID"
11639
- },
11640
11516
  {
11641
11517
  name: "raw-body",
11642
11518
  cliName: "raw-body",
@@ -11688,8 +11564,8 @@ var operations = [
11688
11564
  },
11689
11565
  {
11690
11566
  operationId: "PublicCrmCustomerController_inviteContact",
11691
- displayName: "Promote an existing contact to external user and send invite (CRM)",
11692
- description: "Promote an existing contact to external user and send invite (CRM)",
11567
+ displayName: "Invite contact (CRM)",
11568
+ description: "Invite contact (CRM)",
11693
11569
  method: "POST",
11694
11570
  path: "/customers/{customerId}/contacts/{contactId}/invite",
11695
11571
  commandPath: ["crm", "customers", "invite-contact"],
@@ -11730,7 +11606,7 @@ var operations = [
11730
11606
  optionKey: "roleId",
11731
11607
  source: "body",
11732
11608
  type: "string",
11733
- required: false,
11609
+ required: true,
11734
11610
  description: "role ID"
11735
11611
  },
11736
11612
  {
@@ -11761,12 +11637,12 @@ var operations = [
11761
11637
  ]
11762
11638
  },
11763
11639
  {
11764
- operationId: "PublicCrmCustomerController_activateContact",
11765
- displayName: "Unlock portal login for an external user (CRM)",
11766
- description: "Unlock portal login for an external user (CRM)",
11767
- method: "POST",
11768
- path: "/customers/{customerId}/contacts/{contactId}/activate",
11769
- commandPath: ["crm", "customers", "activate-contact"],
11640
+ operationId: "PublicCrmCustomerController_listSites",
11641
+ displayName: "List sites for customer",
11642
+ description: "List sites for customer",
11643
+ method: "GET",
11644
+ path: "/customers/{customerId}/sites",
11645
+ commandPath: ["crm", "customers", "sites", "list"],
11770
11646
  options: [
11771
11647
  {
11772
11648
  name: "customerId",
@@ -11779,126 +11655,52 @@ var operations = [
11779
11655
  lookupEndpoint: "/crm/customers"
11780
11656
  },
11781
11657
  {
11782
- name: "contactId",
11783
- cliName: "contact-id",
11784
- optionKey: "contactId",
11785
- source: "path",
11658
+ name: "cursor",
11659
+ cliName: "cursor",
11660
+ optionKey: "cursor",
11661
+ source: "query",
11786
11662
  type: "string",
11787
- required: true,
11788
- description: "Contact ID",
11789
- lookupEndpoint: "/crm/contacts"
11663
+ required: false,
11664
+ description: ""
11665
+ },
11666
+ {
11667
+ name: "limit",
11668
+ cliName: "limit",
11669
+ optionKey: "limit",
11670
+ source: "query",
11671
+ type: "number",
11672
+ required: false,
11673
+ description: ""
11790
11674
  }
11791
11675
  ],
11792
11676
  hasRequestBody: false,
11793
11677
  responseFields: [
11794
11678
  {
11795
- name: "item",
11679
+ name: "items",
11680
+ type: "array"
11681
+ },
11682
+ {
11683
+ name: "pagination",
11796
11684
  type: "object"
11797
11685
  }
11798
11686
  ]
11799
11687
  },
11800
11688
  {
11801
- operationId: "PublicCrmCustomerController_deactivateContact",
11802
- displayName: "Lock portal login for an external user (CRM)",
11803
- description: "Lock portal login for an external user (CRM)",
11804
- method: "POST",
11805
- path: "/customers/{customerId}/contacts/{contactId}/deactivate",
11806
- commandPath: ["crm", "customers", "deactivate-contact"],
11689
+ operationId: "PublicCrmEmployeeController_list",
11690
+ displayName: "List employees",
11691
+ description: "List employees",
11692
+ method: "GET",
11693
+ path: "/employees",
11694
+ commandPath: ["crm", "employees", "list"],
11807
11695
  options: [
11808
11696
  {
11809
- name: "customerId",
11810
- cliName: "customer-id",
11811
- optionKey: "customerId",
11812
- source: "path",
11697
+ name: "cursor",
11698
+ cliName: "cursor",
11699
+ optionKey: "cursor",
11700
+ source: "query",
11813
11701
  type: "string",
11814
- required: true,
11815
- description: "Customer ID",
11816
- lookupEndpoint: "/crm/customers"
11817
- },
11818
- {
11819
- name: "contactId",
11820
- cliName: "contact-id",
11821
- optionKey: "contactId",
11822
- source: "path",
11823
- type: "string",
11824
- required: true,
11825
- description: "Contact ID",
11826
- lookupEndpoint: "/crm/contacts"
11827
- }
11828
- ],
11829
- hasRequestBody: false,
11830
- responseFields: [
11831
- {
11832
- name: "item",
11833
- type: "object"
11834
- }
11835
- ]
11836
- },
11837
- {
11838
- operationId: "PublicCrmCustomerController_listSites",
11839
- displayName: "List sites for customer",
11840
- description: "List sites for customer",
11841
- method: "GET",
11842
- path: "/customers/{customerId}/sites",
11843
- commandPath: ["crm", "customers", "sites", "list"],
11844
- options: [
11845
- {
11846
- name: "customerId",
11847
- cliName: "customer-id",
11848
- optionKey: "customerId",
11849
- source: "path",
11850
- type: "string",
11851
- required: true,
11852
- description: "Customer ID",
11853
- lookupEndpoint: "/crm/customers"
11854
- },
11855
- {
11856
- name: "cursor",
11857
- cliName: "cursor",
11858
- optionKey: "cursor",
11859
- source: "query",
11860
- type: "string",
11861
- required: false,
11862
- description: ""
11863
- },
11864
- {
11865
- name: "limit",
11866
- cliName: "limit",
11867
- optionKey: "limit",
11868
- source: "query",
11869
- type: "number",
11870
- required: false,
11871
- description: ""
11872
- }
11873
- ],
11874
- hasRequestBody: false,
11875
- responseFields: [
11876
- {
11877
- name: "items",
11878
- type: "array"
11879
- },
11880
- {
11881
- name: "pagination",
11882
- type: "object"
11883
- }
11884
- ]
11885
- },
11886
- {
11887
- operationId: "PublicCrmEmployeeController_list",
11888
- displayName: "List employees",
11889
- description: "List employees",
11890
- method: "GET",
11891
- path: "/employees",
11892
- commandPath: ["crm", "employees", "list"],
11893
- options: [
11894
- {
11895
- name: "cursor",
11896
- cliName: "cursor",
11897
- optionKey: "cursor",
11898
- source: "query",
11899
- type: "string",
11900
- required: false,
11901
- description: ""
11702
+ required: false,
11703
+ description: ""
11902
11704
  },
11903
11705
  {
11904
11706
  name: "limit",
@@ -12485,8 +12287,8 @@ var operations = [
12485
12287
  },
12486
12288
  {
12487
12289
  operationId: "PublicCrmContractorController_createContact",
12488
- displayName: "Create contractor contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).",
12489
- description: "Create contractor contact. login=false creates a contact; login=true invites an external user (email required and must be free via ID validate).",
12290
+ displayName: "Create contractor contact",
12291
+ description: "Create contractor contact",
12490
12292
  method: "POST",
12491
12293
  path: "/contractors/{contractorId}/contacts",
12492
12294
  commandPath: ["crm", "contractors", "create-contact"],
@@ -12601,159 +12403,14 @@ var operations = [
12601
12403
  description: ""
12602
12404
  },
12603
12405
  {
12604
- name: "raw-body",
12605
- cliName: "raw-body",
12606
- optionKey: "rawBody",
12406
+ name: "autoDispatch",
12407
+ cliName: "auto-dispatch",
12408
+ optionKey: "autoDispatch",
12607
12409
  source: "body",
12608
- type: "object",
12609
- required: false,
12610
- description: "Raw request body JSON (overrides individual fields)"
12611
- }
12612
- ],
12613
- hasRequestBody: true,
12614
- responseFields: [
12615
- {
12616
- name: "item",
12617
- type: "object"
12618
- }
12619
- ]
12620
- },
12621
- {
12622
- operationId: "PublicCrmContractorController_getContact",
12623
- displayName: "Get contractor contact by ID",
12624
- description: "Get contractor contact by ID",
12625
- method: "GET",
12626
- path: "/contractors/{contractorId}/contacts/{contactId}",
12627
- commandPath: ["crm", "contractors", "contacts", "get"],
12628
- options: [
12629
- {
12630
- name: "contractorId",
12631
- cliName: "contractor-id",
12632
- optionKey: "contractorId",
12633
- source: "path",
12634
- type: "string",
12635
- required: true,
12636
- description: "Contractor ID"
12637
- },
12638
- {
12639
- name: "contactId",
12640
- cliName: "contact-id",
12641
- optionKey: "contactId",
12642
- source: "path",
12643
- type: "string",
12644
- required: true,
12645
- description: "Contact ID",
12646
- lookupEndpoint: "/crm/contacts"
12647
- }
12648
- ],
12649
- hasRequestBody: false,
12650
- responseFields: [
12651
- {
12652
- name: "item",
12653
- type: "object"
12654
- }
12655
- ]
12656
- },
12657
- {
12658
- operationId: "PublicCrmContractorController_updateContact",
12659
- displayName: "Update contractor contact",
12660
- description: "Update contractor contact",
12661
- method: "PATCH",
12662
- path: "/contractors/{contractorId}/contacts/{contactId}",
12663
- commandPath: ["crm", "contractors", "contacts", "update-contact"],
12664
- options: [
12665
- {
12666
- name: "contractorId",
12667
- cliName: "contractor-id",
12668
- optionKey: "contractorId",
12669
- source: "path",
12670
- type: "string",
12671
- required: true,
12672
- description: "Contractor ID"
12673
- },
12674
- {
12675
- name: "contactId",
12676
- cliName: "contact-id",
12677
- optionKey: "contactId",
12678
- source: "path",
12679
- type: "string",
12680
- required: true,
12681
- description: "Contact ID",
12682
- lookupEndpoint: "/crm/contacts"
12683
- },
12684
- {
12685
- name: "firstName",
12686
- cliName: "first-name",
12687
- optionKey: "firstName",
12688
- source: "body",
12689
- type: "string",
12690
- required: false,
12691
- description: ""
12692
- },
12693
- {
12694
- name: "lastName",
12695
- cliName: "last-name",
12696
- optionKey: "lastName",
12697
- source: "body",
12698
- type: "string",
12699
- required: false,
12700
- description: ""
12701
- },
12702
- {
12703
- name: "email",
12704
- cliName: "email",
12705
- optionKey: "email",
12706
- source: "body",
12707
- type: "string",
12708
- required: false,
12709
- description: "Email address",
12710
- format: "email"
12711
- },
12712
- {
12713
- name: "phone",
12714
- cliName: "phone",
12715
- optionKey: "phone",
12716
- source: "body",
12717
- type: "string",
12718
- required: false,
12719
- description: "Phone number"
12720
- },
12721
- {
12722
- name: "mobile",
12723
- cliName: "mobile",
12724
- optionKey: "mobile",
12725
- source: "body",
12726
- type: "string",
12727
- required: false,
12728
- description: "Mobile phone number"
12729
- },
12730
- {
12731
- name: "title",
12732
- cliName: "title",
12733
- optionKey: "title",
12734
- source: "body",
12735
- type: "string",
12736
- required: false,
12737
- description: ""
12738
- },
12739
- {
12740
- name: "note",
12741
- cliName: "note",
12742
- optionKey: "note",
12743
- source: "body",
12744
- type: "string",
12410
+ type: "boolean",
12745
12411
  required: false,
12746
12412
  description: ""
12747
12413
  },
12748
- {
12749
- name: "integrationId",
12750
- cliName: "integration-id",
12751
- optionKey: "integrationId",
12752
- source: "body",
12753
- type: "string",
12754
- required: false,
12755
- description: "integration ID"
12756
- },
12757
12414
  {
12758
12415
  name: "raw-body",
12759
12416
  cliName: "raw-body",
@@ -12804,8 +12461,8 @@ var operations = [
12804
12461
  },
12805
12462
  {
12806
12463
  operationId: "PublicCrmContractorController_inviteContact",
12807
- displayName: "Promote an existing contact to external user and send invite (CRM > Contractors)",
12808
- description: "Promote an existing contact to external user and send invite (CRM > Contractors)",
12464
+ displayName: "Invite contact (CRM > Contractors)",
12465
+ description: "Invite contact (CRM > Contractors)",
12809
12466
  method: "POST",
12810
12467
  path: "/contractors/{contractorId}/contacts/{contactId}/invite",
12811
12468
  commandPath: ["crm", "contractors", "invite-contact"],
@@ -12845,7 +12502,7 @@ var operations = [
12845
12502
  optionKey: "roleId",
12846
12503
  source: "body",
12847
12504
  type: "string",
12848
- required: false,
12505
+ required: true,
12849
12506
  description: "role ID"
12850
12507
  },
12851
12508
  {
@@ -12875,78 +12532,6 @@ var operations = [
12875
12532
  }
12876
12533
  ]
12877
12534
  },
12878
- {
12879
- operationId: "PublicCrmContractorController_activateContact",
12880
- displayName: "Unlock portal login for an external user (CRM > Contractors)",
12881
- description: "Unlock portal login for an external user (CRM > Contractors)",
12882
- method: "POST",
12883
- path: "/contractors/{contractorId}/contacts/{contactId}/activate",
12884
- commandPath: ["crm", "contractors", "activate-contact"],
12885
- options: [
12886
- {
12887
- name: "contractorId",
12888
- cliName: "contractor-id",
12889
- optionKey: "contractorId",
12890
- source: "path",
12891
- type: "string",
12892
- required: true,
12893
- description: "Contractor ID"
12894
- },
12895
- {
12896
- name: "contactId",
12897
- cliName: "contact-id",
12898
- optionKey: "contactId",
12899
- source: "path",
12900
- type: "string",
12901
- required: true,
12902
- description: "Contact ID",
12903
- lookupEndpoint: "/crm/contacts"
12904
- }
12905
- ],
12906
- hasRequestBody: false,
12907
- responseFields: [
12908
- {
12909
- name: "item",
12910
- type: "object"
12911
- }
12912
- ]
12913
- },
12914
- {
12915
- operationId: "PublicCrmContractorController_deactivateContact",
12916
- displayName: "Lock portal login for an external user (CRM > Contractors)",
12917
- description: "Lock portal login for an external user (CRM > Contractors)",
12918
- method: "POST",
12919
- path: "/contractors/{contractorId}/contacts/{contactId}/deactivate",
12920
- commandPath: ["crm", "contractors", "deactivate-contact"],
12921
- options: [
12922
- {
12923
- name: "contractorId",
12924
- cliName: "contractor-id",
12925
- optionKey: "contractorId",
12926
- source: "path",
12927
- type: "string",
12928
- required: true,
12929
- description: "Contractor ID"
12930
- },
12931
- {
12932
- name: "contactId",
12933
- cliName: "contact-id",
12934
- optionKey: "contactId",
12935
- source: "path",
12936
- type: "string",
12937
- required: true,
12938
- description: "Contact ID",
12939
- lookupEndpoint: "/crm/contacts"
12940
- }
12941
- ],
12942
- hasRequestBody: false,
12943
- responseFields: [
12944
- {
12945
- name: "item",
12946
- type: "object"
12947
- }
12948
- ]
12949
- },
12950
12535
  {
12951
12536
  operationId: "PublicCrmSupplierController_list",
12952
12537
  displayName: "List suppliers",
@@ -13584,8 +13169,8 @@ var operations = [
13584
13169
  },
13585
13170
  {
13586
13171
  operationId: "PublicCrmContactController_list",
13587
- displayName: "List contacts (Basic and Login contacts)",
13588
- description: "List contacts (Basic and Login contacts)",
13172
+ displayName: "List contacts (contacts + external users)",
13173
+ description: "List contacts (contacts + external users)",
13589
13174
  method: "GET",
13590
13175
  path: "/contacts",
13591
13176
  commandPath: ["crm", "contacts", "list"],
@@ -13647,6 +13232,176 @@ var operations = [
13647
13232
  }
13648
13233
  ]
13649
13234
  },
13235
+ {
13236
+ operationId: "PublicCrmContactController_update",
13237
+ displayName: "Update contact",
13238
+ description: "Update contact",
13239
+ method: "PATCH",
13240
+ path: "/contacts/{id}",
13241
+ commandPath: ["crm", "contacts", "update"],
13242
+ options: [
13243
+ {
13244
+ name: "id",
13245
+ cliName: "id",
13246
+ optionKey: "id",
13247
+ source: "path",
13248
+ type: "string",
13249
+ required: true,
13250
+ description: "Contact ID"
13251
+ },
13252
+ {
13253
+ name: "firstName",
13254
+ cliName: "first-name",
13255
+ optionKey: "firstName",
13256
+ source: "body",
13257
+ type: "string",
13258
+ required: false,
13259
+ description: ""
13260
+ },
13261
+ {
13262
+ name: "lastName",
13263
+ cliName: "last-name",
13264
+ optionKey: "lastName",
13265
+ source: "body",
13266
+ type: "string",
13267
+ required: false,
13268
+ description: ""
13269
+ },
13270
+ {
13271
+ name: "email",
13272
+ cliName: "email",
13273
+ optionKey: "email",
13274
+ source: "body",
13275
+ type: "string",
13276
+ required: false,
13277
+ description: "Email address",
13278
+ format: "email"
13279
+ },
13280
+ {
13281
+ name: "phone",
13282
+ cliName: "phone",
13283
+ optionKey: "phone",
13284
+ source: "body",
13285
+ type: "string",
13286
+ required: false,
13287
+ description: "Phone number"
13288
+ },
13289
+ {
13290
+ name: "mobile",
13291
+ cliName: "mobile",
13292
+ optionKey: "mobile",
13293
+ source: "body",
13294
+ type: "string",
13295
+ required: false,
13296
+ description: "Mobile phone number"
13297
+ },
13298
+ {
13299
+ name: "title",
13300
+ cliName: "title",
13301
+ optionKey: "title",
13302
+ source: "body",
13303
+ type: "string",
13304
+ required: false,
13305
+ description: ""
13306
+ },
13307
+ {
13308
+ name: "note",
13309
+ cliName: "note",
13310
+ optionKey: "note",
13311
+ source: "body",
13312
+ type: "string",
13313
+ required: false,
13314
+ description: ""
13315
+ },
13316
+ {
13317
+ name: "integrationId",
13318
+ cliName: "integration-id",
13319
+ optionKey: "integrationId",
13320
+ source: "body",
13321
+ type: "string",
13322
+ required: false,
13323
+ description: "integration ID"
13324
+ },
13325
+ {
13326
+ name: "autoDispatch",
13327
+ cliName: "auto-dispatch",
13328
+ optionKey: "autoDispatch",
13329
+ source: "body",
13330
+ type: "boolean",
13331
+ required: false,
13332
+ description: ""
13333
+ },
13334
+ {
13335
+ name: "raw-body",
13336
+ cliName: "raw-body",
13337
+ optionKey: "rawBody",
13338
+ source: "body",
13339
+ type: "object",
13340
+ required: false,
13341
+ description: "Raw request body JSON (overrides individual fields)"
13342
+ }
13343
+ ],
13344
+ hasRequestBody: true,
13345
+ responseFields: [
13346
+ {
13347
+ name: "item",
13348
+ type: "object"
13349
+ }
13350
+ ]
13351
+ },
13352
+ {
13353
+ operationId: "PublicCrmContactController_updateStatus",
13354
+ displayName: "Update contact status",
13355
+ description: "Update contact status",
13356
+ method: "PATCH",
13357
+ path: "/contacts/{id}/status",
13358
+ commandPath: ["crm", "contacts", "status", "update-status"],
13359
+ options: [
13360
+ {
13361
+ name: "id",
13362
+ cliName: "id",
13363
+ optionKey: "id",
13364
+ source: "path",
13365
+ type: "string",
13366
+ required: true,
13367
+ description: "Contact ID"
13368
+ },
13369
+ {
13370
+ name: "statusId",
13371
+ cliName: "status-id",
13372
+ optionKey: "statusId",
13373
+ source: "body",
13374
+ type: "string",
13375
+ required: true,
13376
+ description: "status ID"
13377
+ },
13378
+ {
13379
+ name: "note",
13380
+ cliName: "note",
13381
+ optionKey: "note",
13382
+ source: "body",
13383
+ type: "string",
13384
+ required: false,
13385
+ description: ""
13386
+ },
13387
+ {
13388
+ name: "raw-body",
13389
+ cliName: "raw-body",
13390
+ optionKey: "rawBody",
13391
+ source: "body",
13392
+ type: "object",
13393
+ required: false,
13394
+ description: "Raw request body JSON (overrides individual fields)"
13395
+ }
13396
+ ],
13397
+ hasRequestBody: true,
13398
+ responseFields: [
13399
+ {
13400
+ name: "item",
13401
+ type: "object"
13402
+ }
13403
+ ]
13404
+ },
13650
13405
  {
13651
13406
  operationId: "PublicCrmInviteController_list",
13652
13407
  displayName: "List pending invites",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-vnext",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",