@stream-io/feeds-client 0.2.14 → 0.2.15
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 +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react-bindings.js +2 -2
- package/dist/cjs/react-bindings.js.map +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/react-bindings.mjs +2 -2
- package/dist/es/react-bindings.mjs.map +1 -1
- package/dist/{index-B3HHiF9S.mjs → index-BSzSBlMh.mjs} +9 -6
- package/dist/index-BSzSBlMh.mjs.map +1 -0
- package/dist/{index-B08vVRSZ.js → index-DRX66SIx.js} +9 -6
- package/dist/index-DRX66SIx.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +6 -0
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/bindings/react/hooks/util/useReactionActions.ts +1 -1
- package/src/feeds-client/feeds-client.ts +15 -7
- package/src/gen/feeds/FeedsApi.ts +2 -2
- package/dist/index-B08vVRSZ.js.map +0 -1
- package/dist/index-B3HHiF9S.mjs.map +0 -1
|
@@ -1770,7 +1770,7 @@ class FeedsApi {
|
|
|
1770
1770
|
decoders.PollVoteResponse?.(response.body);
|
|
1771
1771
|
return { ...response.body, metadata: response.metadata };
|
|
1772
1772
|
}
|
|
1773
|
-
async
|
|
1773
|
+
async addActivityReaction(request) {
|
|
1774
1774
|
const pathParams = {
|
|
1775
1775
|
activity_id: request?.activity_id
|
|
1776
1776
|
};
|
|
@@ -1980,9 +1980,9 @@ class FeedsApi {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
async addComment(request) {
|
|
1982
1982
|
const body = {
|
|
1983
|
-
comment: request?.comment,
|
|
1984
1983
|
object_id: request?.object_id,
|
|
1985
1984
|
object_type: request?.object_type,
|
|
1985
|
+
comment: request?.comment,
|
|
1986
1986
|
create_notification_activity: request?.create_notification_activity,
|
|
1987
1987
|
parent_id: request?.parent_id,
|
|
1988
1988
|
skip_push: request?.skip_push,
|
|
@@ -3722,7 +3722,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
3722
3722
|
};
|
|
3723
3723
|
return result;
|
|
3724
3724
|
};
|
|
3725
|
-
const version = "0.2.
|
|
3725
|
+
const version = "0.2.15";
|
|
3726
3726
|
class ApiClient {
|
|
3727
3727
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
3728
3728
|
this.apiKey = apiKey;
|
|
@@ -6474,13 +6474,16 @@ class FeedsClient extends FeedsApi {
|
|
|
6474
6474
|
}
|
|
6475
6475
|
return response;
|
|
6476
6476
|
};
|
|
6477
|
-
this.
|
|
6478
|
-
const response = await super.
|
|
6477
|
+
this.addActivityReaction = async (request) => {
|
|
6478
|
+
const response = await super.addActivityReaction(request);
|
|
6479
6479
|
for (const feed of Object.values(this.activeFeeds)) {
|
|
6480
6480
|
handleActivityReactionAdded.bind(feed)(response, false);
|
|
6481
6481
|
}
|
|
6482
6482
|
return response;
|
|
6483
6483
|
};
|
|
6484
|
+
this.addReaction = (request) => {
|
|
6485
|
+
return this.addActivityReaction(request);
|
|
6486
|
+
};
|
|
6484
6487
|
this.deleteActivityReaction = async (request) => {
|
|
6485
6488
|
const response = await super.deleteActivityReaction(request);
|
|
6486
6489
|
for (const feed of Object.values(this.activeFeeds)) {
|
|
@@ -6859,4 +6862,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
|
|
|
6859
6862
|
exports.shouldUpdateState = shouldUpdateState;
|
|
6860
6863
|
exports.uniqueArrayMerge = uniqueArrayMerge;
|
|
6861
6864
|
exports.updateEntityInArray = updateEntityInArray;
|
|
6862
|
-
//# sourceMappingURL=index-
|
|
6865
|
+
//# sourceMappingURL=index-DRX66SIx.js.map
|