Skip to content

Commit

Permalink
Merge branch 'next' into SDK-100
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 authored Sep 17, 2024
2 parents d11e2fe + beda574 commit d5a9347
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
20 changes: 20 additions & 0 deletions src/js/github.io/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }
Expand Down Expand Up @@ -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("-")

Expand Down
2 changes: 1 addition & 1 deletion src/sdks/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/sdks/discovery/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/sdks/manage/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d5a9347

Please sign in to comment.