@fonoster/ctl 0.9.21 → 0.9.23
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.
- package/README.md +57 -57
- package/dist/AuthenticatedCommand.d.ts +18 -0
- package/dist/AuthenticatedCommand.js +1 -2
- package/dist/BaseCommand.d.ts +18 -0
- package/dist/BaseCommand.js +1 -2
- package/dist/Help.d.ts +18 -0
- package/dist/Help.js +1 -2
- package/dist/commands/apikeys/create.js +1 -2
- package/dist/commands/apikeys/delete.js +1 -2
- package/dist/commands/apikeys/list.js +1 -2
- package/dist/commands/apikeys/regenerate.js +1 -2
- package/dist/commands/applications/create.js +2 -3
- package/dist/commands/applications/delete.js +1 -2
- package/dist/commands/applications/get.js +1 -2
- package/dist/commands/applications/list.js +1 -2
- package/dist/commands/applications/update.js +1 -2
- package/dist/commands/bug.d.ts +18 -0
- package/dist/commands/bug.js +1 -2
- package/dist/commands/feedback.d.ts +18 -0
- package/dist/commands/feedback.js +1 -2
- package/dist/commands/secrets/create.js +1 -2
- package/dist/commands/secrets/delete.js +1 -2
- package/dist/commands/secrets/get.js +1 -2
- package/dist/commands/secrets/list.js +1 -2
- package/dist/commands/secrets/update.js +1 -2
- package/dist/commands/sipnet/acls/create.js +1 -2
- package/dist/commands/sipnet/acls/delete.js +1 -2
- package/dist/commands/sipnet/acls/get.js +1 -2
- package/dist/commands/sipnet/acls/list.js +1 -2
- package/dist/commands/sipnet/acls/update.js +1 -2
- package/dist/commands/sipnet/agents/create.js +1 -2
- package/dist/commands/sipnet/agents/delete.js +1 -2
- package/dist/commands/sipnet/agents/get.js +1 -2
- package/dist/commands/sipnet/agents/list.js +1 -2
- package/dist/commands/sipnet/agents/update.js +2 -3
- package/dist/commands/sipnet/calls/create.js +3 -4
- package/dist/commands/sipnet/calls/get.js +1 -2
- package/dist/commands/sipnet/calls/list.js +2 -3
- package/dist/commands/sipnet/credentials/create.js +1 -2
- package/dist/commands/sipnet/credentials/delete.js +1 -2
- package/dist/commands/sipnet/credentials/get.js +1 -2
- package/dist/commands/sipnet/credentials/list.js +1 -2
- package/dist/commands/sipnet/credentials/update.js +1 -2
- package/dist/commands/sipnet/domains/create.js +1 -2
- package/dist/commands/sipnet/domains/delete.js +1 -2
- package/dist/commands/sipnet/domains/get.js +1 -2
- package/dist/commands/sipnet/domains/list.js +1 -2
- package/dist/commands/sipnet/domains/update.js +1 -2
- package/dist/commands/sipnet/numbers/create.js +2 -3
- package/dist/commands/sipnet/numbers/delete.js +1 -2
- package/dist/commands/sipnet/numbers/get.js +1 -2
- package/dist/commands/sipnet/numbers/linkTwilioNumber.js +1 -2
- package/dist/commands/sipnet/numbers/list.js +1 -2
- package/dist/commands/sipnet/numbers/update.js +2 -3
- package/dist/commands/sipnet/trunks/create.js +1 -2
- package/dist/commands/sipnet/trunks/delete.js +1 -2
- package/dist/commands/sipnet/trunks/get.js +1 -2
- package/dist/commands/sipnet/trunks/list.js +1 -2
- package/dist/commands/sipnet/trunks/update.js +1 -2
- package/dist/commands/utils/autopilotTestsCases.js +5 -6
- package/dist/commands/workspaces/active.d.ts +18 -0
- package/dist/commands/workspaces/active.js +2 -3
- package/dist/commands/workspaces/list.d.ts +18 -0
- package/dist/commands/workspaces/list.js +1 -2
- package/dist/commands/workspaces/login.js +1 -2
- package/dist/commands/workspaces/logout.d.ts +18 -0
- package/dist/commands/workspaces/logout.js +1 -2
- package/dist/commands/workspaces/use.d.ts +18 -0
- package/dist/commands/workspaces/use.js +1 -2
- package/dist/config/addWorkspace.d.ts +18 -0
- package/dist/config/getActiveWorkspace.d.ts +18 -0
- package/dist/config/getConfig.js +1 -1
- package/dist/config/index.d.ts +18 -0
- package/dist/config/index.js +1 -1
- package/dist/config/removeWorkspace.d.ts +18 -0
- package/dist/config/saveConfig.js +1 -1
- package/dist/config/setActiveWorkspace.d.ts +18 -0
- package/dist/config/types.d.ts +18 -0
- package/dist/config/validations.d.ts +18 -0
- package/dist/config/validations.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/errorHandler.d.ts +18 -0
- package/dist/errorHandler.js +1 -1
- package/dist/utils/assignTwilioNumberToTrunk.d.ts +18 -0
- package/dist/utils/calculateFutureDate.js +1 -1
- package/dist/utils/createTwilioTrunk.d.ts +18 -0
- package/dist/utils/getFonosterNumberByTelUrl.d.ts +18 -0
- package/dist/utils/getFonosterNumberByTelUrl.js +1 -1
- package/dist/utils/getFonosterTrunkByInboundUri.d.ts +18 -0
- package/dist/utils/getFonosterTrunkByInboundUri.js +1 -1
- package/dist/utils/getOutboundUri.d.ts +18 -0
- package/dist/utils/getTwilioNumber.d.ts +18 -0
- package/dist/utils/getTwilioTrunk.d.ts +18 -0
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/linkTwilioNumberToApplication.d.ts +18 -0
- package/dist/utils/linkTwilioNumberToApplication.js +1 -1
- package/dist/utils/types.d.ts +18 -0
- package/package.json +4 -4
|
@@ -42,8 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
|
|
46
|
-
/*
|
|
45
|
+
/**
|
|
47
46
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
48
47
|
* http://github.com/fonoster/fonoster
|
|
49
48
|
*
|
|
@@ -61,13 +60,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
61
60
|
* See the License for the specific language governing permissions and
|
|
62
61
|
* limitations under the License.
|
|
63
62
|
*/
|
|
64
|
-
const core_1 = require("@oclif/core");
|
|
65
63
|
const fs = __importStar(require("fs"));
|
|
66
|
-
const yaml = __importStar(require("js-yaml"));
|
|
67
|
-
const autopilot_1 = require("@fonoster/autopilot");
|
|
68
|
-
const AuthenticatedCommand_1 = require("../../AuthenticatedCommand");
|
|
69
64
|
const path = __importStar(require("path"));
|
|
65
|
+
const autopilot_1 = require("@fonoster/autopilot");
|
|
70
66
|
const common_1 = require("@fonoster/common");
|
|
67
|
+
const core_1 = require("@oclif/core");
|
|
68
|
+
const yaml = __importStar(require("js-yaml"));
|
|
69
|
+
const AuthenticatedCommand_1 = require("../../AuthenticatedCommand");
|
|
71
70
|
class AutopilotTestsCases extends AuthenticatedCommand_1.AuthenticatedCommand {
|
|
72
71
|
run() {
|
|
73
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Command } from "@oclif/core";
|
|
2
20
|
export default class Active extends Command {
|
|
3
21
|
static description: string;
|
|
@@ -12,8 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
|
|
16
|
-
/*
|
|
15
|
+
/**
|
|
17
16
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
18
17
|
* http://github.com/fonoster/fonoster
|
|
19
18
|
*
|
|
@@ -32,9 +31,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
32
31
|
* limitations under the License.
|
|
33
32
|
*/
|
|
34
33
|
const core_1 = require("@oclif/core");
|
|
34
|
+
const cliui_1 = __importDefault(require("cliui"));
|
|
35
35
|
const config_1 = require("../../config");
|
|
36
36
|
const constants_1 = require("../../constants");
|
|
37
|
-
const cliui_1 = __importDefault(require("cliui"));
|
|
38
37
|
class Active extends core_1.Command {
|
|
39
38
|
run() {
|
|
40
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Command } from "@oclif/core";
|
|
2
20
|
export default class List extends Command {
|
|
3
21
|
static description: string;
|
|
@@ -12,8 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
|
|
16
|
-
/*
|
|
15
|
+
/**
|
|
17
16
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
18
17
|
* http://github.com/fonoster/fonoster
|
|
19
18
|
*
|
|
@@ -42,8 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
|
|
46
|
-
/*
|
|
45
|
+
/**
|
|
47
46
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
48
47
|
* http://github.com/fonoster/fonoster
|
|
49
48
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Command } from "@oclif/core";
|
|
2
20
|
export default class Logout extends Command {
|
|
3
21
|
static readonly description = "unlink a Workspace from the local environment";
|
|
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
/*
|
|
12
|
+
/**
|
|
14
13
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
15
14
|
* http://github.com/fonoster/fonoster
|
|
16
15
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Command } from "@oclif/core";
|
|
2
20
|
export default class Use extends Command {
|
|
3
21
|
static readonly description = "set a Workspace as the default";
|
|
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
|
|
13
|
-
/*
|
|
12
|
+
/**
|
|
14
13
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
15
14
|
* http://github.com/fonoster/fonoster
|
|
16
15
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { WorkspaceConfig } from "./types";
|
|
2
20
|
declare function addWorkspace(config: WorkspaceConfig, workspaces: WorkspaceConfig[]): WorkspaceConfig[];
|
|
3
21
|
export { addWorkspace };
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { WorkspaceConfig } from "./types";
|
|
2
20
|
declare function getActiveWorkspace(workspaces: WorkspaceConfig[]): WorkspaceConfig;
|
|
3
21
|
export { getActiveWorkspace };
|
package/dist/config/getConfig.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getConfig = getConfig;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
export * from "./addWorkspace";
|
|
2
20
|
export * from "./getConfig";
|
|
3
21
|
export * from "./getActiveWorkspace";
|
package/dist/config/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/fonoster
|
|
20
20
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { WorkspaceConfig } from "./types";
|
|
2
20
|
declare function removeWorkspace(ref: string, workspaces: WorkspaceConfig[]): WorkspaceConfig[];
|
|
3
21
|
export { removeWorkspace };
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.saveConfig = saveConfig;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { WorkspaceConfig } from "./types";
|
|
2
20
|
declare function setActiveWorkspace(ref: string, workspaces: WorkspaceConfig[]): WorkspaceConfig[];
|
|
3
21
|
export { setActiveWorkspace };
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { z } from "zod";
|
|
2
20
|
import { workspaceConfigSchema } from "./validations";
|
|
3
21
|
type WorkspaceConfig = z.infer<typeof workspaceConfigSchema>;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { z } from "zod";
|
|
2
20
|
declare const workspaceConfigSchema: z.ZodObject<{
|
|
3
21
|
endpoint: z.ZodString;
|
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WORKSPACE_ENDPOINT = exports.TWILIO_PSTN_URI_BASE = exports.FONOSTER_ORIGINATION_URI_BASE = exports.FONOSTER_ACCESS_CONTROL_LIST = exports.CONFIG_FILE = exports.BASE_DIR = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/fonoster
|
|
7
7
|
*
|
package/dist/errorHandler.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
declare function errorHandler(e: unknown, log: (message: string) => void): void;
|
|
2
20
|
export default errorHandler;
|
package/dist/errorHandler.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Twilio } from "twilio";
|
|
2
20
|
declare function assignTwilioNumberToTrunk(client: Twilio, phoneNumber: string, trunkSid: string): Promise<void>;
|
|
3
21
|
export { assignTwilioNumberToTrunk };
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.calculateFutureDate = calculateFutureDate;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Twilio } from "twilio";
|
|
2
20
|
import { TwilioTrunkParams } from ".";
|
|
3
21
|
declare function createTwilioTrunk(client: Twilio, params: TwilioTrunkParams): Promise<void>;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import * as Fonoster from "@fonoster/sdk";
|
|
2
20
|
import { INumber } from "@fonoster/types";
|
|
3
21
|
declare function getFonosterNumberByTelUrl(client: Fonoster.Client, telUrl: string): Promise<INumber>;
|
|
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.getFonosterNumberByTelUrl = getFonosterNumberByTelUrl;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
47
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
48
48
|
* http://github.com/fonoster/fonoster
|
|
49
49
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import * as Fonoster from "@fonoster/sdk";
|
|
2
20
|
import { Trunk } from "@fonoster/types";
|
|
3
21
|
declare function getFonosterTrunkByInboundUri(client: Fonoster.Client, inboundUri: string): Promise<Trunk>;
|
|
@@ -43,7 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.getFonosterTrunkByInboundUri = getFonosterTrunkByInboundUri;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
47
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
48
48
|
* http://github.com/fonoster/fonoster
|
|
49
49
|
*
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
type Uri = {
|
|
2
20
|
transport: string;
|
|
3
21
|
host: string;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Twilio } from "twilio";
|
|
2
20
|
import { IncomingPhoneNumberInstance } from "twilio/lib/rest/api/v2010/account/incomingPhoneNumber";
|
|
3
21
|
declare function getTwilioNumber(client: Twilio, phoneNumber: string): Promise<IncomingPhoneNumberInstance>;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Twilio } from "twilio";
|
|
2
20
|
import { TrunkInstance } from "twilio/lib/rest/trunking/v1/trunk";
|
|
3
21
|
declare function getTwilioTrunk(client: Twilio, terminationSipUri: string): Promise<TrunkInstance>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
export * from "./assignTwilioNumberToTrunk";
|
|
2
20
|
export * from "./calculateFutureDate";
|
|
3
21
|
export * from "./createTwilioTrunk";
|
package/dist/utils/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/fonoster
|
|
20
20
|
*
|