@openpeepshq/client 0.1.37 → 0.2.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/dist/common/authenticated.js +2 -2
- package/dist/endpoints/accounts.d.ts +69 -0
- package/dist/endpoints/accounts.js +1 -0
- package/dist/endpoints/admin.d.ts +115 -17328
- package/dist/endpoints/admin.js +11 -2
- 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 +12 -2
- package/dist/endpoints/profiles.d.ts +27308 -3781
- package/dist/endpoints/profiles.js +8 -0
- package/dist/endpoints/search.d.ts +24551 -4361
- package/dist/endpoints/server.d.ts +19 -1
- package/dist/index.js +8 -11
- package/package.json +30 -9
- package/src/common/authenticated.ts +28 -0
- package/src/common/base.ts +11 -0
- package/src/endpoints/accounts.ts +52 -0
- package/src/endpoints/admin.ts +616 -0
- package/src/endpoints/analytics.ts +13 -0
- package/src/endpoints/auth.ts +43 -0
- package/src/endpoints/conversations.ts +28 -0
- package/src/endpoints/groups.ts +69 -0
- package/src/endpoints/helpers.ts +91 -0
- package/src/endpoints/i18n.ts +14 -0
- package/src/endpoints/jams.ts +126 -0
- package/src/endpoints/location.ts +10 -0
- package/src/endpoints/media.ts +56 -0
- package/src/endpoints/payments.ts +34 -0
- package/src/endpoints/plugins.ts +25 -0
- package/src/endpoints/posts.ts +377 -0
- package/src/endpoints/previewLink.ts +10 -0
- package/src/endpoints/profiles.ts +167 -0
- package/src/endpoints/reports.ts +32 -0
- package/src/endpoints/search.ts +34 -0
- package/src/endpoints/server.ts +38 -0
- package/src/endpoints/sso.ts +35 -0
- package/src/endpoints/streaming.ts +29 -0
- package/src/endpoints/types.ts +66 -0
- package/src/index.ts +88 -0
- package/src/types/index.ts +20 -0
- package/src/webhooks/index.ts +50 -0
package/dist/endpoints/posts.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { allpeepNoPayloadEndpoint, allpeepPayloadEndpoint } from './helpers.js';
|
|
2
|
+
// Explicit return types keep `tsc` from serializing the expanded PublicPost
|
|
3
|
+
// endpoint shape into `.d.ts` (TS7056 otherwise).
|
|
2
4
|
const finders = (rawClient) => ({
|
|
3
5
|
list: allpeepNoPayloadEndpoint(rawClient, '/posts'),
|
|
4
6
|
listByType: allpeepNoPayloadEndpoint(rawClient, '/posts/by-type/:type'),
|
|
@@ -45,7 +47,11 @@ const postFeeds = (rawClient) => ({
|
|
|
45
47
|
local: allpeepNoPayloadEndpoint(rawClient, '/posts/feeds/local'),
|
|
46
48
|
});
|
|
47
49
|
const feeds = (rawClient) => ({
|
|
48
|
-
feeds:
|
|
50
|
+
feeds: {
|
|
51
|
+
...postFeeds(rawClient),
|
|
52
|
+
...eventFeeds(rawClient),
|
|
53
|
+
...jamFeeds(rawClient),
|
|
54
|
+
},
|
|
49
55
|
});
|
|
50
56
|
const mutators = (rawClient) => ({
|
|
51
57
|
create: allpeepPayloadEndpoint(rawClient, '/posts'),
|
|
@@ -62,4 +68,8 @@ const mutators = (rawClient) => ({
|
|
|
62
68
|
rsvp: allpeepPayloadEndpoint(rawClient, '/posts/:id/rsvp', 'post'),
|
|
63
69
|
rsvpManage: allpeepPayloadEndpoint(rawClient, '/posts/:id/rsvp/:profileId', 'post'),
|
|
64
70
|
});
|
|
65
|
-
export const posts = (rawClient) => (
|
|
71
|
+
export const posts = (rawClient) => ({
|
|
72
|
+
...finders(rawClient),
|
|
73
|
+
...mutators(rawClient),
|
|
74
|
+
...feeds(rawClient),
|
|
75
|
+
});
|