@workbuddy/cli-vnext 1.0.86 → 1.0.88

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 +108 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -33,7 +35,7 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
33
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
34
36
 
35
37
  // node_modules/commander/lib/error.js
36
- var require_error = __commonJS((exports) => {
38
+ var require_error = __commonJS(function(exports) {
37
39
  class CommanderError extends Error {
38
40
  constructor(exitCode, code, message) {
39
41
  super(message);
@@ -57,7 +59,7 @@ var require_error = __commonJS((exports) => {
57
59
  });
58
60
 
59
61
  // node_modules/commander/lib/argument.js
60
- var require_argument = __commonJS((exports) => {
62
+ var require_argument = __commonJS(function(exports) {
61
63
  var { InvalidArgumentError } = require_error();
62
64
 
63
65
  class Argument {
@@ -137,7 +139,7 @@ var require_argument = __commonJS((exports) => {
137
139
  });
138
140
 
139
141
  // node_modules/commander/lib/help.js
140
- var require_help = __commonJS((exports) => {
142
+ var require_help = __commonJS(function(exports) {
141
143
  var { humanReadableArgName } = require_argument();
142
144
 
143
145
  class Help {
@@ -494,7 +496,7 @@ ${itemIndentStr}`);
494
496
  });
495
497
 
496
498
  // node_modules/commander/lib/option.js
497
- var require_option = __commonJS((exports) => {
499
+ var require_option = __commonJS(function(exports) {
498
500
  var { InvalidArgumentError } = require_error();
499
501
 
500
502
  class Option {
@@ -678,7 +680,7 @@ var require_option = __commonJS((exports) => {
678
680
  });
679
681
 
680
682
  // node_modules/commander/lib/suggestSimilar.js
681
- var require_suggestSimilar = __commonJS((exports) => {
683
+ var require_suggestSimilar = __commonJS(function(exports) {
682
684
  var maxDistance = 3;
683
685
  function editDistance(a, b) {
684
686
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -751,7 +753,7 @@ var require_suggestSimilar = __commonJS((exports) => {
751
753
  });
752
754
 
753
755
  // node_modules/commander/lib/command.js
754
- var require_command = __commonJS((exports) => {
756
+ var require_command = __commonJS(function(exports) {
755
757
  var EventEmitter = __require("node:events").EventEmitter;
756
758
  var childProcess = __require("node:child_process");
757
759
  var path = __require("node:path");
@@ -2106,7 +2108,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2106
2108
  });
2107
2109
 
2108
2110
  // node_modules/commander/index.js
2109
- var require_commander = __commonJS((exports) => {
2111
+ var require_commander = __commonJS(function(exports) {
2110
2112
  var { Argument } = require_argument();
2111
2113
  var { Command } = require_command();
2112
2114
  var { CommanderError, InvalidArgumentError } = require_error();
@@ -12585,6 +12587,37 @@ Requires scope: settings:read`,
12585
12587
  }
12586
12588
  ]
12587
12589
  },
12590
+ {
12591
+ operationId: "PublicCrmCustomerController_delete",
12592
+ displayName: "Delete customer",
12593
+ description: "Delete customer",
12594
+ method: "DELETE",
12595
+ path: "/customers/{id}",
12596
+ commandPath: ["crm", "customers", "delete"],
12597
+ options: [
12598
+ {
12599
+ name: "id",
12600
+ cliName: "id",
12601
+ optionKey: "id",
12602
+ source: "path",
12603
+ type: "string",
12604
+ required: true,
12605
+ description: "Customer ID or integration ID"
12606
+ }
12607
+ ],
12608
+ hasRequestBody: false,
12609
+ responseFields: [
12610
+ {
12611
+ name: "id",
12612
+ type: "string",
12613
+ description: "Entity ID"
12614
+ },
12615
+ {
12616
+ name: "deleted",
12617
+ type: "boolean"
12618
+ }
12619
+ ]
12620
+ },
12588
12621
  {
12589
12622
  operationId: "PublicCrmCustomerController_updateStatus",
12590
12623
  displayName: "Update customer status",
@@ -13485,6 +13518,37 @@ Requires scope: settings:read`,
13485
13518
  }
13486
13519
  ]
13487
13520
  },
13521
+ {
13522
+ operationId: "PublicCrmContractorController_delete",
13523
+ displayName: "Delete contractor",
13524
+ description: "Delete contractor",
13525
+ method: "DELETE",
13526
+ path: "/contractors/{id}",
13527
+ commandPath: ["crm", "contractors", "delete"],
13528
+ options: [
13529
+ {
13530
+ name: "id",
13531
+ cliName: "id",
13532
+ optionKey: "id",
13533
+ source: "path",
13534
+ type: "string",
13535
+ required: true,
13536
+ description: "Contractor ID or integration ID"
13537
+ }
13538
+ ],
13539
+ hasRequestBody: false,
13540
+ responseFields: [
13541
+ {
13542
+ name: "id",
13543
+ type: "string",
13544
+ description: "Entity ID"
13545
+ },
13546
+ {
13547
+ name: "deleted",
13548
+ type: "boolean"
13549
+ }
13550
+ ]
13551
+ },
13488
13552
  {
13489
13553
  operationId: "PublicCrmContractorController_updateStatus",
13490
13554
  displayName: "Update contractor status",
@@ -14276,6 +14340,37 @@ Requires scope: settings:read`,
14276
14340
  }
14277
14341
  ]
14278
14342
  },
14343
+ {
14344
+ operationId: "PublicCrmSupplierController_delete",
14345
+ displayName: "Delete supplier",
14346
+ description: "Delete supplier",
14347
+ method: "DELETE",
14348
+ path: "/suppliers/{id}",
14349
+ commandPath: ["crm", "suppliers", "delete"],
14350
+ options: [
14351
+ {
14352
+ name: "id",
14353
+ cliName: "id",
14354
+ optionKey: "id",
14355
+ source: "path",
14356
+ type: "string",
14357
+ required: true,
14358
+ description: "Supplier ID or integration ID"
14359
+ }
14360
+ ],
14361
+ hasRequestBody: false,
14362
+ responseFields: [
14363
+ {
14364
+ name: "id",
14365
+ type: "string",
14366
+ description: "Entity ID"
14367
+ },
14368
+ {
14369
+ name: "deleted",
14370
+ type: "boolean"
14371
+ }
14372
+ ]
14373
+ },
14279
14374
  {
14280
14375
  operationId: "PublicCrmSupplierController_updateStatus",
14281
14376
  displayName: "Update supplier status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-vnext",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",