@stream-io/feeds-client 1.5.0 → 1.7.0
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/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-C0uK3mWX.js → feeds-client-BeLCHq7r.js} +157 -46
- package/dist/feeds-client-BeLCHq7r.js.map +1 -0
- package/dist/{feeds-client-C6ZWjV_u.mjs → feeds-client-DYZ59hqW.mjs} +157 -46
- package/dist/feeds-client-DYZ59hqW.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +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/FeedsApi.d.ts +5 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +3273 -31
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feeds-client/feeds-client.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +36 -0
- package/src/gen/model-decoders/decoders.ts +97 -31
- package/src/gen/models/index.ts +3430 -78
- package/dist/feeds-client-C0uK3mWX.js.map +0 -1
- package/dist/feeds-client-C6ZWjV_u.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as FeedsClient, u as isCommentResponse, v as checkHasAnotherPage } from "../feeds-client-
|
|
1
|
+
import { t as FeedsClient, u as isCommentResponse, v as checkHasAnotherPage } from "../feeds-client-DYZ59hqW.mjs";
|
|
2
2
|
import { useStateStore } from "@stream-io/state-store/react-bindings";
|
|
3
3
|
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -640,7 +640,7 @@ decoders.BookmarkUpdatedEvent = (input) => {
|
|
|
640
640
|
decoders.CallParticipantResponse = (input) => {
|
|
641
641
|
return decode({
|
|
642
642
|
joined_at: {
|
|
643
|
-
type: "
|
|
643
|
+
type: "Timestamp",
|
|
644
644
|
isSingle: true
|
|
645
645
|
},
|
|
646
646
|
user: {
|
|
@@ -649,34 +649,6 @@ decoders.CallParticipantResponse = (input) => {
|
|
|
649
649
|
}
|
|
650
650
|
}, input);
|
|
651
651
|
};
|
|
652
|
-
decoders.CallResponse = (input) => {
|
|
653
|
-
return decode({
|
|
654
|
-
created_at: {
|
|
655
|
-
type: "DatetimeType",
|
|
656
|
-
isSingle: true
|
|
657
|
-
},
|
|
658
|
-
updated_at: {
|
|
659
|
-
type: "DatetimeType",
|
|
660
|
-
isSingle: true
|
|
661
|
-
},
|
|
662
|
-
created_by: {
|
|
663
|
-
type: "UserResponse",
|
|
664
|
-
isSingle: true
|
|
665
|
-
},
|
|
666
|
-
ended_at: {
|
|
667
|
-
type: "DatetimeType",
|
|
668
|
-
isSingle: true
|
|
669
|
-
},
|
|
670
|
-
starts_at: {
|
|
671
|
-
type: "DatetimeType",
|
|
672
|
-
isSingle: true
|
|
673
|
-
},
|
|
674
|
-
session: {
|
|
675
|
-
type: "CallSessionResponse",
|
|
676
|
-
isSingle: true
|
|
677
|
-
}
|
|
678
|
-
}, input);
|
|
679
|
-
};
|
|
680
652
|
decoders.CallSessionResponse = (input) => {
|
|
681
653
|
return decode({
|
|
682
654
|
participants: {
|
|
@@ -684,35 +656,35 @@ decoders.CallSessionResponse = (input) => {
|
|
|
684
656
|
isSingle: false
|
|
685
657
|
},
|
|
686
658
|
accepted_by: {
|
|
687
|
-
type: "
|
|
659
|
+
type: "Timestamp",
|
|
688
660
|
isSingle: false
|
|
689
661
|
},
|
|
690
662
|
missed_by: {
|
|
691
|
-
type: "
|
|
663
|
+
type: "Timestamp",
|
|
692
664
|
isSingle: false
|
|
693
665
|
},
|
|
694
666
|
rejected_by: {
|
|
695
|
-
type: "
|
|
667
|
+
type: "Timestamp",
|
|
696
668
|
isSingle: false
|
|
697
669
|
},
|
|
698
670
|
ended_at: {
|
|
699
|
-
type: "
|
|
671
|
+
type: "Timestamp",
|
|
700
672
|
isSingle: true
|
|
701
673
|
},
|
|
702
674
|
live_ended_at: {
|
|
703
|
-
type: "
|
|
675
|
+
type: "Timestamp",
|
|
704
676
|
isSingle: true
|
|
705
677
|
},
|
|
706
678
|
live_started_at: {
|
|
707
|
-
type: "
|
|
679
|
+
type: "Timestamp",
|
|
708
680
|
isSingle: true
|
|
709
681
|
},
|
|
710
682
|
started_at: {
|
|
711
|
-
type: "
|
|
683
|
+
type: "Timestamp",
|
|
712
684
|
isSingle: true
|
|
713
685
|
},
|
|
714
686
|
timer_ends_at: {
|
|
715
|
-
type: "
|
|
687
|
+
type: "Timestamp",
|
|
716
688
|
isSingle: true
|
|
717
689
|
}
|
|
718
690
|
}, input);
|
|
@@ -1167,10 +1139,22 @@ decoders.DraftResponse = (input) => {
|
|
|
1167
1139
|
};
|
|
1168
1140
|
decoders.EgressRTMPResponse = (input) => {
|
|
1169
1141
|
return decode({ started_at: {
|
|
1170
|
-
type: "
|
|
1142
|
+
type: "Timestamp",
|
|
1171
1143
|
isSingle: true
|
|
1172
1144
|
} }, input);
|
|
1173
1145
|
};
|
|
1146
|
+
decoders.EnrichedCollection = (input) => {
|
|
1147
|
+
return decode({
|
|
1148
|
+
created_at: {
|
|
1149
|
+
type: "DatetimeType",
|
|
1150
|
+
isSingle: true
|
|
1151
|
+
},
|
|
1152
|
+
updated_at: {
|
|
1153
|
+
type: "DatetimeType",
|
|
1154
|
+
isSingle: true
|
|
1155
|
+
}
|
|
1156
|
+
}, input);
|
|
1157
|
+
};
|
|
1174
1158
|
decoders.EnrichedCollectionResponse = (input) => {
|
|
1175
1159
|
return decode({
|
|
1176
1160
|
created_at: {
|
|
@@ -1447,6 +1431,18 @@ decoders.FeedUpdatedEvent = (input) => {
|
|
|
1447
1431
|
}
|
|
1448
1432
|
}, input);
|
|
1449
1433
|
};
|
|
1434
|
+
decoders.FeedsReactionGroup = (input) => {
|
|
1435
|
+
return decode({
|
|
1436
|
+
first_reaction_at: {
|
|
1437
|
+
type: "DatetimeType",
|
|
1438
|
+
isSingle: true
|
|
1439
|
+
},
|
|
1440
|
+
last_reaction_at: {
|
|
1441
|
+
type: "DatetimeType",
|
|
1442
|
+
isSingle: true
|
|
1443
|
+
}
|
|
1444
|
+
}, input);
|
|
1445
|
+
};
|
|
1450
1446
|
decoders.FeedsReactionGroupResponse = (input) => {
|
|
1451
1447
|
return decode({
|
|
1452
1448
|
first_reaction_at: {
|
|
@@ -1475,6 +1471,78 @@ decoders.FeedsReactionResponse = (input) => {
|
|
|
1475
1471
|
}
|
|
1476
1472
|
}, input);
|
|
1477
1473
|
};
|
|
1474
|
+
decoders.FeedsV3ActivityResponse = (input) => {
|
|
1475
|
+
return decode({
|
|
1476
|
+
created_at: {
|
|
1477
|
+
type: "DatetimeType",
|
|
1478
|
+
isSingle: true
|
|
1479
|
+
},
|
|
1480
|
+
updated_at: {
|
|
1481
|
+
type: "DatetimeType",
|
|
1482
|
+
isSingle: true
|
|
1483
|
+
},
|
|
1484
|
+
comments: {
|
|
1485
|
+
type: "FeedsV3CommentResponse",
|
|
1486
|
+
isSingle: false
|
|
1487
|
+
},
|
|
1488
|
+
mentioned_users: {
|
|
1489
|
+
type: "UserResponse",
|
|
1490
|
+
isSingle: false
|
|
1491
|
+
},
|
|
1492
|
+
collections: {
|
|
1493
|
+
type: "EnrichedCollection",
|
|
1494
|
+
isSingle: false
|
|
1495
|
+
},
|
|
1496
|
+
reaction_groups: {
|
|
1497
|
+
type: "FeedsReactionGroup",
|
|
1498
|
+
isSingle: false
|
|
1499
|
+
},
|
|
1500
|
+
user: {
|
|
1501
|
+
type: "UserResponse",
|
|
1502
|
+
isSingle: true
|
|
1503
|
+
},
|
|
1504
|
+
deleted_at: {
|
|
1505
|
+
type: "DatetimeType",
|
|
1506
|
+
isSingle: true
|
|
1507
|
+
},
|
|
1508
|
+
edited_at: {
|
|
1509
|
+
type: "DatetimeType",
|
|
1510
|
+
isSingle: true
|
|
1511
|
+
},
|
|
1512
|
+
expires_at: {
|
|
1513
|
+
type: "DatetimeType",
|
|
1514
|
+
isSingle: true
|
|
1515
|
+
}
|
|
1516
|
+
}, input);
|
|
1517
|
+
};
|
|
1518
|
+
decoders.FeedsV3CommentResponse = (input) => {
|
|
1519
|
+
return decode({
|
|
1520
|
+
created_at: {
|
|
1521
|
+
type: "DatetimeType",
|
|
1522
|
+
isSingle: true
|
|
1523
|
+
},
|
|
1524
|
+
updated_at: {
|
|
1525
|
+
type: "DatetimeType",
|
|
1526
|
+
isSingle: true
|
|
1527
|
+
},
|
|
1528
|
+
mentioned_users: {
|
|
1529
|
+
type: "UserResponse",
|
|
1530
|
+
isSingle: false
|
|
1531
|
+
},
|
|
1532
|
+
user: {
|
|
1533
|
+
type: "UserResponse",
|
|
1534
|
+
isSingle: true
|
|
1535
|
+
},
|
|
1536
|
+
deleted_at: {
|
|
1537
|
+
type: "DatetimeType",
|
|
1538
|
+
isSingle: true
|
|
1539
|
+
},
|
|
1540
|
+
edited_at: {
|
|
1541
|
+
type: "DatetimeType",
|
|
1542
|
+
isSingle: true
|
|
1543
|
+
}
|
|
1544
|
+
}, input);
|
|
1545
|
+
};
|
|
1478
1546
|
decoders.FollowBatchResponse = (input) => {
|
|
1479
1547
|
return decode({
|
|
1480
1548
|
created: {
|
|
@@ -2294,6 +2362,22 @@ decoders.ReactionGroupResponse = (input) => {
|
|
|
2294
2362
|
last_reaction_at: {
|
|
2295
2363
|
type: "DatetimeType",
|
|
2296
2364
|
isSingle: true
|
|
2365
|
+
},
|
|
2366
|
+
latest_reactions_by: {
|
|
2367
|
+
type: "ReactionGroupUserResponse",
|
|
2368
|
+
isSingle: false
|
|
2369
|
+
}
|
|
2370
|
+
}, input);
|
|
2371
|
+
};
|
|
2372
|
+
decoders.ReactionGroupUserResponse = (input) => {
|
|
2373
|
+
return decode({
|
|
2374
|
+
created_at: {
|
|
2375
|
+
type: "DatetimeType",
|
|
2376
|
+
isSingle: true
|
|
2377
|
+
},
|
|
2378
|
+
user: {
|
|
2379
|
+
type: "UserResponse",
|
|
2380
|
+
isSingle: true
|
|
2297
2381
|
}
|
|
2298
2382
|
}, input);
|
|
2299
2383
|
};
|
|
@@ -2421,10 +2505,6 @@ decoders.ReviewQueueItemResponse = (input) => {
|
|
|
2421
2505
|
type: "UserResponse",
|
|
2422
2506
|
isSingle: true
|
|
2423
2507
|
},
|
|
2424
|
-
call: {
|
|
2425
|
-
type: "CallResponse",
|
|
2426
|
-
isSingle: true
|
|
2427
|
-
},
|
|
2428
2508
|
entity_creator: {
|
|
2429
2509
|
type: "EntityCreatorResponse",
|
|
2430
2510
|
isSingle: true
|
|
@@ -2434,11 +2514,11 @@ decoders.ReviewQueueItemResponse = (input) => {
|
|
|
2434
2514
|
isSingle: true
|
|
2435
2515
|
},
|
|
2436
2516
|
feeds_v3_activity: {
|
|
2437
|
-
type: "
|
|
2517
|
+
type: "FeedsV3ActivityResponse",
|
|
2438
2518
|
isSingle: true
|
|
2439
2519
|
},
|
|
2440
2520
|
feeds_v3_comment: {
|
|
2441
|
-
type: "
|
|
2521
|
+
type: "FeedsV3CommentResponse",
|
|
2442
2522
|
isSingle: true
|
|
2443
2523
|
},
|
|
2444
2524
|
message: {
|
|
@@ -2593,6 +2673,12 @@ decoders.ThreadedCommentResponse = (input) => {
|
|
|
2593
2673
|
}
|
|
2594
2674
|
}, input);
|
|
2595
2675
|
};
|
|
2676
|
+
decoders.Timestamp = (input) => {
|
|
2677
|
+
return decode({ time: {
|
|
2678
|
+
type: "DatetimeType",
|
|
2679
|
+
isSingle: true
|
|
2680
|
+
} }, input);
|
|
2681
|
+
};
|
|
2596
2682
|
decoders.UnfollowBatchResponse = (input) => {
|
|
2597
2683
|
return decode({ follows: {
|
|
2598
2684
|
type: "FollowResponse",
|
|
@@ -2647,6 +2733,12 @@ decoders.UpdateCollectionsResponse = (input) => {
|
|
|
2647
2733
|
isSingle: false
|
|
2648
2734
|
} }, input);
|
|
2649
2735
|
};
|
|
2736
|
+
decoders.UpdateCommentPartialResponse = (input) => {
|
|
2737
|
+
return decode({ comment: {
|
|
2738
|
+
type: "CommentResponse",
|
|
2739
|
+
isSingle: true
|
|
2740
|
+
} }, input);
|
|
2741
|
+
};
|
|
2650
2742
|
decoders.UpdateCommentResponse = (input) => {
|
|
2651
2743
|
return decode({ comment: {
|
|
2652
2744
|
type: "CommentResponse",
|
|
@@ -3441,6 +3533,23 @@ var FeedsApi = class {
|
|
|
3441
3533
|
metadata: response.metadata
|
|
3442
3534
|
};
|
|
3443
3535
|
}
|
|
3536
|
+
async updateCommentPartial(request) {
|
|
3537
|
+
const pathParams = { id: request?.id };
|
|
3538
|
+
const body = {
|
|
3539
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
3540
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
3541
|
+
skip_enrich_url: request?.skip_enrich_url,
|
|
3542
|
+
skip_push: request?.skip_push,
|
|
3543
|
+
unset: request?.unset,
|
|
3544
|
+
set: request?.set
|
|
3545
|
+
};
|
|
3546
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/comments/{id}/partial", pathParams, void 0, body, "application/json");
|
|
3547
|
+
decoders.UpdateCommentPartialResponse?.(response.body);
|
|
3548
|
+
return {
|
|
3549
|
+
...response.body,
|
|
3550
|
+
metadata: response.metadata
|
|
3551
|
+
};
|
|
3552
|
+
}
|
|
3444
3553
|
async addCommentReaction(request) {
|
|
3445
3554
|
const pathParams = { id: request?.id };
|
|
3446
3555
|
const body = {
|
|
@@ -3875,6 +3984,7 @@ var FeedsApi = class {
|
|
|
3875
3984
|
async unfollow(request) {
|
|
3876
3985
|
const queryParams = {
|
|
3877
3986
|
delete_notification_activity: request?.delete_notification_activity,
|
|
3987
|
+
keep_history: request?.keep_history,
|
|
3878
3988
|
enrich_own_fields: request?.enrich_own_fields
|
|
3879
3989
|
};
|
|
3880
3990
|
const pathParams = {
|
|
@@ -4226,6 +4336,7 @@ var FeedsApi = class {
|
|
|
4226
4336
|
const pathParams = { id: request?.id };
|
|
4227
4337
|
const body = {
|
|
4228
4338
|
member_ids: request?.member_ids,
|
|
4339
|
+
as_admin: request?.as_admin,
|
|
4229
4340
|
team_id: request?.team_id
|
|
4230
4341
|
};
|
|
4231
4342
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/usergroups/{id}/members", pathParams, void 0, body, "application/json");
|
|
@@ -5053,7 +5164,7 @@ var getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
5053
5164
|
};
|
|
5054
5165
|
//#endregion
|
|
5055
5166
|
//#region package.json
|
|
5056
|
-
var version = "1.
|
|
5167
|
+
var version = "1.7.0";
|
|
5057
5168
|
//#endregion
|
|
5058
5169
|
//#region src/common/ApiClient.ts
|
|
5059
5170
|
var axios$1 = axios.default.default ?? axios.default;
|
|
@@ -8968,4 +9079,4 @@ Object.defineProperty(exports, "updateEntityInArray", {
|
|
|
8968
9079
|
}
|
|
8969
9080
|
});
|
|
8970
9081
|
|
|
8971
|
-
//# sourceMappingURL=feeds-client-
|
|
9082
|
+
//# sourceMappingURL=feeds-client-BeLCHq7r.js.map
|