@stream-io/feeds-client 0.3.50 → 0.3.51
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/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-CKxvuiKz.js → feeds-client-B4zeBggL.js} +37 -12
- package/dist/feeds-client-B4zeBggL.js.map +1 -0
- package/dist/{feeds-client-BHpmg4_E.mjs → feeds-client-DeAqnd1a.mjs} +37 -12
- package/dist/feeds-client-DeAqnd1a.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/feed/feed.d.ts +3 -1
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +1 -0
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/types/gen/feeds/FeedApi.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +3 -0
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +15 -0
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feed/feed.ts +5 -1
- package/src/feeds-client/feeds-client.ts +1 -1
- package/src/gen/feeds/FeedApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +33 -4
- package/src/gen/models/index.ts +31 -1
- package/dist/feeds-client-BHpmg4_E.mjs.map +0 -1
- package/dist/feeds-client-CKxvuiKz.js.map +0 -1
|
@@ -1632,6 +1632,7 @@ class FeedsApi {
|
|
|
1632
1632
|
feeds: request?.feeds,
|
|
1633
1633
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1634
1634
|
create_notification_activity: request?.create_notification_activity,
|
|
1635
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
1635
1636
|
expires_at: request?.expires_at,
|
|
1636
1637
|
id: request?.id,
|
|
1637
1638
|
parent_id: request?.parent_id,
|
|
@@ -1664,7 +1665,8 @@ class FeedsApi {
|
|
|
1664
1665
|
}
|
|
1665
1666
|
async upsertActivities(request) {
|
|
1666
1667
|
const body = {
|
|
1667
|
-
activities: request?.activities
|
|
1668
|
+
activities: request?.activities,
|
|
1669
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
1668
1670
|
};
|
|
1669
1671
|
const response = await this.apiClient.sendRequest(
|
|
1670
1672
|
"POST",
|
|
@@ -1696,6 +1698,7 @@ class FeedsApi {
|
|
|
1696
1698
|
}
|
|
1697
1699
|
async queryActivities(request) {
|
|
1698
1700
|
const body = {
|
|
1701
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
1699
1702
|
limit: request?.limit,
|
|
1700
1703
|
next: request?.next,
|
|
1701
1704
|
prev: request?.prev,
|
|
@@ -1915,6 +1918,7 @@ class FeedsApi {
|
|
|
1915
1918
|
};
|
|
1916
1919
|
const body = {
|
|
1917
1920
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1921
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
1918
1922
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
1919
1923
|
run_activity_processors: request?.run_activity_processors,
|
|
1920
1924
|
unset: request?.unset,
|
|
@@ -1937,6 +1941,7 @@ class FeedsApi {
|
|
|
1937
1941
|
};
|
|
1938
1942
|
const body = {
|
|
1939
1943
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1944
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
1940
1945
|
expires_at: request?.expires_at,
|
|
1941
1946
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
1942
1947
|
poll_id: request?.poll_id,
|
|
@@ -1968,6 +1973,9 @@ class FeedsApi {
|
|
|
1968
1973
|
return { ...response.body, metadata: response.metadata };
|
|
1969
1974
|
}
|
|
1970
1975
|
async restoreActivity(request) {
|
|
1976
|
+
const queryParams = {
|
|
1977
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
1978
|
+
};
|
|
1971
1979
|
const pathParams = {
|
|
1972
1980
|
id: request?.id
|
|
1973
1981
|
};
|
|
@@ -1976,7 +1984,7 @@ class FeedsApi {
|
|
|
1976
1984
|
"POST",
|
|
1977
1985
|
"/api/v2/feeds/activities/{id}/restore",
|
|
1978
1986
|
pathParams,
|
|
1979
|
-
|
|
1987
|
+
queryParams,
|
|
1980
1988
|
body,
|
|
1981
1989
|
"application/json"
|
|
1982
1990
|
);
|
|
@@ -2036,6 +2044,7 @@ class FeedsApi {
|
|
|
2036
2044
|
}
|
|
2037
2045
|
async queryBookmarks(request) {
|
|
2038
2046
|
const body = {
|
|
2047
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2039
2048
|
limit: request?.limit,
|
|
2040
2049
|
next: request?.next,
|
|
2041
2050
|
prev: request?.prev,
|
|
@@ -2357,6 +2366,7 @@ class FeedsApi {
|
|
|
2357
2366
|
};
|
|
2358
2367
|
const body = {
|
|
2359
2368
|
description: request?.description,
|
|
2369
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2360
2370
|
name: request?.name,
|
|
2361
2371
|
filter_tags: request?.filter_tags,
|
|
2362
2372
|
custom: request?.custom
|
|
@@ -2396,6 +2406,9 @@ class FeedsApi {
|
|
|
2396
2406
|
return { ...response.body, metadata: response.metadata };
|
|
2397
2407
|
}
|
|
2398
2408
|
async unpinActivity(request) {
|
|
2409
|
+
const queryParams = {
|
|
2410
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2411
|
+
};
|
|
2399
2412
|
const pathParams = {
|
|
2400
2413
|
feed_group_id: request?.feed_group_id,
|
|
2401
2414
|
feed_id: request?.feed_id,
|
|
@@ -2405,7 +2418,7 @@ class FeedsApi {
|
|
|
2405
2418
|
"DELETE",
|
|
2406
2419
|
"/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin",
|
|
2407
2420
|
pathParams,
|
|
2408
|
-
|
|
2421
|
+
queryParams
|
|
2409
2422
|
);
|
|
2410
2423
|
decoders.UnpinActivityResponse?.(response.body);
|
|
2411
2424
|
return { ...response.body, metadata: response.metadata };
|
|
@@ -2416,7 +2429,9 @@ class FeedsApi {
|
|
|
2416
2429
|
feed_id: request?.feed_id,
|
|
2417
2430
|
activity_id: request?.activity_id
|
|
2418
2431
|
};
|
|
2419
|
-
const body = {
|
|
2432
|
+
const body = {
|
|
2433
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2434
|
+
};
|
|
2420
2435
|
const response = await this.apiClient.sendRequest(
|
|
2421
2436
|
"POST",
|
|
2422
2437
|
"/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin",
|
|
@@ -2514,6 +2529,7 @@ class FeedsApi {
|
|
|
2514
2529
|
feed_id: request?.feed_id
|
|
2515
2530
|
};
|
|
2516
2531
|
const body = {
|
|
2532
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2517
2533
|
limit: request?.limit,
|
|
2518
2534
|
next: request?.next,
|
|
2519
2535
|
prev: request?.prev,
|
|
@@ -2566,7 +2582,8 @@ class FeedsApi {
|
|
|
2566
2582
|
}
|
|
2567
2583
|
async createFeedsBatch(request) {
|
|
2568
2584
|
const body = {
|
|
2569
|
-
feeds: request?.feeds
|
|
2585
|
+
feeds: request?.feeds,
|
|
2586
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2570
2587
|
};
|
|
2571
2588
|
const response = await this.apiClient.sendRequest(
|
|
2572
2589
|
"POST",
|
|
@@ -2603,6 +2620,7 @@ class FeedsApi {
|
|
|
2603
2620
|
connection_id: request?.connection_id
|
|
2604
2621
|
};
|
|
2605
2622
|
const body = {
|
|
2623
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2606
2624
|
limit: request?.limit,
|
|
2607
2625
|
next: request?.next,
|
|
2608
2626
|
prev: request?.prev,
|
|
@@ -2627,6 +2645,7 @@ class FeedsApi {
|
|
|
2627
2645
|
target: request?.target,
|
|
2628
2646
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2629
2647
|
create_notification_activity: request?.create_notification_activity,
|
|
2648
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2630
2649
|
follower_role: request?.follower_role,
|
|
2631
2650
|
push_preference: request?.push_preference,
|
|
2632
2651
|
skip_push: request?.skip_push,
|
|
@@ -2649,6 +2668,7 @@ class FeedsApi {
|
|
|
2649
2668
|
target: request?.target,
|
|
2650
2669
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
2651
2670
|
create_notification_activity: request?.create_notification_activity,
|
|
2671
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
2652
2672
|
push_preference: request?.push_preference,
|
|
2653
2673
|
skip_push: request?.skip_push,
|
|
2654
2674
|
custom: request?.custom
|
|
@@ -2683,7 +2703,8 @@ class FeedsApi {
|
|
|
2683
2703
|
}
|
|
2684
2704
|
async followBatch(request) {
|
|
2685
2705
|
const body = {
|
|
2686
|
-
follows: request?.follows
|
|
2706
|
+
follows: request?.follows,
|
|
2707
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2687
2708
|
};
|
|
2688
2709
|
const response = await this.apiClient.sendRequest(
|
|
2689
2710
|
"POST",
|
|
@@ -2698,7 +2719,8 @@ class FeedsApi {
|
|
|
2698
2719
|
}
|
|
2699
2720
|
async getOrCreateFollows(request) {
|
|
2700
2721
|
const body = {
|
|
2701
|
-
follows: request?.follows
|
|
2722
|
+
follows: request?.follows,
|
|
2723
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2702
2724
|
};
|
|
2703
2725
|
const response = await this.apiClient.sendRequest(
|
|
2704
2726
|
"POST",
|
|
@@ -2748,7 +2770,8 @@ class FeedsApi {
|
|
|
2748
2770
|
}
|
|
2749
2771
|
async unfollow(request) {
|
|
2750
2772
|
const queryParams = {
|
|
2751
|
-
delete_notification_activity: request?.delete_notification_activity
|
|
2773
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
2774
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2752
2775
|
};
|
|
2753
2776
|
const pathParams = {
|
|
2754
2777
|
source: request?.source,
|
|
@@ -2766,7 +2789,8 @@ class FeedsApi {
|
|
|
2766
2789
|
async getOrCreateUnfollows(request) {
|
|
2767
2790
|
const body = {
|
|
2768
2791
|
follows: request?.follows,
|
|
2769
|
-
delete_notification_activity: request?.delete_notification_activity
|
|
2792
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
2793
|
+
enrich_own_fields: request?.enrich_own_fields
|
|
2770
2794
|
};
|
|
2771
2795
|
const response = await this.apiClient.sendRequest(
|
|
2772
2796
|
"POST",
|
|
@@ -4086,7 +4110,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
4086
4110
|
};
|
|
4087
4111
|
return result;
|
|
4088
4112
|
};
|
|
4089
|
-
const version = "0.3.
|
|
4113
|
+
const version = "0.3.51";
|
|
4090
4114
|
const axios = axiosImport.default ?? axiosImport;
|
|
4091
4115
|
class ApiClient {
|
|
4092
4116
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
@@ -7131,11 +7155,12 @@ const _Feed = class _Feed extends FeedApi {
|
|
|
7131
7155
|
});
|
|
7132
7156
|
return response;
|
|
7133
7157
|
}
|
|
7134
|
-
async unfollow(feedOrFid, options) {
|
|
7158
|
+
async unfollow(feedOrFid, options, enrichOwnFields) {
|
|
7135
7159
|
const fid = typeof feedOrFid === "string" ? feedOrFid : feedOrFid.feed;
|
|
7136
7160
|
const response = await this.client.unfollow({
|
|
7137
7161
|
source: this.feed,
|
|
7138
7162
|
target: fid,
|
|
7163
|
+
enrich_own_fields: enrichOwnFields,
|
|
7139
7164
|
...options
|
|
7140
7165
|
});
|
|
7141
7166
|
return response;
|
|
@@ -8264,4 +8289,4 @@ export {
|
|
|
8264
8289
|
shouldUpdateState as s,
|
|
8265
8290
|
uniqueArrayMerge as u
|
|
8266
8291
|
};
|
|
8267
|
-
//# sourceMappingURL=feeds-client-
|
|
8292
|
+
//# sourceMappingURL=feeds-client-DeAqnd1a.mjs.map
|