@stream-io/feeds-client 0.3.43 → 0.3.45
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 +9 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-B1mzWjrM.js → feeds-client-CN3FjVMk.js} +13 -2
- package/dist/feeds-client-CN3FjVMk.js.map +1 -0
- package/dist/{feeds-client-O3lXU8Bl.mjs → feeds-client-DK7PXh7g.mjs} +13 -2
- package/dist/feeds-client-DK7PXh7g.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/feed/event-handlers/activity-updater.d.ts +3 -1
- package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +30 -2
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +10 -0
- package/src/gen/model-decoders/decoders.ts +2 -0
- package/src/gen/models/index.ts +58 -2
- package/dist/feeds-client-B1mzWjrM.js.map +0 -1
- package/dist/feeds-client-O3lXU8Bl.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useStateStore } from "@stream-io/state-store/react-bindings";
|
|
2
2
|
export * from "@stream-io/state-store/react-bindings";
|
|
3
3
|
import { useState, useEffect, createContext, useContext, useRef, useCallback, useMemo } from "react";
|
|
4
|
-
import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-
|
|
4
|
+
import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-DK7PXh7g.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const useCreateFeedsClient = ({
|
|
7
7
|
apiKey,
|
|
@@ -160,6 +160,7 @@ decoders.ActivityResponse = (input) => {
|
|
|
160
160
|
deleted_at: { type: "DatetimeType", isSingle: true },
|
|
161
161
|
edited_at: { type: "DatetimeType", isSingle: true },
|
|
162
162
|
expires_at: { type: "DatetimeType", isSingle: true },
|
|
163
|
+
friend_reactions: { type: "FeedsReactionResponse", isSingle: false },
|
|
163
164
|
current_feed: { type: "FeedResponse", isSingle: true },
|
|
164
165
|
parent: { type: "ActivityResponse", isSingle: true },
|
|
165
166
|
poll: { type: "PollResponseData", isSingle: true }
|
|
@@ -1711,6 +1712,7 @@ class FeedsApi {
|
|
|
1711
1712
|
const body = {
|
|
1712
1713
|
type: request?.type,
|
|
1713
1714
|
feeds: request?.feeds,
|
|
1715
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1714
1716
|
create_notification_activity: request?.create_notification_activity,
|
|
1715
1717
|
expires_at: request?.expires_at,
|
|
1716
1718
|
id: request?.id,
|
|
@@ -1913,6 +1915,7 @@ class FeedsApi {
|
|
|
1913
1915
|
};
|
|
1914
1916
|
const body = {
|
|
1915
1917
|
type: request?.type,
|
|
1918
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1916
1919
|
create_notification_activity: request?.create_notification_activity,
|
|
1917
1920
|
enforce_unique: request?.enforce_unique,
|
|
1918
1921
|
skip_push: request?.skip_push,
|
|
@@ -1993,6 +1996,7 @@ class FeedsApi {
|
|
|
1993
1996
|
id: request?.id
|
|
1994
1997
|
};
|
|
1995
1998
|
const body = {
|
|
1999
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1996
2000
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
1997
2001
|
run_activity_processors: request?.run_activity_processors,
|
|
1998
2002
|
unset: request?.unset,
|
|
@@ -2014,6 +2018,7 @@ class FeedsApi {
|
|
|
2014
2018
|
id: request?.id
|
|
2015
2019
|
};
|
|
2016
2020
|
const body = {
|
|
2021
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2017
2022
|
expires_at: request?.expires_at,
|
|
2018
2023
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
2019
2024
|
poll_id: request?.poll_id,
|
|
@@ -2193,6 +2198,7 @@ class FeedsApi {
|
|
|
2193
2198
|
async addComment(request) {
|
|
2194
2199
|
const body = {
|
|
2195
2200
|
comment: request?.comment,
|
|
2201
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2196
2202
|
create_notification_activity: request?.create_notification_activity,
|
|
2197
2203
|
id: request?.id,
|
|
2198
2204
|
object_id: request?.object_id,
|
|
@@ -2275,6 +2281,7 @@ class FeedsApi {
|
|
|
2275
2281
|
};
|
|
2276
2282
|
const body = {
|
|
2277
2283
|
comment: request?.comment,
|
|
2284
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2278
2285
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
2279
2286
|
skip_enrich_url: request?.skip_enrich_url,
|
|
2280
2287
|
skip_push: request?.skip_push,
|
|
@@ -2299,6 +2306,7 @@ class FeedsApi {
|
|
|
2299
2306
|
};
|
|
2300
2307
|
const body = {
|
|
2301
2308
|
type: request?.type,
|
|
2309
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2302
2310
|
create_notification_activity: request?.create_notification_activity,
|
|
2303
2311
|
enforce_unique: request?.enforce_unique,
|
|
2304
2312
|
skip_push: request?.skip_push,
|
|
@@ -2408,6 +2416,7 @@ class FeedsApi {
|
|
|
2408
2416
|
filter: request?.filter,
|
|
2409
2417
|
followers_pagination: request?.followers_pagination,
|
|
2410
2418
|
following_pagination: request?.following_pagination,
|
|
2419
|
+
friend_reactions_options: request?.friend_reactions_options,
|
|
2411
2420
|
interest_weights: request?.interest_weights,
|
|
2412
2421
|
member_pagination: request?.member_pagination
|
|
2413
2422
|
};
|
|
@@ -2674,6 +2683,7 @@ class FeedsApi {
|
|
|
2674
2683
|
const body = {
|
|
2675
2684
|
source: request?.source,
|
|
2676
2685
|
target: request?.target,
|
|
2686
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2677
2687
|
create_notification_activity: request?.create_notification_activity,
|
|
2678
2688
|
follower_role: request?.follower_role,
|
|
2679
2689
|
push_preference: request?.push_preference,
|
|
@@ -2695,6 +2705,7 @@ class FeedsApi {
|
|
|
2695
2705
|
const body = {
|
|
2696
2706
|
source: request?.source,
|
|
2697
2707
|
target: request?.target,
|
|
2708
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2698
2709
|
create_notification_activity: request?.create_notification_activity,
|
|
2699
2710
|
push_preference: request?.push_preference,
|
|
2700
2711
|
skip_push: request?.skip_push,
|
|
@@ -4017,7 +4028,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
4017
4028
|
};
|
|
4018
4029
|
return result;
|
|
4019
4030
|
};
|
|
4020
|
-
const version = "0.3.
|
|
4031
|
+
const version = "0.3.45";
|
|
4021
4032
|
const axios = axiosImport.default ?? axiosImport;
|
|
4022
4033
|
class ApiClient {
|
|
4023
4034
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
@@ -8076,4 +8087,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
|
|
|
8076
8087
|
exports.shouldUpdateState = shouldUpdateState;
|
|
8077
8088
|
exports.uniqueArrayMerge = uniqueArrayMerge;
|
|
8078
8089
|
exports.updateEntityInArray = updateEntityInArray;
|
|
8079
|
-
//# sourceMappingURL=feeds-client-
|
|
8090
|
+
//# sourceMappingURL=feeds-client-CN3FjVMk.js.map
|