@routr/ctl 2.6.1 → 2.7.0

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 (74) hide show
  1. package/README.md +40 -40
  2. package/dist/base.d.ts +1 -1
  3. package/dist/base.js +1 -1
  4. package/dist/commands/acl/create.d.ts +2 -2
  5. package/dist/commands/acl/create.js +1 -1
  6. package/dist/commands/acl/delete.js +1 -1
  7. package/dist/commands/acl/describe.js +1 -1
  8. package/dist/commands/acl/get.js +1 -1
  9. package/dist/commands/acl/update.d.ts +2 -2
  10. package/dist/commands/acl/update.js +1 -1
  11. package/dist/commands/agents/create.js +6 -1
  12. package/dist/commands/agents/delete.d.ts +2 -2
  13. package/dist/commands/agents/delete.js +1 -1
  14. package/dist/commands/agents/describe.d.ts +2 -2
  15. package/dist/commands/agents/describe.js +2 -1
  16. package/dist/commands/agents/get.d.ts +3 -3
  17. package/dist/commands/agents/get.js +7 -3
  18. package/dist/commands/agents/update.d.ts +3 -3
  19. package/dist/commands/agents/update.js +7 -1
  20. package/dist/commands/credentials/create.d.ts +2 -2
  21. package/dist/commands/credentials/create.js +1 -1
  22. package/dist/commands/credentials/delete.js +1 -1
  23. package/dist/commands/credentials/describe.d.ts +2 -2
  24. package/dist/commands/credentials/describe.js +1 -1
  25. package/dist/commands/credentials/get.d.ts +2 -2
  26. package/dist/commands/credentials/get.js +1 -1
  27. package/dist/commands/credentials/update.d.ts +3 -3
  28. package/dist/commands/credentials/update.js +1 -1
  29. package/dist/commands/domains/create.d.ts +2 -2
  30. package/dist/commands/domains/create.js +4 -1
  31. package/dist/commands/domains/delete.d.ts +2 -2
  32. package/dist/commands/domains/delete.js +1 -1
  33. package/dist/commands/domains/describe.d.ts +2 -2
  34. package/dist/commands/domains/describe.js +1 -1
  35. package/dist/commands/domains/get.d.ts +3 -3
  36. package/dist/commands/domains/get.js +1 -1
  37. package/dist/commands/domains/update.d.ts +3 -3
  38. package/dist/commands/domains/update.js +4 -1
  39. package/dist/commands/numbers/create.d.ts +2 -2
  40. package/dist/commands/numbers/create.js +1 -1
  41. package/dist/commands/numbers/delete.d.ts +2 -2
  42. package/dist/commands/numbers/delete.js +1 -1
  43. package/dist/commands/numbers/describe.d.ts +2 -2
  44. package/dist/commands/numbers/describe.js +1 -1
  45. package/dist/commands/numbers/get.d.ts +3 -3
  46. package/dist/commands/numbers/get.js +1 -1
  47. package/dist/commands/numbers/update.d.ts +3 -3
  48. package/dist/commands/numbers/update.js +1 -1
  49. package/dist/commands/peers/create.d.ts +2 -2
  50. package/dist/commands/peers/create.js +8 -5
  51. package/dist/commands/peers/delete.d.ts +2 -2
  52. package/dist/commands/peers/delete.js +1 -1
  53. package/dist/commands/peers/describe.d.ts +2 -2
  54. package/dist/commands/peers/describe.js +2 -1
  55. package/dist/commands/peers/get.d.ts +3 -3
  56. package/dist/commands/peers/get.js +7 -3
  57. package/dist/commands/peers/update.d.ts +3 -3
  58. package/dist/commands/peers/update.js +9 -5
  59. package/dist/commands/trunks/create.d.ts +2 -2
  60. package/dist/commands/trunks/create.js +1 -1
  61. package/dist/commands/trunks/delete.js +1 -1
  62. package/dist/commands/trunks/describe.js +1 -1
  63. package/dist/commands/trunks/get.d.ts +3 -3
  64. package/dist/commands/trunks/get.js +1 -1
  65. package/dist/commands/trunks/update.d.ts +3 -3
  66. package/dist/commands/trunks/update.js +1 -1
  67. package/dist/countries.js +1 -1
  68. package/dist/delete.d.ts +1 -1
  69. package/dist/delete.js +1 -1
  70. package/dist/help.js +20 -21
  71. package/dist/index.js +1 -1
  72. package/dist/validators.js +1 -1
  73. package/oclif.manifest.json +3 -3
  74. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class UpdateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
3
+ static readonly description = "Updates an existing set of Credentials";
4
+ static readonly examples: string[];
5
+ static readonly args: {
6
6
  name: string;
7
7
  required: boolean;
8
8
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class CreateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Creates a new set Domain";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /*
30
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
30
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
31
31
  * http://github.com/fonoster
32
32
  *
33
33
  * This file is part of Routr.
@@ -87,6 +87,9 @@ class CreateCommand extends base_1.BaseCommand {
87
87
  });
88
88
  this.log("This utility will help you create a new Domain.");
89
89
  this.log("Press ^C at any time to quit.");
90
+ if (numberChoices.length === 0) {
91
+ this.warn("Egress rules unavailable due to 0 configured numbers.");
92
+ }
90
93
  const group1 = await inquirer_1.default.prompt([
91
94
  {
92
95
  name: "name",
@@ -1,6 +1,6 @@
1
1
  import DeleteCommand from "../../delete";
2
2
  export default class DeleteDomainCommand extends DeleteCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Deletes a Domain";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class DescribeCommand extends BaseCommand {
3
- static description: string;
4
- static args: {
3
+ static readonly description = "show details of a Domain";
4
+ static readonly args: {
5
5
  name: string;
6
6
  required: boolean;
7
7
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,9 +1,9 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  import { CommandError } from "@oclif/core/lib/interfaces";
3
3
  export default class GetDomainsCommand extends BaseCommand {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
4
+ static readonly description = "Shows a list of paginated Domains or a single Domain if ref is provided";
5
+ static readonly examples: string[];
6
+ static readonly flags: {
7
7
  size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
8
  extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  };
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  /*
27
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
27
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
28
28
  * http://github.com/fonoster
29
29
  *
30
30
  * This file is part of Routr.
@@ -1,8 +1,8 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class UpdateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
3
+ static readonly description = "Updates an existing Domain";
4
+ static readonly examples: string[];
5
+ static readonly args: {
6
6
  name: string;
7
7
  required: boolean;
8
8
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -66,6 +66,9 @@ class UpdateCommand extends base_1.BaseCommand {
66
66
  this.log("This utility will help you update an existing Domain.");
67
67
  this.log("Press ^C at any time to quit.");
68
68
  this.warn("Adding Egress Policies will delete existing ones.");
69
+ if (numberChoices.length === 0) {
70
+ this.warn("Egress rules unavailable due to 0 configured numbers.");
71
+ }
69
72
  const group1 = await inquirer_1.default.prompt([
70
73
  {
71
74
  name: "name",
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class CreateNumberCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Creates a new Number";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /*
30
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
30
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
31
31
  * http://github.com/fonoster
32
32
  *
33
33
  * This file is part of Routr.
@@ -1,6 +1,6 @@
1
1
  import DeleteCommand from "../../delete";
2
2
  export default class DeleteNumberCommand extends DeleteCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Deletes a Number";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class DescribeCommand extends BaseCommand {
3
- static description: string;
4
- static args: {
3
+ static readonly description = "shows details for a Number";
4
+ static readonly args: {
5
5
  name: string;
6
6
  required: boolean;
7
7
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,9 +1,9 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  import { CommandError } from "@oclif/core/lib/interfaces";
3
3
  export default class GetNumbersCommand extends BaseCommand {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
4
+ static readonly description = "Shows a list of paginated Numbers or a single Number if ref is provided";
5
+ static readonly examples: string[];
6
+ static readonly flags: {
7
7
  size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
8
  extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  };
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  /*
27
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
27
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
28
28
  * http://github.com/fonoster
29
29
  *
30
30
  * This file is part of Routr.
@@ -1,8 +1,8 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class UpdateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
3
+ static readonly description = "Updates an existing set of Credentials";
4
+ static readonly examples: string[];
5
+ static readonly args: {
6
6
  name: string;
7
7
  required: boolean;
8
8
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class CreateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Creates a new Peer";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /*
30
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
30
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
31
31
  * http://github.com/fonoster
32
32
  *
33
33
  * This file is part of Routr.
@@ -112,6 +112,11 @@ class CreateCommand extends base_1.BaseCommand {
112
112
  type: "input",
113
113
  validate: validators_1.contactAddrValidator
114
114
  },
115
+ {
116
+ name: "maxContacts",
117
+ message: "Max Contacts",
118
+ type: "input"
119
+ },
115
120
  {
116
121
  name: "accessControlListRef",
117
122
  message: "IP Access Control List",
@@ -128,8 +133,7 @@ class CreateCommand extends base_1.BaseCommand {
128
133
  name: "withSessionAffinity",
129
134
  message: "Enable Session Affinity?",
130
135
  type: "confirm",
131
- default: false,
132
- when: (answers) => answers.aor.startsWith("backend:")
136
+ default: false
133
137
  },
134
138
  {
135
139
  name: "balancingAlgorithm",
@@ -145,8 +149,7 @@ class CreateCommand extends base_1.BaseCommand {
145
149
  }
146
150
  ],
147
151
  type: "list",
148
- default: common_1.CommonTypes.LoadBalancingAlgorithm.ROUND_ROBIN,
149
- when: (answers) => answers.aor.startsWith("backend:")
152
+ default: common_1.CommonTypes.LoadBalancingAlgorithm.ROUND_ROBIN
150
153
  },
151
154
  {
152
155
  name: "enabled",
@@ -1,6 +1,6 @@
1
1
  import DeleteCommand from "../../delete";
2
2
  export default class DeletePeerCommand extends DeleteCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Deletes a Peer";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class DescribeCommand extends BaseCommand {
3
- static description: string;
4
- static args: {
3
+ static readonly description = "shows details for a Peer";
4
+ static readonly args: {
5
5
  name: string;
6
6
  required: boolean;
7
7
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -43,6 +43,7 @@ class DescribeCommand extends base_1.BaseCommand {
43
43
  "Balancing Algorithm": peer.balancingAlgorithm,
44
44
  "Session Affinity?": peer.withSessionAffinity ? "Yes" : "No",
45
45
  "Contact Address": peer.contactAddr,
46
+ "Max Contacts": peer.maxContacts,
46
47
  Enabled: peer.enabled ? "Yes" : "No",
47
48
  "Access Control List": peer.accessControlList
48
49
  ? {
@@ -1,9 +1,9 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  import { CommandError } from "@oclif/core/lib/interfaces";
3
3
  export default class GetCommand extends BaseCommand {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
4
+ static readonly description = "Shows a list of paginated Peers or a single Peer if ref is provided";
5
+ static readonly examples: string[];
6
+ static readonly flags: {
7
7
  size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
8
  extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  };
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  /*
27
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
27
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
28
28
  * http://github.com/fonoster
29
29
  *
30
30
  * This file is part of Routr.
@@ -67,6 +67,10 @@ class GetCommand extends base_1.BaseCommand {
67
67
  aor: {
68
68
  header: "AOR"
69
69
  },
70
+ maxContacts: {
71
+ header: "Max Contacts",
72
+ get: (row) => row.maxContacts === -1 ? "" : row.maxContacts
73
+ },
70
74
  enabled: {
71
75
  header: "Enabled",
72
76
  get: (row) => (row.enabled ? "Yes" : "No")
@@ -98,8 +102,8 @@ exports.default = GetCommand;
98
102
  GetCommand.description = "Shows a list of paginated Peers or a single Peer if ref is provided";
99
103
  GetCommand.examples = [
100
104
  `<%= config.bin %> <%= command.id %>
101
- Ref Name Username AOR Balancing Algorithm Session Affinity
102
- 6f941c63-880c-419a-a72a-4a107cbaf5c5 Asterisk Conference conference backend:conference ROUND_ROBIN Yes
105
+ Ref Name Username AOR Max Contacts Balancing Algorithm Session Affinity
106
+ 6f941c63-880c-419a-a72a-4a107cbaf5c5 Asterisk Conference conference sip:conference@sip.local 1 ROUND_ROBIN Yes
103
107
  `
104
108
  ];
105
109
  GetCommand.flags = {
@@ -1,8 +1,8 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class UpdatePeerCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
3
+ static readonly description = "Updates an existing Peer";
4
+ static readonly examples: string[];
5
+ static readonly args: {
6
6
  name: string;
7
7
  required: boolean;
8
8
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -83,6 +83,12 @@ class UpdatePeerCommand extends base_1.BaseCommand {
83
83
  default: peerFromDB.contactAddr || undefined,
84
84
  validate: validators_1.contactAddrValidator
85
85
  },
86
+ {
87
+ name: "maxContacts",
88
+ message: "Max Contacts",
89
+ type: "input",
90
+ default: peerFromDB.maxContacts === -1 ? "" : peerFromDB.maxContacts
91
+ },
86
92
  {
87
93
  name: "accessControlListRef",
88
94
  message: "IP Access Control List",
@@ -101,8 +107,7 @@ class UpdatePeerCommand extends base_1.BaseCommand {
101
107
  name: "withSessionAffinity",
102
108
  message: "Enable Session Affinity?",
103
109
  type: "confirm",
104
- default: peerFromDB.withSessionAffinity,
105
- when: (answers) => answers.aor.startsWith("backend:")
110
+ default: peerFromDB.withSessionAffinity
106
111
  },
107
112
  {
108
113
  name: "balancingAlgorithm",
@@ -118,8 +123,7 @@ class UpdatePeerCommand extends base_1.BaseCommand {
118
123
  }
119
124
  ],
120
125
  type: "list",
121
- default: peerFromDB.balancingAlgorithm,
122
- when: (answers) => answers.aor.startsWith("backend:")
126
+ default: peerFromDB.balancingAlgorithm
123
127
  },
124
128
  {
125
129
  name: "enabled",
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class CreateTrunkCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
3
+ static readonly description = "Creates a new Trunk";
4
+ static readonly examples: string[];
5
5
  run(): Promise<void>;
6
6
  }
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  /*
30
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
30
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
31
31
  * http://github.com/fonoster
32
32
  *
33
33
  * This file is part of Routr.
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
@@ -1,9 +1,9 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  import { CommandError } from "@oclif/core/lib/interfaces";
3
3
  export default class GetTrunksCommand extends BaseCommand {
4
- static description: string;
5
- static examples: string[];
6
- static flags: {
4
+ static readonly description = "Shows a list of paginated Trunks or a single Trunk if ref is provided";
5
+ static readonly examples: string[];
6
+ static readonly flags: {
7
7
  size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
8
  extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
9
  };
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  /*
27
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
27
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
28
28
  * http://github.com/fonoster
29
29
  *
30
30
  * This file is part of Routr.
@@ -1,8 +1,8 @@
1
1
  import { BaseCommand } from "../../base";
2
2
  export default class UpdateCommand extends BaseCommand {
3
- static description: string;
4
- static examples: string[];
5
- static args: {
3
+ static readonly description = "Updates an existing Trunk";
4
+ static readonly examples: string[];
5
+ static readonly args: {
6
6
  name: string;
7
7
  required: boolean;
8
8
  description: string;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /*
7
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
7
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
8
  * http://github.com/fonoster
9
9
  *
10
10
  * This file is part of Routr.
package/dist/countries.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.countries = void 0;
4
4
  /*
5
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster
7
7
  *
8
8
  * This file is part of Routr.
package/dist/delete.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BaseCommand } from "./base";
2
2
  export default abstract class DeleteCommand extends BaseCommand {
3
- static args: {
3
+ static readonly args: {
4
4
  name: string;
5
5
  }[];
6
6
  deleteResource(API: any, funcName: string): Promise<void>;
package/dist/delete.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /*
4
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
4
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
5
  * http://github.com/fonoster/fonoster
6
6
  *
7
7
  * This file is part of Fonoster
package/dist/help.js CHANGED
@@ -1,24 +1,4 @@
1
1
  "use strict";
2
- /*
3
- * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
4
- * http://github.com/fonoster
5
- *
6
- * This file is part of Routr.
7
- *
8
- * Licensed under the MIT License (the "License");
9
- * you may not use this file except in compliance with
10
- * the License. You may obtain a copy of the License at
11
- *
12
- * https://opensource.org/licenses/MIT
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- */
20
- /* eslint-disable require-jsdoc */
21
- // import { Help } from "@oclif/plugin-help"
22
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
23
3
  if (k2 === undefined) k2 = k;
24
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -43,8 +23,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
43
23
  return result;
44
24
  };
45
25
  Object.defineProperty(exports, "__esModule", { value: true });
46
- const core_1 = require("@oclif/core");
26
+ /*
27
+ * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
28
+ * http://github.com/fonoster
29
+ *
30
+ * This file is part of Routr.
31
+ *
32
+ * Licensed under the MIT License (the "License");
33
+ * you may not use this file except in compliance with
34
+ * the License. You may obtain a copy of the License at
35
+ *
36
+ * https://opensource.org/licenses/MIT
37
+ *
38
+ * Unless required by applicable law or agreed to in writing, software
39
+ * distributed under the License is distributed on an "AS IS" BASIS,
40
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41
+ * See the License for the specific language governing permissions and
42
+ * limitations under the License.
43
+ */
44
+ /* eslint-disable require-jsdoc */
47
45
  const figlet = __importStar(require("figlet"));
46
+ const core_1 = require("@oclif/core");
48
47
  class MyHelpClass extends core_1.Help {
49
48
  async showRootHelp() {
50
49
  this.showLogo();