diff --git a/.gitignore b/.gitignore index 112783f2b..28614bbed 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ # dependencies node_modules +.yarn # IDEs and editors /.idea diff --git a/.husky/pre-commit b/.husky/pre-commit index a0a7d6428..2665d0376 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -4,4 +4,4 @@ echo "\nRunning GIT hooks..." yarn cleanbuild yarn nx affected --target=lint -#yarn nx affected --target=test +yarn nx affected --target=test \ No newline at end of file diff --git a/packages/restapi/CHANGELOG.md b/packages/restapi/CHANGELOG.md index b0519481b..aac21ddce 100644 --- a/packages/restapi/CHANGELOG.md +++ b/packages/restapi/CHANGELOG.md @@ -2,44 +2,364 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver). -## [1.7.6](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.5...restapi-1.7.6) (2024-04-16) +## [0.0.1-alpha.84](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.8...restapi-0.0.1-alpha.84) (2024-04-17) ### Bug Fixes -* push api account public ([f453a25](https://github.com/push-protocol/push-sdk/commit/f453a253fc10d041a44e781788e88df85daba9b0)) +* add public params ([07060e7](https://github.com/push-protocol/push-sdk/commit/07060e79df102db447032e4a69afb10767e3e9a2)) +* Merge branch 'alpha' into alpha-deployment ([39c674a](https://github.com/push-protocol/push-sdk/commit/39c674ad18caedee405d7e7d8183e1e2b0bae975)) -## [1.7.5](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.4...restapi-1.7.5) (2024-04-16) +## [0.0.1-alpha.83](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.82...restapi-0.0.1-alpha.83) (2024-04-16) ### Bug Fixes -* merge main ([ae4b5d3](https://github.com/push-protocol/push-sdk/commit/ae4b5d337d879d424ede80bb2879f96333ee5653)) +* update chat ([74a6785](https://github.com/push-protocol/push-sdk/commit/74a67854e1185b5d5128552f8c7c0fee7a0bb24b)) -## [1.7.4](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.3...restapi-1.7.4) (2024-04-15) +## [0.0.1-alpha.82](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.4...restapi-0.0.1-alpha.82) (2024-04-16) + + +### Bug Fixes + +* bug fixes ([fab3700](https://github.com/push-protocol/push-sdk/commit/fab370073224481b901351c00da43dc3bc99fa64)) +* fix fn definitions ([#1232](https://github.com/push-protocol/push-sdk/issues/1232)) ([7bbc443](https://github.com/push-protocol/push-sdk/commit/7bbc4434ec19c9969d0f1932c9cb08f74300a9b8)) +* fix tmp error ([bd70cda](https://github.com/push-protocol/push-sdk/commit/bd70cda0eb68a2329da743727c3b2a4b7f14589e)) +* Merge branch 'alpha' into alpha-deployment ([7e32f93](https://github.com/push-protocol/push-sdk/commit/7e32f93153b2ef338a1c18d4c1c6df7b9a1687cf)) +* renamed sender to account ([ce4af1a](https://github.com/push-protocol/push-sdk/commit/ce4af1a200e98de3c47055cc495f55a4a8e561cf)) + + + +## [0.0.1-alpha.81](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.80...restapi-0.0.1-alpha.81) (2024-04-15) + + +### Bug Fixes + +* chat info changes ([6718648](https://github.com/push-protocol/push-sdk/commit/67186484a4dff605ef94df83b19bb2d4a220e546)) +* Merge branch 'alpha' into alpha-deployment ([97f8390](https://github.com/push-protocol/push-sdk/commit/97f839020e9b0313548753c364f01795e6bc7b3d)) + + + +## [0.0.1-alpha.80](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.79...restapi-0.0.1-alpha.80) (2024-04-13) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([ad37848](https://github.com/push-protocol/push-sdk/commit/ad3784890d97b09b7d6212cfcd6c868cb360cba2)) + + + +## [0.0.1-alpha.79](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.78...restapi-0.0.1-alpha.79) (2024-04-12) + + +### Bug Fixes + +* added instanceids for push user and stream ([#1224](https://github.com/push-protocol/push-sdk/issues/1224)) ([34263c9](https://github.com/push-protocol/push-sdk/commit/34263c94ccfe674f915ce318a60cc21a77a0a5de)) +* Merge branch 'alpha' into alpha-deployment ([cb8d996](https://github.com/push-protocol/push-sdk/commit/cb8d996f868109a8e659a5654abfb265d2bb37ad)) + + + +## [0.0.1-alpha.78](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.3...restapi-0.0.1-alpha.78) (2024-04-10) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([3d52b21](https://github.com/push-protocol/push-sdk/commit/3d52b21accc046b2133eaf15d13e0c945d793b1f)) + + + +## [0.0.1-alpha.77](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.76...restapi-0.0.1-alpha.77) (2024-04-02) + + + +## [0.0.1-alpha.76](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.75...restapi-0.0.1-alpha.76) (2024-04-02) + + +### Bug Fixes + +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.74](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.73...restapi-0.0.1-alpha.74) (2024-03-07) + + + +## [0.0.1-alpha.73](https://github.com/push-protocol/push-sdk/compare/restapi-1.6.10...restapi-0.0.1-alpha.73) (2024-03-07) + + +### Bug Fixes + +* fixed support chat issues ([c63cbb8](https://github.com/push-protocol/push-sdk/commit/c63cbb8b64c20c2b84046beae7e3b6135ca9332e)) +* Merge branch 'alpha' into alpha-deployment ([ddfba9e](https://github.com/push-protocol/push-sdk/commit/ddfba9ecaa164f829e436af796ebe85a6c30bfae)) + + + +## [0.0.1-alpha.71](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.70...restapi-0.0.1-alpha.71) (2024-02-26) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([07cdbeb](https://github.com/push-protocol/push-sdk/commit/07cdbeb386f3bc319878597672549d04d369db02)) + + + +## [0.0.1-alpha.70](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.69...restapi-0.0.1-alpha.70) (2024-02-21) + + + +## [0.0.1-alpha.69](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.68...restapi-0.0.1-alpha.69) (2024-02-21) + + +### Bug Fixes + +* fixed conflicts ([c6ba60b](https://github.com/push-protocol/push-sdk/commit/c6ba60bef51bf6a938353946e5b8265ac0679a28)) +* fixed readmode ([7214d68](https://github.com/push-protocol/push-sdk/commit/7214d686d1b826c07758d54b02b5be003aa4efd2)) +* testing readMode ([50b6fd3](https://github.com/push-protocol/push-sdk/commit/50b6fd3a097e645dca2631b78afcaab59cf4bd4e)) + + + +## [0.0.1-alpha.67](https://github.com/push-protocol/push-sdk/compare/restapi-1.6.8...restapi-0.0.1-alpha.67) (2024-02-13) + + +### Bug Fixes + +* Merge alpha ([be6cac0](https://github.com/push-protocol/push-sdk/commit/be6cac001715da4f51e3a1d061c0d2c274d82def)) + + + +## [0.0.1-alpha.66](https://github.com/push-protocol/push-sdk/compare/restapi-1.6.7...restapi-0.0.1-alpha.66) (2024-02-08) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([feb77a9](https://github.com/push-protocol/push-sdk/commit/feb77a91bb74e14005ab3613b3813a3c1342e633)) + + + +## [0.0.1-alpha.65](https://github.com/push-protocol/push-sdk/compare/restapi-1.6.6...restapi-0.0.1-alpha.65) (2024-02-08) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([0d61b10](https://github.com/push-protocol/push-sdk/commit/0d61b10238edca9b68baaba63928c61095ccfaf5)) +* Merge branch 'alpha' into alpha-deployment ([e80f2f8](https://github.com/push-protocol/push-sdk/commit/e80f2f85f0d8b9e747a0566c64edcee8a9bb4375)) +* Merge branch 'alpha' into alpha-deployment ([e3d08bb](https://github.com/push-protocol/push-sdk/commit/e3d08bbefa688107bfc7cdbc8d0e2e360ffedbab)) + + + +## [0.0.1-alpha.64](https://github.com/push-protocol/push-sdk/compare/restapi-1.6.3...restapi-0.0.1-alpha.64) (2024-01-18) + + +### Bug Fixes + +* fix errors ([6a91107](https://github.com/push-protocol/push-sdk/commit/6a9110796fe2519f62156adec2b91771abc3017c)) +* Merge branch 'alpha' into alpha-deployment ([f93c645](https://github.com/push-protocol/push-sdk/commit/f93c64545256ae6ed496f121a1904e41ec1e29e3)) + + + +## [0.0.1-alpha.63](https://github.com/push-protocol/push-sdk/compare/restapi-1.5.7...restapi-0.0.1-alpha.63) (2024-01-15) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([25f6f4f](https://github.com/push-protocol/push-sdk/commit/25f6f4fe226cc5b79c90a7ea31564f4075fc7790)) + + + +## [0.0.1-alpha.62](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.61...restapi-0.0.1-alpha.62) (2024-01-03) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([f07f84b](https://github.com/push-protocol/push-sdk/commit/f07f84bb0b2b4491cfbe9de8905f6e664da834df)) + + + +## [0.0.1-alpha.61](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.60...restapi-0.0.1-alpha.61) (2024-01-03) + + + +## [0.0.1-alpha.83](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.82...restapi-0.0.1-alpha.83) (2024-04-16) + + +### Bug Fixes + +* update chat ([74a6785](https://github.com/push-protocol/push-sdk/commit/74a67854e1185b5d5128552f8c7c0fee7a0bb24b)) + + + +## [0.0.1-alpha.82](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.81...restapi-0.0.1-alpha.82) (2024-04-16) + + +### Bug Fixes + +* bug fixes ([fab3700](https://github.com/push-protocol/push-sdk/commit/fab370073224481b901351c00da43dc3bc99fa64)) +* fix fn definitions ([#1232](https://github.com/push-protocol/push-sdk/issues/1232)) ([7bbc443](https://github.com/push-protocol/push-sdk/commit/7bbc4434ec19c9969d0f1932c9cb08f74300a9b8)) +* fix tmp error ([bd70cda](https://github.com/push-protocol/push-sdk/commit/bd70cda0eb68a2329da743727c3b2a4b7f14589e)) +* Merge branch 'alpha' into alpha-deployment ([7e32f93](https://github.com/push-protocol/push-sdk/commit/7e32f93153b2ef338a1c18d4c1c6df7b9a1687cf)) +* renamed sender to account ([ce4af1a](https://github.com/push-protocol/push-sdk/commit/ce4af1a200e98de3c47055cc495f55a4a8e561cf)) + + + +## [0.0.1-alpha.81](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.80...restapi-0.0.1-alpha.81) (2024-04-15) + + +### Bug Fixes + +* chat info changes ([6718648](https://github.com/push-protocol/push-sdk/commit/67186484a4dff605ef94df83b19bb2d4a220e546)) +* Merge branch 'alpha' into alpha-deployment ([97f8390](https://github.com/push-protocol/push-sdk/commit/97f839020e9b0313548753c364f01795e6bc7b3d)) + + + +## [0.0.1-alpha.80](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.79...restapi-0.0.1-alpha.80) (2024-04-13) + + +### Bug Fixes + +* Merge branch 'alpha' into alpha-deployment ([ad37848](https://github.com/push-protocol/push-sdk/commit/ad3784890d97b09b7d6212cfcd6c868cb360cba2)) + + + +## [0.0.1-alpha.79](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.78...restapi-0.0.1-alpha.79) (2024-04-12) + + +### Bug Fixes + +* added instanceids for push user and stream ([#1224](https://github.com/push-protocol/push-sdk/issues/1224)) ([34263c9](https://github.com/push-protocol/push-sdk/commit/34263c94ccfe674f915ce318a60cc21a77a0a5de)) +* Merge branch 'alpha' into alpha-deployment ([cb8d996](https://github.com/push-protocol/push-sdk/commit/cb8d996f868109a8e659a5654abfb265d2bb37ad)) + + + +## [0.0.1-alpha.78](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.77...restapi-0.0.1-alpha.78) (2024-04-10) ### Bug Fixes * add decryptedPGPPrivateKey in options ([#1216](https://github.com/push-protocol/push-sdk/issues/1216)) ([ed9d3a7](https://github.com/push-protocol/push-sdk/commit/ed9d3a7e6ef3880fd897927e67d7db8e0a7b06c7)) * fix testcases to take push node environment from .env rather tha… ([#1196](https://github.com/push-protocol/push-sdk/issues/1196)) ([7a4bd8d](https://github.com/push-protocol/push-sdk/commit/7a4bd8d7637fb17a714062a7b9ea055c889b0bf0)) -* Merge branch 'main' into deployment ([f14c15c](https://github.com/push-protocol/push-sdk/commit/f14c15c144bfd8afcb5b738c0dfd29dac8fa49a2)) +* Merge branch 'alpha' into alpha-deployment ([3d52b21](https://github.com/push-protocol/push-sdk/commit/3d52b21accc046b2133eaf15d13e0c945d793b1f)) * tes cases and minor bugs ([#1212](https://github.com/push-protocol/push-sdk/issues/1212)) ([d30e095](https://github.com/push-protocol/push-sdk/commit/d30e095860ef20b8f8ef6a341d49f698227df998)) -## [1.7.3](https://github.com/push-protocol/push-sdk/compare/restapi-1.7.2...restapi-1.7.3) (2024-04-02) +## [0.0.1-alpha.77](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.76...restapi-0.0.1-alpha.77) (2024-04-02) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) + + +### Bug Fixes + +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) +* fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) +* fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) + + +### Bug Fixes + +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) +* fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) +* fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) + + +### Bug Fixes + +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) +* fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) +* fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) + + +### Bug Fixes + +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) +* fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) +* fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) + + +### Bug Fixes + +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) +* fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) +* fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) +* **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) + + + +## [0.0.1-alpha.75](https://github.com/push-protocol/push-sdk/compare/restapi-0.0.1-alpha.74...restapi-0.0.1-alpha.75) (2024-04-02) ### Bug Fixes +* chat.info changes ([#1163](https://github.com/push-protocol/push-sdk/issues/1163)) ([b16b842](https://github.com/push-protocol/push-sdk/commit/b16b84289bc840d1a6a210726fe8350f0291ccf0)) +* error handling for chat ([#1110](https://github.com/push-protocol/push-sdk/issues/1110)) ([59f4c77](https://github.com/push-protocol/push-sdk/commit/59f4c7704c91653ac114baf75ea30cd0b839980f)) * fix build ([#1176](https://github.com/push-protocol/push-sdk/issues/1176)) ([fefdf91](https://github.com/push-protocol/push-sdk/commit/fefdf912df6110cebbbaf8fbd47989ba727679b4)) * fix channel notifications response ([#1166](https://github.com/push-protocol/push-sdk/issues/1166)) ([c01798a](https://github.com/push-protocol/push-sdk/commit/c01798af23f4f8cc2215fa9a529145d0c3bf349d)) +* fixed berachain issue ([6cd5dd8](https://github.com/push-protocol/push-sdk/commit/6cd5dd8ff77d7a916ce795b1238b381d20808786)) +* merge alpha ([4d1c5ef](https://github.com/push-protocol/push-sdk/commit/4d1c5ef2e0e6ce3382af6b811ffd6211ba15520d)) +* Merge branch 'main' into alpha ([53a795d](https://github.com/push-protocol/push-sdk/commit/53a795db5ec82d44597410dca670dfadd9199277)) * **migrate goerli to sepolia:** migrate goerli to sepolia ([#1149](https://github.com/push-protocol/push-sdk/issues/1149)) ([490b104](https://github.com/push-protocol/push-sdk/commit/490b104902b9a509c6a8c68d5c5f33446e91e113)) +* pulled ([f22e9fb](https://github.com/push-protocol/push-sdk/commit/f22e9fb0bd7a1529d1f9ba79626ef37a32e76f31)) +* pulled main ([b7391b6](https://github.com/push-protocol/push-sdk/commit/b7391b6318b40117d61b86ea8163b116f757c94a)) diff --git a/packages/restapi/package.json b/packages/restapi/package.json index 8ff932d96..e79ab46b3 100644 --- a/packages/restapi/package.json +++ b/packages/restapi/package.json @@ -1,6 +1,6 @@ { "name": "@pushprotocol/restapi", - "version": "1.7.6", + "version": "0.0.1-alpha.84", "type": "commonjs", "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/packages/restapi/src/lib/pushapi/PushAPI.ts b/packages/restapi/src/lib/pushapi/PushAPI.ts index ff865690f..bb857ae57 100644 --- a/packages/restapi/src/lib/pushapi/PushAPI.ts +++ b/packages/restapi/src/lib/pushapi/PushAPI.ts @@ -24,13 +24,13 @@ import { cache } from '../helpers/cache'; import { v4 as uuidv4 } from 'uuid'; export class PushAPI { - private signer?: SignerType; + public signer?: SignerType; private readMode: boolean; private alpha: { feature: string[] }; public account: string; - private decryptedPgpPvtKey?: string; - private pgpPublicKey?: string; - private env: ENV; + public decryptedPgpPvtKey?: string; + public pgpPublicKey?: string; + public env: ENV; private progressHook?: (progress: ProgressHookType) => void; private cache: LRUCache; @@ -118,7 +118,7 @@ export class PushAPI { } // Overloaded initialize method signatures static async initialize( - signer?: SignerType, + signer?: SignerType | null, options?: PushAPIInitializeProps ): Promise; static async initialize(options?: PushAPIInitializeProps): Promise; diff --git a/packages/restapi/src/lib/pushapi/chat.ts b/packages/restapi/src/lib/pushapi/chat.ts index 57aad1b04..515646032 100644 --- a/packages/restapi/src/lib/pushapi/chat.ts +++ b/packages/restapi/src/lib/pushapi/chat.ts @@ -297,8 +297,7 @@ export class Chat { }; try { const chatInfo = await PUSH_CHAT.getChatInfo(request); - const finalRecipient = chatInfo.meta.group ? chatInfo.chatId : recipient; - + const finalRecipient = chatInfo.meta?.group ? chatInfo.chatId : recipient; const response: ChatInfoResponse = { meta: chatInfo.meta, list: chatInfo.list, @@ -727,4 +726,4 @@ export class Chat { }); }, }; -} +} \ No newline at end of file