@fonoster/sdk 0.5.4 → 0.6.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.
- package/README.md +3 -0
- package/dist/fonoster.min.js +1 -0
- package/dist/index.d.ts +6 -27
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -53
- package/dist/printHello.d.ts +2 -0
- package/package.json +28 -24
- package/LICENSE +0 -21
package/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
[<a href="https://gitpod.io/#https://github.com/fonoster/fonoster"> <img src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod" alt="Contribute with Gitpod" />
|
|
2
|
+
|
|
3
|
+
This module is part of the \[Fonoster\](https://fonoster.com) project. By itself, it does not do much. It is intended to be used as a dependency for other modules. For more information about the project, please visit \[https://github.com/fonoster/fonoster\](https://github.com/fonoster/fonoster).a](../apiserver/README.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).Fonoster=o()}(this,(function(){"use strict";return class{constructor(e){this.baseUrl=e}printHello(){console.log("Hello from printHello")}}}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import Agents from "@fonoster/agents";
|
|
8
|
-
import Auth from "@fonoster/auth";
|
|
9
|
-
import Projects from "@fonoster/projects";
|
|
10
|
-
import Users from "@fonoster/users";
|
|
11
|
-
import Monitor from "@fonoster/monitor";
|
|
12
|
-
import Apps from "@fonoster/apps";
|
|
13
|
-
declare const Fonoster: {
|
|
14
|
-
Secrets: typeof Secrets;
|
|
15
|
-
Auth: typeof Auth;
|
|
16
|
-
Agents: typeof Agents;
|
|
17
|
-
CallManager: typeof CallManager;
|
|
18
|
-
Domains: typeof Domains;
|
|
19
|
-
Storage: typeof Storage;
|
|
20
|
-
Numbers: typeof Numbers;
|
|
21
|
-
Providers: typeof Providers;
|
|
22
|
-
Projects: typeof Projects;
|
|
23
|
-
Users: typeof Users;
|
|
24
|
-
Monitor: typeof Monitor;
|
|
25
|
-
Apps: typeof Apps;
|
|
26
|
-
};
|
|
27
|
-
export { Fonoster as default };
|
|
1
|
+
declare class Fonoster {
|
|
2
|
+
private baseUrl;
|
|
3
|
+
constructor(baseUrl: string);
|
|
4
|
+
printHello(): void;
|
|
5
|
+
}
|
|
6
|
+
export default Fonoster;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class l{constructor(l){this.baseUrl=l}printHello(){console.log("Hello from printHello")}}export{l as default};
|
package/dist/index.js
CHANGED
|
@@ -1,53 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
/*
|
|
8
|
-
* Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
|
|
9
|
-
* http://github.com/fonoster/fonoster
|
|
10
|
-
*
|
|
11
|
-
* This file is part of Fonoster
|
|
12
|
-
*
|
|
13
|
-
* Licensed under the MIT License (the "License");
|
|
14
|
-
* you may not use this file except in compliance with
|
|
15
|
-
* the License. You may obtain a copy of the License at
|
|
16
|
-
*
|
|
17
|
-
* https://opensource.org/licenses/MIT
|
|
18
|
-
*
|
|
19
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
* See the License for the specific language governing permissions and
|
|
23
|
-
* limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
const callmanager_1 = __importDefault(require("@fonoster/callmanager"));
|
|
26
|
-
const storage_1 = __importDefault(require("@fonoster/storage"));
|
|
27
|
-
const secrets_1 = __importDefault(require("@fonoster/secrets"));
|
|
28
|
-
const providers_1 = __importDefault(require("@fonoster/providers"));
|
|
29
|
-
const numbers_1 = __importDefault(require("@fonoster/numbers"));
|
|
30
|
-
const domains_1 = __importDefault(require("@fonoster/domains"));
|
|
31
|
-
const agents_1 = __importDefault(require("@fonoster/agents"));
|
|
32
|
-
const auth_1 = __importDefault(require("@fonoster/auth"));
|
|
33
|
-
const projects_1 = __importDefault(require("@fonoster/projects"));
|
|
34
|
-
const users_1 = __importDefault(require("@fonoster/users"));
|
|
35
|
-
const monitor_1 = __importDefault(require("@fonoster/monitor"));
|
|
36
|
-
const apps_1 = __importDefault(require("@fonoster/apps"));
|
|
37
|
-
const Fonoster = {
|
|
38
|
-
Secrets: secrets_1.default,
|
|
39
|
-
Auth: auth_1.default,
|
|
40
|
-
Agents: agents_1.default,
|
|
41
|
-
CallManager: callmanager_1.default,
|
|
42
|
-
Domains: domains_1.default,
|
|
43
|
-
Storage: storage_1.default,
|
|
44
|
-
Numbers: numbers_1.default,
|
|
45
|
-
Providers: providers_1.default,
|
|
46
|
-
Projects: projects_1.default,
|
|
47
|
-
Users: users_1.default,
|
|
48
|
-
Monitor: monitor_1.default,
|
|
49
|
-
Apps: apps_1.default
|
|
50
|
-
};
|
|
51
|
-
exports.default = Fonoster;
|
|
52
|
-
// WARNING: Workaround to support commonjs clients
|
|
53
|
-
module.exports = Fonoster;
|
|
1
|
+
"use strict";module.exports=class{constructor(l){this.baseUrl=l}printHello(){console.log("Hello from printHello")}};
|
package/package.json
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Web and Node.js SDK for Fonoster",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"main": "dist/index",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.esm.js",
|
|
10
|
+
"browser": "dist/fonoster.min.js",
|
|
11
|
+
"unpkg": "dist/fonoster.min.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
14
13
|
"directories": {
|
|
15
14
|
"src": "src",
|
|
16
15
|
"test": "test"
|
|
17
16
|
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"prebuild": "rimraf ./dist tsconfig.tsbuildinfo",
|
|
19
|
+
"build": "rollup -c rollup.config.mjs",
|
|
20
|
+
"clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"sdk",
|
|
24
|
+
"fonoster"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@grpc/grpc-js": "^1.10.6",
|
|
28
|
+
"@grpc/proto-loader": "^0.7.12",
|
|
29
|
+
"google-protobuf": "^3.21.2"
|
|
30
|
+
},
|
|
18
31
|
"files": [
|
|
19
32
|
"dist"
|
|
20
33
|
],
|
|
@@ -28,20 +41,11 @@
|
|
|
28
41
|
"bugs": {
|
|
29
42
|
"url": "https://github.com/fonoster/fonoster/issues"
|
|
30
43
|
},
|
|
31
|
-
"
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"@fonoster/monitor": "^0.5.4",
|
|
39
|
-
"@fonoster/numbers": "^0.5.4",
|
|
40
|
-
"@fonoster/projects": "^0.5.4",
|
|
41
|
-
"@fonoster/providers": "^0.5.4",
|
|
42
|
-
"@fonoster/secrets": "^0.5.4",
|
|
43
|
-
"@fonoster/storage": "^0.5.4",
|
|
44
|
-
"@fonoster/users": "^0.5.4"
|
|
45
|
-
},
|
|
46
|
-
"gitHead": "a1dae664944ab191e925e49346e0916f8c8347a1"
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
46
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
47
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
48
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
49
|
+
"rollup": "^4.18.0"
|
|
50
|
+
}
|
|
47
51
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Fonoster Inc
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|