@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
package/dist/endpoints/admin.js
CHANGED
|
@@ -85,9 +85,11 @@ export const admin = (rawClient) => ({
|
|
|
85
85
|
delete: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id', 'delete'),
|
|
86
86
|
listRoles: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id/roles'),
|
|
87
87
|
updateRoles: allpeepPayloadEndpoint(rawClient, '/admin/profiles/:id/roles', 'put'),
|
|
88
|
+
activitySummary: allpeepNoPayloadEndpoint(rawClient, '/admin/profiles/:id/activity-summary'),
|
|
88
89
|
},
|
|
89
90
|
roles: {
|
|
90
91
|
list: allpeepNoPayloadEndpoint(rawClient, '/admin/roles'),
|
|
92
|
+
create: allpeepPayloadEndpoint(rawClient, '/admin/roles', 'post'),
|
|
91
93
|
update: allpeepPayloadEndpoint(rawClient, '/admin/roles/:roleId', 'put'),
|
|
92
94
|
},
|
|
93
95
|
stats: {
|
|
@@ -98,6 +100,7 @@ export const admin = (rawClient) => ({
|
|
|
98
100
|
growth: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/growth'),
|
|
99
101
|
engagement: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/engagement'),
|
|
100
102
|
retention: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/retention'),
|
|
103
|
+
clicks: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/clicks'),
|
|
101
104
|
reportSettings: {
|
|
102
105
|
read: allpeepNoPayloadEndpoint(rawClient, '/admin/analytics/report-settings'),
|
|
103
106
|
update: allpeepPayloadEndpoint(rawClient, '/admin/analytics/report-settings', 'put'),
|
|
@@ -120,4 +123,11 @@ export const admin = (rawClient) => ({
|
|
|
120
123
|
create: allpeepPayloadEndpoint(rawClient, '/admin/service-access-tokens', 'post'),
|
|
121
124
|
revoke: allpeepNoPayloadEndpoint(rawClient, '/admin/service-access-tokens/:accessTokenId', 'delete'),
|
|
122
125
|
},
|
|
126
|
+
plugins: {
|
|
127
|
+
list: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins'),
|
|
128
|
+
install: allpeepPayloadEndpoint(rawClient, '/admin/plugins/install', 'post'),
|
|
129
|
+
uninstall: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins/:namespace/:name', 'delete'),
|
|
130
|
+
update: allpeepPayloadEndpoint(rawClient, '/admin/plugins/:namespace/:name', 'patch'),
|
|
131
|
+
reload: allpeepNoPayloadEndpoint(rawClient, '/admin/plugins/reload', 'post'),
|
|
132
|
+
},
|
|
123
133
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FetchClient } from '@openpeepshq/fetch-client';
|
|
2
|
+
export declare const analytics: (rawClient: FetchClient) => {
|
|
3
|
+
recordClicks: import("@openpeepshq/fetch-client").TypedPayloadEndpoint<{
|
|
4
|
+
success: true;
|
|
5
|
+
}, {
|
|
6
|
+
events: {
|
|
7
|
+
kind: "link" | "page";
|
|
8
|
+
target: string;
|
|
9
|
+
}[];
|
|
10
|
+
}, {
|
|
11
|
+
success: boolean;
|
|
12
|
+
message?: string | undefined;
|
|
13
|
+
key?: string | undefined;
|
|
14
|
+
}, undefined, undefined>;
|
|
15
|
+
};
|
package/dist/endpoints/auth.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const auth: (rawClient: FetchClient) => {
|
|
|
24
24
|
displayName?: string | undefined;
|
|
25
25
|
confirmPassword?: string | undefined;
|
|
26
26
|
inviteCode?: string | undefined;
|
|
27
|
+
bot?: boolean | undefined;
|
|
27
28
|
}, {
|
|
28
29
|
success: boolean;
|
|
29
30
|
message?: string | undefined;
|
|
@@ -56,7 +57,7 @@ export declare const auth: (rawClient: FetchClient) => {
|
|
|
56
57
|
displayName: string;
|
|
57
58
|
email: string;
|
|
58
59
|
resource: {
|
|
59
|
-
type: "self" | "jams" | "profiles" | "
|
|
60
|
+
type: "self" | "jams" | "profiles" | "notifications" | "posts" | "groups" | "reports" | "webhooks" | "db" | "analytics" | "render" | "*";
|
|
60
61
|
id?: string | undefined;
|
|
61
62
|
};
|
|
62
63
|
}, {
|