diff --git a/CHANGELOG.md b/CHANGELOG.md index 357cbaa79..edbe35f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.4.0-next.4](https://github.com/rdkcentral/firebolt-apis/compare/v1.4.0-next.3...v1.4.0-next.4) (2024-09-12) + + +### Bug Fixes + +* Added individual sdk openrpcs to the doc specification ([#311](https://github.com/rdkcentral/firebolt-apis/issues/311)) ([ace1d64](https://github.com/rdkcentral/firebolt-apis/commit/ace1d644cac114c457a739a4e4cdfe8990a96fc8)) + # [1.4.0-next.3](https://github.com/rdkcentral/firebolt-apis/compare/v1.4.0-next.2...v1.4.0-next.3) (2024-09-03) diff --git a/package-lock.json b/package-lock.json index 194b7803f..07ce7c920 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/sdks", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@firebolt-js/sdks", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "license": "Apache-2.0", "workspaces": [ "src/sdks/core", @@ -16962,7 +16962,7 @@ }, "src/sdks/core": { "name": "@firebolt-js/sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", @@ -16973,7 +16973,7 @@ }, "src/sdks/discovery": { "name": "@firebolt-js/discovery-sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", @@ -16984,7 +16984,7 @@ }, "src/sdks/manage": { "name": "@firebolt-js/manage-sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", diff --git a/package.json b/package.json index 5c6e966e7..b5bd575f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/sdks", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "description": "The Firebolt JS SDK", "type": "module", "bin": { diff --git a/src/js/github.io/index.mjs b/src/js/github.io/index.mjs index 7681a9d7f..904c97150 100644 --- a/src/js/github.io/index.mjs +++ b/src/js/github.io/index.mjs @@ -95,6 +95,8 @@ packageJson.workspaces.forEach(async workspace => { const specification = await readJson(path.join('dist', 'firebolt-specification.json')) const openrpc = await readJson(path.join('dist', 'firebolt-open-rpc.json')) const corerpc = await readJson(path.join('dist', 'firebolt-core-open-rpc.json')) +const managerpc = await readJson(path.join('dist', 'firebolt-manage-open-rpc.json')) +const discoveryrpc = await readJson(path.join('dist', 'firebolt-discovery-open-rpc.json')) const capabilities = () => { const getOrCreateCapMethodList = (capabilities, c) => capabilities[c] = capabilities[c] || { uses: [], manages: [], provides: [] } @@ -170,6 +172,24 @@ if (version === 'latest') { writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-open-rpc.json'), openrpc) } +// this is the firebolt Core OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-core-open-rpc.json'), corerpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-core-open-rpc.json'), corerpc) +} + +// this is the firebolt Manage OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-manage-open-rpc.json'), managerpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-manage-open-rpc.json'), managerpc) +} + +// this is the firebolt Discovery OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-discovery-open-rpc.json'), discoveryrpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-discovery-open-rpc.json'), discoveryrpc) +} + function channel(version) { const parts = version.split("-") diff --git a/src/sdks/core/package.json b/src/sdks/core/package.json index 942450db6..63d36897e 100644 --- a/src/sdks/core/package.json +++ b/src/sdks/core/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/sdk", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "description": "The Firebolt JS SDK", "main": "./dist/lib/firebolt.mjs", "types": "./dist/lib/firebolt.d.ts", diff --git a/src/sdks/discovery/package.json b/src/sdks/discovery/package.json index 6580609da..e1873c20a 100644 --- a/src/sdks/discovery/package.json +++ b/src/sdks/discovery/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/discovery-sdk", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "description": "The Firebolt Discovery JS SDK", "main": "./dist/lib/firebolt-discovery.mjs", "types": "./dist/lib/firebolt-discovery.d.ts", diff --git a/src/sdks/manage/package.json b/src/sdks/manage/package.json index d14b25fd7..fb9dac84e 100644 --- a/src/sdks/manage/package.json +++ b/src/sdks/manage/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/manage-sdk", - "version": "1.4.0-next.3", + "version": "1.4.0-next.4", "description": "The Firebolt Manage JS SDK", "main": "./dist/lib/firebolt-manage.mjs", "types": "./dist/lib/firebolt-manage.d.ts",