@openpeepshq/client 0.5.0 → 0.6.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
|
@@ -1083,7 +1083,7 @@ export declare const jams: (rawClient: FetchClient, eventSource: ReturnType<type
|
|
|
1083
1083
|
repostCount: number;
|
|
1084
1084
|
replyCount: number;
|
|
1085
1085
|
reactions: {
|
|
1086
|
-
reaction: "👍";
|
|
1086
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
1087
1087
|
profile: {
|
|
1088
1088
|
id: string;
|
|
1089
1089
|
type: "guest" | "local" | "federated";
|
|
@@ -7148,7 +7148,7 @@ export declare const jams: (rawClient: FetchClient, eventSource: ReturnType<type
|
|
|
7148
7148
|
repostCount: number;
|
|
7149
7149
|
replyCount: number;
|
|
7150
7150
|
reactions: {
|
|
7151
|
-
reaction: "👍";
|
|
7151
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
7152
7152
|
profile: {
|
|
7153
7153
|
id: string;
|
|
7154
7154
|
type: "guest" | "local" | "federated";
|
|
@@ -1222,7 +1222,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
1222
1222
|
repostCount: number;
|
|
1223
1223
|
replyCount: number;
|
|
1224
1224
|
reactions: {
|
|
1225
|
-
reaction: "👍";
|
|
1225
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
1226
1226
|
profile: {
|
|
1227
1227
|
id: string;
|
|
1228
1228
|
type: "guest" | "local" | "federated";
|
|
@@ -7287,7 +7287,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
7287
7287
|
repostCount: number;
|
|
7288
7288
|
replyCount: number;
|
|
7289
7289
|
reactions: {
|
|
7290
|
-
reaction: "👍";
|
|
7290
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
7291
7291
|
profile: {
|
|
7292
7292
|
id: string;
|
|
7293
7293
|
type: "guest" | "local" | "federated";
|
|
@@ -12229,7 +12229,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
12229
12229
|
repostCount: number;
|
|
12230
12230
|
replyCount: number;
|
|
12231
12231
|
reactions: {
|
|
12232
|
-
reaction: "👍";
|
|
12232
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
12233
12233
|
profile: {
|
|
12234
12234
|
id: string;
|
|
12235
12235
|
type: "guest" | "local" | "federated";
|
|
@@ -18294,7 +18294,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
18294
18294
|
repostCount: number;
|
|
18295
18295
|
replyCount: number;
|
|
18296
18296
|
reactions: {
|
|
18297
|
-
reaction: "👍";
|
|
18297
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
18298
18298
|
profile: {
|
|
18299
18299
|
id: string;
|
|
18300
18300
|
type: "guest" | "local" | "federated";
|
|
@@ -23811,7 +23811,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
23811
23811
|
repostCount: number;
|
|
23812
23812
|
replyCount: number;
|
|
23813
23813
|
reactions: {
|
|
23814
|
-
reaction: "👍";
|
|
23814
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
23815
23815
|
profile: {
|
|
23816
23816
|
id: string;
|
|
23817
23817
|
type: "guest" | "local" | "federated";
|
|
@@ -29877,7 +29877,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
|
|
|
29877
29877
|
repostCount: number;
|
|
29878
29878
|
replyCount: number;
|
|
29879
29879
|
reactions: {
|
|
29880
|
-
reaction: "👍";
|
|
29880
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
29881
29881
|
profile: {
|
|
29882
29882
|
id: string;
|
|
29883
29883
|
type: "guest" | "local" | "federated";
|
|
@@ -1079,7 +1079,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
1079
1079
|
repostCount: number;
|
|
1080
1080
|
replyCount: number;
|
|
1081
1081
|
reactions: {
|
|
1082
|
-
reaction: "👍";
|
|
1082
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
1083
1083
|
profile: {
|
|
1084
1084
|
id: string;
|
|
1085
1085
|
type: "guest" | "local" | "federated";
|
|
@@ -7144,7 +7144,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
7144
7144
|
repostCount: number;
|
|
7145
7145
|
replyCount: number;
|
|
7146
7146
|
reactions: {
|
|
7147
|
-
reaction: "👍";
|
|
7147
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
7148
7148
|
profile: {
|
|
7149
7149
|
id: string;
|
|
7150
7150
|
type: "guest" | "local" | "federated";
|
|
@@ -12129,7 +12129,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
12129
12129
|
repostCount: number;
|
|
12130
12130
|
replyCount: number;
|
|
12131
12131
|
reactions: {
|
|
12132
|
-
reaction: "👍";
|
|
12132
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
12133
12133
|
profile: {
|
|
12134
12134
|
id: string;
|
|
12135
12135
|
type: "guest" | "local" | "federated";
|
|
@@ -18194,7 +18194,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
18194
18194
|
repostCount: number;
|
|
18195
18195
|
replyCount: number;
|
|
18196
18196
|
reactions: {
|
|
18197
|
-
reaction: "👍";
|
|
18197
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
18198
18198
|
profile: {
|
|
18199
18199
|
id: string;
|
|
18200
18200
|
type: "guest" | "local" | "federated";
|
|
@@ -23112,7 +23112,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
23112
23112
|
repostCount: number;
|
|
23113
23113
|
replyCount: number;
|
|
23114
23114
|
reactions: {
|
|
23115
|
-
reaction: "👍";
|
|
23115
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
23116
23116
|
profile: {
|
|
23117
23117
|
id: string;
|
|
23118
23118
|
type: "guest" | "local" | "federated";
|
|
@@ -29177,7 +29177,7 @@ export declare const search: (rawClient: FetchClient) => {
|
|
|
29177
29177
|
repostCount: number;
|
|
29178
29178
|
replyCount: number;
|
|
29179
29179
|
reactions: {
|
|
29180
|
-
reaction: "👍";
|
|
29180
|
+
reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
|
|
29181
29181
|
profile: {
|
|
29182
29182
|
id: string;
|
|
29183
29183
|
type: "guest" | "local" | "federated";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@openpeepshq/common": "^0.
|
|
8
|
+
"@openpeepshq/common": "^0.11.0",
|
|
9
9
|
"@openpeepshq/fetch-client": "^0.2.1"
|
|
10
10
|
},
|
|
11
11
|
"main": "./dist/index.js",
|
package/src/endpoints/posts.ts
CHANGED
|
@@ -330,7 +330,11 @@ type Mutators = {
|
|
|
330
330
|
ReactionData,
|
|
331
331
|
{ id: string }
|
|
332
332
|
>;
|
|
333
|
-
retractReaction: OpenpeepsNoPayloadEndpoint<
|
|
333
|
+
retractReaction: OpenpeepsNoPayloadEndpoint<
|
|
334
|
+
SuccessResponse,
|
|
335
|
+
{ id: string },
|
|
336
|
+
{ reaction?: string }
|
|
337
|
+
>;
|
|
334
338
|
bookmark: OpenpeepsNoPayloadEndpoint<SuccessResponse, { id: string }>;
|
|
335
339
|
unbookmark: OpenpeepsNoPayloadEndpoint<SuccessResponse, { id: string }>;
|
|
336
340
|
seen: OpenpeepsPayloadEndpoint<SuccessResponse, PostsSeenRequest>;
|
|
@@ -368,11 +372,11 @@ const mutators = (rawClient: FetchClient): Mutators => ({
|
|
|
368
372
|
rawClient,
|
|
369
373
|
'/posts/:id/react',
|
|
370
374
|
),
|
|
371
|
-
retractReaction: allpeepNoPayloadEndpoint<
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
),
|
|
375
|
+
retractReaction: allpeepNoPayloadEndpoint<
|
|
376
|
+
SuccessResponse,
|
|
377
|
+
{ id: string },
|
|
378
|
+
{ reaction?: string }
|
|
379
|
+
>(rawClient, '/posts/:id/react', 'delete'),
|
|
376
380
|
bookmark: allpeepNoPayloadEndpoint<SuccessResponse, { id: string }>(
|
|
377
381
|
rawClient,
|
|
378
382
|
'/posts/:id/bookmark',
|