Commit 23eebf0
authored
fix: add optional raw queryChannels api response (#1530)
## CLA
- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required).
- [ ] Code changes are tested
## Description of the changes, What, Why and How?
This PR allows `client.queryChannels` to optionally return the raw
response and not run hydration at all (and subsequently not provide an
array of `Channel` instances).
It is meant to be used generally server-side so that integrators can
have access to other fields not available in a `Channel` instance. It
should resolve [this Zendesk
ticket](https://getstream.zendesk.com/agent/tickets/64585).
We can probably keep it the same api if we use discriminated unions, but
I feel like it'd complicate things further for no good reason. Keeping
the apis separate made sense to me.
## Changelog
-1 parent 2703018 commit 23eebf0
3 files changed
+70
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1735 | 1735 | | |
1736 | 1736 | | |
1737 | 1737 | | |
1738 | | - | |
| 1738 | + | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
1744 | | - | |
1745 | | - | |
1746 | 1744 | | |
1747 | | - | |
| 1745 | + | |
1748 | 1746 | | |
1749 | | - | |
| 1747 | + | |
1750 | 1748 | | |
1751 | 1749 | | |
1752 | 1750 | | |
1753 | | - | |
1754 | 1751 | | |
1755 | 1752 | | |
1756 | 1753 | | |
| |||
1777 | 1774 | | |
1778 | 1775 | | |
1779 | 1776 | | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1780 | 1801 | | |
1781 | 1802 | | |
1782 | 1803 | | |
1783 | | - | |
| 1804 | + | |
1784 | 1805 | | |
1785 | 1806 | | |
1786 | 1807 | | |
1787 | 1808 | | |
1788 | | - | |
| 1809 | + | |
1789 | 1810 | | |
1790 | 1811 | | |
1791 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
971 | 972 | | |
972 | 973 | | |
973 | 974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
665 | 667 | | |
666 | 668 | | |
667 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
668 | 708 | | |
669 | 709 | | |
670 | 710 | | |
| |||
0 commit comments