diff --git a/package-lock.json b/package-lock.json index dfdc58397..c1c84b1b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@oceanprotocol/lib": "^2.5.2", "@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/use-dark-mode": "^2.4.3", - "@orbisclub/orbis-sdk": "^0.4.9", + "@orbisclub/orbis-sdk": "^0.4.11", "@tippyjs/react": "^4.2.6", "@urql/exchange-refocus": "^1.0.0", "@walletconnect/web3-provider": "^1.8.0", @@ -5925,9 +5925,9 @@ } }, "node_modules/@orbisclub/orbis-sdk": { - "version": "0.4.9", - "resolved": "https://registry.npmjs.org/@orbisclub/orbis-sdk/-/orbis-sdk-0.4.9.tgz", - "integrity": "sha512-iQcF2nCTJ/vfsSPVaXQv7nphAY9YeNXBd8GyWOgDr9Fy23ghJtKmgr2IZ2lWOb8CIXt1EX/lgqSr6M/cylO/YA==", + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/@orbisclub/orbis-sdk/-/orbis-sdk-0.4.11.tgz", + "integrity": "sha512-wq5K2/azg72Vt1qENoJ+5gvzaj9Sa2vNFtgGPii11aOhVEix4bkP7wmJyYBNLhrmefnulPqwa6L/VajIcSqFwA==", "dependencies": { "@ceramicnetwork/http-client": "^2.13.0-hotfix.0", "@ceramicnetwork/stream-tile": "^2.12.0-hotfix.0", diff --git a/package.json b/package.json index 040205ee2..f25810c13 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@oceanprotocol/lib": "^2.5.2", "@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/use-dark-mode": "^2.4.3", - "@orbisclub/orbis-sdk": "^0.4.9", + "@orbisclub/orbis-sdk": "^0.4.11", "@tippyjs/react": "^4.2.6", "@urql/exchange-refocus": "^1.0.0", "@walletconnect/web3-provider": "^1.8.0", diff --git a/src/@types/Orbis.d.ts b/src/@types/Orbis.d.ts index 117e83e16..a170ae7b2 100644 --- a/src/@types/Orbis.d.ts +++ b/src/@types/Orbis.d.ts @@ -203,6 +203,16 @@ declare interface IOrbis { error: unknown status: number }> + getNotificationsCount: (options: { + type: string + context?: string + conversation_id?: string + last_read_timestamp?: number + }) => Promise<{ + data: { count_new_notifications: number } + error: unknown + status: number + }> getPost: (post_id: string) => Promise<{ data: IOrbisPost error: unknown