@workbuddy/cli-vnext 1.0.76 → 1.0.77

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 +335 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6607,6 +6607,168 @@ var operations = [
6607
6607
  }
6608
6608
  ]
6609
6609
  },
6610
+ {
6611
+ operationId: "PublicJobStageController_onHold",
6612
+ displayName: "Put a stage on hold",
6613
+ description: "Set the stage to an On Hold status. Pass statusId from GET /settings/stage-statuses with systemStatus On Hold (multiple peer statuses may share that systemStatus). Blocked from Completed, Closed, or Finalised.",
6614
+ method: "POST",
6615
+ path: "/stages/{id}/on-hold",
6616
+ commandPath: ["stages", "on-hold"],
6617
+ options: [
6618
+ {
6619
+ name: "id",
6620
+ cliName: "id",
6621
+ optionKey: "id",
6622
+ source: "path",
6623
+ type: "string",
6624
+ required: true,
6625
+ description: "Stage ID"
6626
+ },
6627
+ {
6628
+ name: "statusId",
6629
+ cliName: "status-id",
6630
+ optionKey: "statusId",
6631
+ source: "body",
6632
+ type: "string",
6633
+ required: true,
6634
+ description: "status ID"
6635
+ },
6636
+ {
6637
+ name: "note",
6638
+ cliName: "note",
6639
+ optionKey: "note",
6640
+ source: "body",
6641
+ type: "string",
6642
+ required: false,
6643
+ description: ""
6644
+ },
6645
+ {
6646
+ name: "raw-body",
6647
+ cliName: "raw-body",
6648
+ optionKey: "rawBody",
6649
+ source: "body",
6650
+ type: "object",
6651
+ required: false,
6652
+ description: "Raw request body JSON (overrides individual fields)"
6653
+ }
6654
+ ],
6655
+ hasRequestBody: true,
6656
+ responseFields: [
6657
+ {
6658
+ name: "id",
6659
+ type: "string",
6660
+ description: "Entity ID"
6661
+ },
6662
+ {
6663
+ name: "stageNumber",
6664
+ type: "string"
6665
+ },
6666
+ {
6667
+ name: "jobId",
6668
+ type: "string",
6669
+ description: "Job ID or job number (e.g. J12345)"
6670
+ },
6671
+ {
6672
+ name: "job",
6673
+ type: "object"
6674
+ },
6675
+ {
6676
+ name: "name",
6677
+ type: "string",
6678
+ description: "Display name"
6679
+ },
6680
+ {
6681
+ name: "status",
6682
+ type: "object",
6683
+ description: "Status filter"
6684
+ },
6685
+ {
6686
+ name: "sequence",
6687
+ type: "string",
6688
+ description: "Display order / sequence number"
6689
+ },
6690
+ {
6691
+ name: "owner",
6692
+ type: "string"
6693
+ },
6694
+ {
6695
+ name: "contractor",
6696
+ type: "string"
6697
+ },
6698
+ {
6699
+ name: "technician",
6700
+ type: "string"
6701
+ },
6702
+ {
6703
+ name: "resources",
6704
+ type: "string"
6705
+ },
6706
+ {
6707
+ name: "startDate",
6708
+ type: "string",
6709
+ description: "Start date (ISO 8601 datetime)"
6710
+ },
6711
+ {
6712
+ name: "dueDate",
6713
+ type: "string",
6714
+ description: "Due date (ISO 8601 datetime)"
6715
+ },
6716
+ {
6717
+ name: "completedDate",
6718
+ type: "string",
6719
+ description: "Completion date (ISO 8601 datetime)"
6720
+ },
6721
+ {
6722
+ name: "completedBy",
6723
+ type: "string"
6724
+ },
6725
+ {
6726
+ name: "completedNote",
6727
+ type: "string"
6728
+ },
6729
+ {
6730
+ name: "finalisedDate",
6731
+ type: "string",
6732
+ description: "Finalisation date (ISO 8601 datetime)"
6733
+ },
6734
+ {
6735
+ name: "tags",
6736
+ type: "string",
6737
+ description: "Tag operation — use set, add, or remove (mutually exclusive: set vs add/remove)"
6738
+ },
6739
+ {
6740
+ name: "systemTags",
6741
+ type: "string"
6742
+ },
6743
+ {
6744
+ name: "schedulingTags",
6745
+ type: "string",
6746
+ description: "Scheduling tag operation — use set, add, or remove"
6747
+ },
6748
+ {
6749
+ name: "items",
6750
+ type: "array"
6751
+ },
6752
+ {
6753
+ name: "totals",
6754
+ type: "object"
6755
+ },
6756
+ {
6757
+ name: "customFields",
6758
+ type: "string",
6759
+ description: "Custom fields as key-value pairs — validated against tenant field definitions"
6760
+ },
6761
+ {
6762
+ name: "createdAt",
6763
+ type: "string"
6764
+ },
6765
+ {
6766
+ name: "updatedAt",
6767
+ type: "string",
6768
+ description: "For optimistic concurrency — update fails if entity was modified after this timestamp"
6769
+ }
6770
+ ]
6771
+ },
6610
6772
  {
6611
6773
  operationId: "PublicJobStageController_reverse",
6612
6774
  displayName: "Reverse stage status",
@@ -7248,6 +7410,179 @@ var operations = [
7248
7410
  }
7249
7411
  ]
7250
7412
  },
7413
+ {
7414
+ operationId: "PublicApiPriceBookController_list",
7415
+ displayName: "List pricebooks",
7416
+ description: "Discover tenant pricebooks for a category (customer / contractor / supplier). Use category=customer&status=current&assignableOnly=true for job-create candidates. Optional accountId scopes to a CRM account (includeGlobal defaults true).",
7417
+ method: "GET",
7418
+ path: "/settings/pricebooks",
7419
+ commandPath: ["settings", "reference", "data", "pricebooks", "list"],
7420
+ options: [
7421
+ {
7422
+ name: "limit",
7423
+ cliName: "limit",
7424
+ optionKey: "limit",
7425
+ source: "query",
7426
+ type: "number",
7427
+ required: false,
7428
+ description: ""
7429
+ },
7430
+ {
7431
+ name: "assignableOnly",
7432
+ cliName: "assignable-only",
7433
+ optionKey: "assignableOnly",
7434
+ source: "query",
7435
+ type: "boolean",
7436
+ required: false,
7437
+ description: ""
7438
+ },
7439
+ {
7440
+ name: "mode",
7441
+ cliName: "mode",
7442
+ optionKey: "mode",
7443
+ source: "query",
7444
+ type: "string",
7445
+ required: false,
7446
+ description: "",
7447
+ enumValues: ["static", "dynamic"]
7448
+ },
7449
+ {
7450
+ name: "search",
7451
+ cliName: "search",
7452
+ optionKey: "search",
7453
+ source: "query",
7454
+ type: "string",
7455
+ required: false,
7456
+ description: "Name contains or exact id"
7457
+ },
7458
+ {
7459
+ name: "includeGlobal",
7460
+ cliName: "include-global",
7461
+ optionKey: "includeGlobal",
7462
+ source: "query",
7463
+ type: "boolean",
7464
+ required: false,
7465
+ description: ""
7466
+ },
7467
+ {
7468
+ name: "accountId",
7469
+ cliName: "account-id",
7470
+ optionKey: "accountId",
7471
+ source: "query",
7472
+ type: "string",
7473
+ required: false,
7474
+ description: "account ID"
7475
+ },
7476
+ {
7477
+ name: "status",
7478
+ cliName: "status",
7479
+ optionKey: "status",
7480
+ source: "query",
7481
+ type: "string",
7482
+ required: false,
7483
+ description: "",
7484
+ enumValues: ["current", "expired", "future", "all"]
7485
+ },
7486
+ {
7487
+ name: "category",
7488
+ cliName: "category",
7489
+ optionKey: "category",
7490
+ source: "query",
7491
+ type: "string",
7492
+ required: true,
7493
+ description: "",
7494
+ enumValues: ["customer", "contractor", "supplier"]
7495
+ }
7496
+ ],
7497
+ hasRequestBody: false,
7498
+ responseFields: [
7499
+ {
7500
+ name: "items",
7501
+ type: "array"
7502
+ }
7503
+ ]
7504
+ },
7505
+ {
7506
+ operationId: "PublicApiPriceBookController_getByIdOrName",
7507
+ displayName: "Get pricebook",
7508
+ description: "Retrieve a pricebook by id (preferred) or exact name (case-insensitive). Pass category when the name may exist in more than one category.",
7509
+ method: "GET",
7510
+ path: "/settings/pricebooks/{idOrName}",
7511
+ commandPath: ["settings", "reference", "data", "pricebooks", "get"],
7512
+ options: [
7513
+ {
7514
+ name: "idOrName",
7515
+ cliName: "id-or-name",
7516
+ optionKey: "idOrName",
7517
+ source: "path",
7518
+ type: "string",
7519
+ required: true,
7520
+ description: "Pricebook id or exact name"
7521
+ },
7522
+ {
7523
+ name: "category",
7524
+ cliName: "category",
7525
+ optionKey: "category",
7526
+ source: "query",
7527
+ type: "string",
7528
+ required: false,
7529
+ description: "",
7530
+ enumValues: ["customer", "contractor", "supplier"]
7531
+ }
7532
+ ],
7533
+ hasRequestBody: false,
7534
+ responseFields: [
7535
+ {
7536
+ name: "id",
7537
+ type: "string",
7538
+ description: "Entity ID"
7539
+ },
7540
+ {
7541
+ name: "name",
7542
+ type: "string",
7543
+ description: "Display name"
7544
+ },
7545
+ {
7546
+ name: "description",
7547
+ type: "string",
7548
+ description: "Detailed description"
7549
+ },
7550
+ {
7551
+ name: "category",
7552
+ type: "string"
7553
+ },
7554
+ {
7555
+ name: "mode",
7556
+ type: "string",
7557
+ description: "Search mode"
7558
+ },
7559
+ {
7560
+ name: "status",
7561
+ type: "string",
7562
+ description: "Status filter"
7563
+ },
7564
+ {
7565
+ name: "parentOnly",
7566
+ type: "boolean"
7567
+ },
7568
+ {
7569
+ name: "isGlobal",
7570
+ type: "boolean"
7571
+ },
7572
+ {
7573
+ name: "account",
7574
+ type: "string"
7575
+ },
7576
+ {
7577
+ name: "dateStart",
7578
+ type: "string"
7579
+ },
7580
+ {
7581
+ name: "dateEnd",
7582
+ type: "string"
7583
+ }
7584
+ ]
7585
+ },
7251
7586
  {
7252
7587
  operationId: "PublicApiStageStatusController_list",
7253
7588
  displayName: "List stage statuses",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-vnext",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",