@firebolt-js/core-client 1.0.0-next.5
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/CHANGELOG.md +0 -0
- package/CONTRIBUTING.md +4 -0
- package/LICENSE +202 -0
- package/NOTICE +24 -0
- package/README.md +26 -0
- package/dist/docs/Accessibility/index.md +384 -0
- package/dist/docs/Accessibility/schemas/index.md +52 -0
- package/dist/docs/Advertising/index.md +120 -0
- package/dist/docs/Device/index.md +297 -0
- package/dist/docs/Discovery/index.md +128 -0
- package/dist/docs/Display/index.md +87 -0
- package/dist/docs/Internal/index.md +68 -0
- package/dist/docs/Lifecycle2/index.md +160 -0
- package/dist/docs/Localization/index.md +314 -0
- package/dist/docs/Localization/schemas/index.md +41 -0
- package/dist/docs/Metrics/index.md +987 -0
- package/dist/docs/Network/index.md +128 -0
- package/dist/docs/Policies/schemas/index.md +25 -0
- package/dist/docs/Presentation/index.md +53 -0
- package/dist/docs/Stats/index.md +63 -0
- package/dist/docs/TextToSpeech/index.md +524 -0
- package/dist/docs/Types/schemas/index.md +37 -0
- package/dist/firebolt-core-app-open-rpc.json +1082 -0
- package/dist/firebolt-core-open-rpc.json +3773 -0
- package/dist/lib/Accessibility/defaults.mjs +61 -0
- package/dist/lib/Accessibility/index.mjs +148 -0
- package/dist/lib/Advertising/defaults.mjs +26 -0
- package/dist/lib/Advertising/index.mjs +31 -0
- package/dist/lib/Device/defaults.mjs +34 -0
- package/dist/lib/Device/index.mjs +84 -0
- package/dist/lib/Discovery/defaults.mjs +22 -0
- package/dist/lib/Discovery/index.mjs +34 -0
- package/dist/lib/Events/index.mjs +345 -0
- package/dist/lib/Gateway/AppApi.mjs +125 -0
- package/dist/lib/Gateway/Bidirectional.mjs +113 -0
- package/dist/lib/Gateway/PlatformApi.mjs +130 -0
- package/dist/lib/Gateway/index.mjs +48 -0
- package/dist/lib/Localization/defaults.mjs +44 -0
- package/dist/lib/Localization/index.mjs +123 -0
- package/dist/lib/Log/index.mjs +57 -0
- package/dist/lib/Metrics/defaults.mjs +40 -0
- package/dist/lib/Metrics/index.mjs +206 -0
- package/dist/lib/Network/defaults.mjs +24 -0
- package/dist/lib/Network/index.mjs +70 -0
- package/dist/lib/Platform/defaults.mjs +27 -0
- package/dist/lib/Platform/index.mjs +28 -0
- package/dist/lib/Prop/MockProps.mjs +28 -0
- package/dist/lib/Prop/Router.mjs +25 -0
- package/dist/lib/Prop/index.mjs +60 -0
- package/dist/lib/Settings/index.mjs +86 -0
- package/dist/lib/Transport/MockTransport.mjs +191 -0
- package/dist/lib/Transport/WebsocketTransport.mjs +55 -0
- package/dist/lib/Transport/index.mjs +81 -0
- package/dist/lib/firebolt.d.ts +795 -0
- package/dist/lib/firebolt.mjs +51 -0
- package/firebolt-js-core-client-1.0.0-next.5.tgz +0 -0
- package/package.json +54 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2021 Comcast Cable Communications Management, LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import { setMockResponses } from './Transport/MockTransport.mjs'
|
|
20
|
+
|
|
21
|
+
import { default as _Accessibility } from './Accessibility/defaults.mjs'
|
|
22
|
+
import { default as _Advertising } from './Advertising/defaults.mjs'
|
|
23
|
+
import { default as _Device } from './Device/defaults.mjs'
|
|
24
|
+
import { default as _Localization } from './Localization/defaults.mjs'
|
|
25
|
+
import { default as _Metrics } from './Metrics/defaults.mjs'
|
|
26
|
+
import { default as _Network } from './Network/defaults.mjs'
|
|
27
|
+
import { default as _Discovery } from './Discovery/defaults.mjs'
|
|
28
|
+
import { default as _Platform } from './Platform/defaults.mjs'
|
|
29
|
+
|
|
30
|
+
setMockResponses({
|
|
31
|
+
Accessibility: _Accessibility,
|
|
32
|
+
Advertising: _Advertising,
|
|
33
|
+
Device: _Device,
|
|
34
|
+
Localization: _Localization,
|
|
35
|
+
Metrics: _Metrics,
|
|
36
|
+
Network: _Network,
|
|
37
|
+
Discovery: _Discovery,
|
|
38
|
+
Platform: _Platform,
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
export { default as Accessibility } from './Accessibility/index.mjs'
|
|
42
|
+
export { default as Advertising } from './Advertising/index.mjs'
|
|
43
|
+
export { default as Device } from './Device/index.mjs'
|
|
44
|
+
export { default as Localization } from './Localization/index.mjs'
|
|
45
|
+
export { default as Metrics } from './Metrics/index.mjs'
|
|
46
|
+
export { default as Network } from './Network/index.mjs'
|
|
47
|
+
export { default as Discovery } from './Discovery/index.mjs'
|
|
48
|
+
export { default as Platform } from './Platform/index.mjs'
|
|
49
|
+
export { default as Log } from './Log/index.mjs'
|
|
50
|
+
export { default as Events } from './Events/index.mjs'
|
|
51
|
+
export { default as Settings } from './Settings/index.mjs'
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@firebolt-js/core-client",
|
|
3
|
+
"version": "1.0.0-next.5",
|
|
4
|
+
"description": "The Firebolt JS Client",
|
|
5
|
+
"main": "./dist/lib/firebolt.mjs",
|
|
6
|
+
"types": "./dist/lib/firebolt.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"validate": "npx firebolt-openrpc validate --platformApi ./dist/firebolt-core-open-rpc.json --appApi ./dist/firebolt-core-app-open-rpc.json",
|
|
10
|
+
"sdk": "npx firebolt-openrpc sdk --platformApi ./dist/firebolt-core-open-rpc.json --appApi ./dist/firebolt-core-app-open-rpc.json --template ./src/js --config-file-override ./config_override/languages/javascript --output ./build/javascript/src --static-module Platform",
|
|
11
|
+
"compile": "cd ../../.. && npm run compile",
|
|
12
|
+
"slice": "npx firebolt-openrpc slice -i ../../../dist/firebolt-open-rpc.json --sdk ./sdk.config.json -o ./dist/firebolt-core-open-rpc.json",
|
|
13
|
+
"slice:app": "npx firebolt-openrpc slice -i ../../../dist/firebolt-app-open-rpc.json --sdk ./sdk.config.json -o ./dist/firebolt-core-app-open-rpc.json",
|
|
14
|
+
"docs:nodocs": "echo 'docs: disabled'",
|
|
15
|
+
"docs": "npx firebolt-openrpc docs --platformApi ./dist/firebolt-core-open-rpc.json --appApi ./dist/firebolt-core-app-open-rpc.json --output build/docs/markdown --config-file-override ./config_override/languages/markdown --as-path",
|
|
16
|
+
"wiki": "npx firebolt-openrpc docs --platformApi ./dist/firebolt-core-open-rpc.json --appApi ./dist/firebolt-core-app-open-rpc.json --output build/docs/markdown",
|
|
17
|
+
"dist:notest": "npm run clean && npm run slice && npm run slice:app && npm run validate && npm run sdk && npm run docs && npm run prettier && npm run dist:copy && echo 'Firebolt Core Client /dist/ is ready.\n'",
|
|
18
|
+
"dist:copy": "npm run dist:copy:sdk && npm run dist:copy:docs",
|
|
19
|
+
"dist:copy:sdk": "mkdirp ./dist && cp -R build/javascript/src dist/lib && cp ./dist/firebolt-core-open-rpc.json ../../../dist/firebolt-core-open-rpc.json",
|
|
20
|
+
"dist:copy:docs": "mkdirp ./dist && cp -R build/docs/markdown dist/docs",
|
|
21
|
+
"dist": "npm run dist:notest && npm run test:notest",
|
|
22
|
+
"clean": "rm -rf ./build && rm -rf ./dist",
|
|
23
|
+
"test:setup": "rm -rf test/transpiled-suite && npx tsc --target es6 --moduleResolution node --outDir test/transpiled-suite",
|
|
24
|
+
"test": "npm run test:setup && NODE_OPTIONS=--experimental-vm-modules npx --config=jest.config.json --detectOpenHandles jest ./test/transpiled-suite",
|
|
25
|
+
"test:component": "NODE_OPTIONS=--experimental-vm-modules npx jest --runInBand ./test/component",
|
|
26
|
+
"test:notest": "echo 'test: disabled'",
|
|
27
|
+
"prepack": "node ../../js/version.mjs validate && npm run broilerplate",
|
|
28
|
+
"broilerplate": "rm ./CONTRIBUTING.md && cp ../../../CONTRIBUTING.md ./CONTRIBUTING.md && rm ./LICENSE && cp ../../../LICENSE ./LICENSE && rm ./NOTICE && cp ../../../NOTICE ./NOTICE",
|
|
29
|
+
"prettier": "prettier build/**/*.mjs --write --parser babel && prettier build/**/*.ts --write --parser typescript && prettier build/**/*.md --write --parser markdown",
|
|
30
|
+
"getVersion": "node -p \"require('./package.json').version\""
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/rdkcentral/firebolt-js-client",
|
|
35
|
+
"directory": "src/sdks/core"
|
|
36
|
+
},
|
|
37
|
+
"author": "",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/rdkcentral/firebolt-js-client/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/rdkcentral/firebolt-js-client#readme",
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"jest": "^28.1.0",
|
|
44
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
45
|
+
"prettier": "^3.1.0",
|
|
46
|
+
"typescript": "^4.6.4"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"firebolt",
|
|
50
|
+
"apps",
|
|
51
|
+
"sdk"
|
|
52
|
+
],
|
|
53
|
+
"license": "Apache-2.0"
|
|
54
|
+
}
|