@openpeepshq/client 0.1.36 → 0.1.38
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/dist/endpoints/accounts.d.ts +69 -0
- package/dist/endpoints/accounts.js +1 -0
- package/dist/endpoints/admin.d.ts +115 -17271
- package/dist/endpoints/admin.js +10 -0
- package/dist/endpoints/analytics.d.ts +15 -0
- package/dist/endpoints/analytics.js +4 -0
- package/dist/endpoints/auth.d.ts +2 -1
- package/dist/endpoints/conversations.d.ts +35481 -5352
- package/dist/endpoints/conversations.js +2 -0
- package/dist/endpoints/groups.d.ts +15 -3
- package/dist/endpoints/jams.d.ts +7500 -716
- package/dist/endpoints/jams.js +12 -0
- package/dist/endpoints/plugins.d.ts +1 -1
- package/dist/endpoints/posts.d.ts +72 -76801
- package/dist/endpoints/posts.js +2 -0
- package/dist/endpoints/profiles.d.ts +27284 -3728
- package/dist/endpoints/profiles.js +12 -1
- package/dist/endpoints/search.d.ts +24551 -4361
- package/dist/endpoints/server.d.ts +26 -1
- package/dist/endpoints/types.d.ts +3 -0
- package/dist/index.js +3 -1
- package/package.json +3 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { allpeepNoPayloadEndpoint, allpeepPayloadEndpoint } from './helpers.js';
|
|
2
|
-
export const profiles = (rawClient) => ({
|
|
2
|
+
export const profiles = (rawClient, eventSource) => ({
|
|
3
3
|
current: {
|
|
4
4
|
read: allpeepNoPayloadEndpoint(rawClient, '/profiles/current'),
|
|
5
5
|
update: allpeepPayloadEndpoint(rawClient, '/profiles/current', 'patch'),
|
|
6
|
+
pinPost: allpeepPayloadEndpoint(rawClient, '/profiles/current/pinned-post', 'patch'),
|
|
6
7
|
notifications: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/notifications'),
|
|
7
8
|
notificationStats: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/notifications/stats'),
|
|
8
9
|
notificationTypes: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/notifications/types'),
|
|
@@ -14,13 +15,23 @@ export const profiles = (rawClient) => ({
|
|
|
14
15
|
accessTokens: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/access-tokens'),
|
|
15
16
|
createAccessToken: allpeepPayloadEndpoint(rawClient, '/profiles/current/access-tokens', 'post'),
|
|
16
17
|
revokeAccessToken: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/access-tokens/:accessTokenId', 'delete'),
|
|
18
|
+
sessionEvents: {
|
|
19
|
+
listen: eventSource('/profiles/current/session/events'),
|
|
20
|
+
},
|
|
21
|
+
blocked: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/blocked'),
|
|
22
|
+
followedHashtags: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/hashtags'),
|
|
23
|
+
followHashtag: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/hashtags/:tag/follow', 'post'),
|
|
24
|
+
unfollowHashtag: allpeepNoPayloadEndpoint(rawClient, '/profiles/current/hashtags/:tag/follow', 'delete'),
|
|
17
25
|
},
|
|
18
26
|
list: allpeepNoPayloadEndpoint(rawClient, '/profiles'),
|
|
19
27
|
findById: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id'),
|
|
20
28
|
findByHandle: allpeepNoPayloadEndpoint(rawClient, '/profiles/by-handle/:handle'),
|
|
21
29
|
follow: allpeepPayloadEndpoint(rawClient, '/profiles/:id/follow', 'post'),
|
|
22
30
|
unfollow: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id/follow', 'delete'),
|
|
31
|
+
block: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id/block', 'post'),
|
|
32
|
+
unblock: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id/block', 'delete'),
|
|
23
33
|
followers: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id/followers'),
|
|
24
34
|
following: allpeepNoPayloadEndpoint(rawClient, '/profiles/:id/following'),
|
|
25
35
|
commonGroups: allpeepNoPayloadEndpoint(rawClient, '/profiles/:profileId/common-groups'),
|
|
36
|
+
activitySummary: allpeepNoPayloadEndpoint(rawClient, '/profiles/:profileId/activity-summary'),
|
|
26
37
|
});
|