@stream-io/feeds-client 0.2.14 → 0.2.16
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 +14 -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-B08vVRSZ.js → index-CaFrpjpl.js} +27 -6
- package/dist/index-CaFrpjpl.js.map +1 -0
- package/dist/{index-B3HHiF9S.mjs → index-J3MkoYPN.mjs} +27 -6
- package/dist/index-J3MkoYPN.mjs.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 +5 -2
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +7 -0
- package/dist/types/gen/models/index.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 +30 -2
- package/src/gen/models/index.ts +10 -0
- package/dist/index-B08vVRSZ.js.map +0 -1
- package/dist/index-B3HHiF9S.mjs.map +0 -1
|
@@ -1752,7 +1752,7 @@ class FeedsApi {
|
|
|
1752
1752
|
decoders.PollVoteResponse?.(response.body);
|
|
1753
1753
|
return { ...response.body, metadata: response.metadata };
|
|
1754
1754
|
}
|
|
1755
|
-
async
|
|
1755
|
+
async addActivityReaction(request) {
|
|
1756
1756
|
const pathParams = {
|
|
1757
1757
|
activity_id: request?.activity_id
|
|
1758
1758
|
};
|
|
@@ -1962,9 +1962,9 @@ class FeedsApi {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
async addComment(request) {
|
|
1964
1964
|
const body = {
|
|
1965
|
-
comment: request?.comment,
|
|
1966
1965
|
object_id: request?.object_id,
|
|
1967
1966
|
object_type: request?.object_type,
|
|
1967
|
+
comment: request?.comment,
|
|
1968
1968
|
create_notification_activity: request?.create_notification_activity,
|
|
1969
1969
|
parent_id: request?.parent_id,
|
|
1970
1970
|
skip_push: request?.skip_push,
|
|
@@ -2384,6 +2384,24 @@ class FeedsApi {
|
|
|
2384
2384
|
decoders.CreateFeedsBatchResponse?.(response.body);
|
|
2385
2385
|
return { ...response.body, metadata: response.metadata };
|
|
2386
2386
|
}
|
|
2387
|
+
async ownCapabilitiesBatch(request) {
|
|
2388
|
+
const queryParams = {
|
|
2389
|
+
connection_id: request?.connection_id
|
|
2390
|
+
};
|
|
2391
|
+
const body = {
|
|
2392
|
+
feeds: request?.feeds
|
|
2393
|
+
};
|
|
2394
|
+
const response = await this.apiClient.sendRequest(
|
|
2395
|
+
"POST",
|
|
2396
|
+
"/api/v2/feeds/feeds/own_capabilities/batch",
|
|
2397
|
+
void 0,
|
|
2398
|
+
queryParams,
|
|
2399
|
+
body,
|
|
2400
|
+
"application/json"
|
|
2401
|
+
);
|
|
2402
|
+
decoders.OwnCapabilitiesBatchResponse?.(response.body);
|
|
2403
|
+
return { ...response.body, metadata: response.metadata };
|
|
2404
|
+
}
|
|
2387
2405
|
async _queryFeeds(request) {
|
|
2388
2406
|
const queryParams = {
|
|
2389
2407
|
connection_id: request?.connection_id
|
|
@@ -3704,7 +3722,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
3704
3722
|
};
|
|
3705
3723
|
return result;
|
|
3706
3724
|
};
|
|
3707
|
-
const version = "0.2.
|
|
3725
|
+
const version = "0.2.16";
|
|
3708
3726
|
class ApiClient {
|
|
3709
3727
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
3710
3728
|
this.apiKey = apiKey;
|
|
@@ -6456,13 +6474,16 @@ class FeedsClient extends FeedsApi {
|
|
|
6456
6474
|
}
|
|
6457
6475
|
return response;
|
|
6458
6476
|
};
|
|
6459
|
-
this.
|
|
6460
|
-
const response = await super.
|
|
6477
|
+
this.addActivityReaction = async (request) => {
|
|
6478
|
+
const response = await super.addActivityReaction(request);
|
|
6461
6479
|
for (const feed of Object.values(this.activeFeeds)) {
|
|
6462
6480
|
handleActivityReactionAdded.bind(feed)(response, false);
|
|
6463
6481
|
}
|
|
6464
6482
|
return response;
|
|
6465
6483
|
};
|
|
6484
|
+
this.addReaction = (request) => {
|
|
6485
|
+
return this.addActivityReaction(request);
|
|
6486
|
+
};
|
|
6466
6487
|
this.deleteActivityReaction = async (request) => {
|
|
6467
6488
|
const response = await super.deleteActivityReaction(request);
|
|
6468
6489
|
for (const feed of Object.values(this.activeFeeds)) {
|
|
@@ -6843,4 +6864,4 @@ export {
|
|
|
6843
6864
|
shouldUpdateState as s,
|
|
6844
6865
|
uniqueArrayMerge as u
|
|
6845
6866
|
};
|
|
6846
|
-
//# sourceMappingURL=index-
|
|
6867
|
+
//# sourceMappingURL=index-J3MkoYPN.mjs.map
|