@openpeepshq/client 0.4.0 → 0.5.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/endpoints/jams.d.ts
CHANGED
|
@@ -10988,6 +10988,7 @@ export declare const jams: (rawClient: FetchClient, eventSource: ReturnType<type
|
|
|
10988
10988
|
state: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
10989
10989
|
active: boolean;
|
|
10990
10990
|
participants: string[];
|
|
10991
|
+
observers?: number | undefined;
|
|
10991
10992
|
}, {
|
|
10992
10993
|
success: boolean;
|
|
10993
10994
|
message?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FetchClient, noPayloadEventSource } from '@openpeepshq/fetch-client';
|
|
2
|
-
import type { AccessTokenWithMeta,
|
|
2
|
+
import type { AccessTokenWithMeta, NotificationFeedExcludeTypesQuery, ProfileWithMeta, ProfileSettings, PublicAccessToken, SessionPlatform, Hashtag } from '@openpeepshq/common';
|
|
3
3
|
export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<typeof noPayloadEventSource>) => {
|
|
4
4
|
current: {
|
|
5
5
|
read: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<ProfileWithMeta, {
|
|
@@ -11123,7 +11123,13 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
11123
11123
|
success: boolean;
|
|
11124
11124
|
message?: string | undefined;
|
|
11125
11125
|
key?: string | undefined;
|
|
11126
|
-
}, undefined,
|
|
11126
|
+
}, undefined, {
|
|
11127
|
+
start?: string | undefined;
|
|
11128
|
+
limit?: number | undefined;
|
|
11129
|
+
format?: "threaded" | "linear" | undefined;
|
|
11130
|
+
groupId?: string | undefined;
|
|
11131
|
+
ungrouped?: "true" | undefined;
|
|
11132
|
+
} & NotificationFeedExcludeTypesQuery>;
|
|
11127
11133
|
notificationStats: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
|
|
11128
11134
|
unread: number;
|
|
11129
11135
|
unseen: number;
|
|
@@ -22134,7 +22140,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
22134
22140
|
success: boolean;
|
|
22135
22141
|
message?: string | undefined;
|
|
22136
22142
|
key?: string | undefined;
|
|
22137
|
-
}, undefined,
|
|
22143
|
+
}, undefined, NotificationFeedExcludeTypesQuery>;
|
|
22138
22144
|
readSettings: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<ProfileSettings, {
|
|
22139
22145
|
success: boolean;
|
|
22140
22146
|
message?: string | undefined;
|
|
@@ -22155,6 +22161,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
22155
22161
|
push: boolean;
|
|
22156
22162
|
email: boolean;
|
|
22157
22163
|
}> | undefined;
|
|
22164
|
+
hiddenNotificationTypes?: string[] | undefined;
|
|
22158
22165
|
groupNotificationLevels?: Record<string, "all" | "mostRelevant" | "off"> | undefined;
|
|
22159
22166
|
jamSettings?: {
|
|
22160
22167
|
backgroundObfuscation?: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@openpeepshq/
|
|
9
|
-
"@openpeepshq/
|
|
8
|
+
"@openpeepshq/common": "^0.10.0",
|
|
9
|
+
"@openpeepshq/fetch-client": "^0.2.1"
|
|
10
10
|
},
|
|
11
11
|
"main": "./dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -7,7 +7,8 @@ import type {
|
|
|
7
7
|
AccessTokenWithMeta,
|
|
8
8
|
FollowData,
|
|
9
9
|
GroupWithMeta,
|
|
10
|
-
|
|
10
|
+
NotificationFeedQueryParams,
|
|
11
|
+
NotificationFeedExcludeTypesQuery,
|
|
11
12
|
PublicPost,
|
|
12
13
|
NotificationStats,
|
|
13
14
|
ProfileData,
|
|
@@ -49,7 +50,7 @@ export const profiles = (
|
|
|
49
50
|
notifications: allpeepNoPayloadEndpoint<
|
|
50
51
|
PublicNotification[],
|
|
51
52
|
undefined,
|
|
52
|
-
|
|
53
|
+
NotificationFeedQueryParams
|
|
53
54
|
>(rawClient, '/profiles/current/notifications'),
|
|
54
55
|
notificationStats: allpeepNoPayloadEndpoint<NotificationStats>(
|
|
55
56
|
rawClient,
|
|
@@ -67,11 +68,11 @@ export const profiles = (
|
|
|
67
68
|
rawClient,
|
|
68
69
|
'/profiles/current/bookmarkedIds',
|
|
69
70
|
),
|
|
70
|
-
markAllNotificationsAsSeen: allpeepNoPayloadEndpoint<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
),
|
|
71
|
+
markAllNotificationsAsSeen: allpeepNoPayloadEndpoint<
|
|
72
|
+
SuccessResponse,
|
|
73
|
+
undefined,
|
|
74
|
+
NotificationFeedExcludeTypesQuery
|
|
75
|
+
>(rawClient, '/profiles/current/notifications/mark-all-seen', 'put'),
|
|
75
76
|
readSettings: allpeepNoPayloadEndpoint<ProfileSettings>(
|
|
76
77
|
rawClient,
|
|
77
78
|
'/profiles/current/settings',
|