@openpeepshq/client 0.5.0 → 0.7.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.
@@ -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";
@@ -103,6 +103,8 @@ type Mutators = {
103
103
  }>;
104
104
  retractReaction: OpenpeepsNoPayloadEndpoint<SuccessResponse, {
105
105
  id: string;
106
+ }, {
107
+ reaction?: string;
106
108
  }>;
107
109
  bookmark: OpenpeepsNoPayloadEndpoint<SuccessResponse, {
108
110
  id: string;
@@ -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";
@@ -22397,7 +22397,9 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
22397
22397
  success: boolean;
22398
22398
  message?: string | undefined;
22399
22399
  key?: string | undefined;
22400
- }, undefined, undefined>;
22400
+ }, undefined, {
22401
+ directory?: "true";
22402
+ }>;
22401
22403
  findById: import("@openpeepshq/fetch-client").TypedNoPayloadEndpoint<{
22402
22404
  id: string;
22403
22405
  type: "guest" | "local" | "federated";
@@ -23811,7 +23813,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
23811
23813
  repostCount: number;
23812
23814
  replyCount: number;
23813
23815
  reactions: {
23814
- reaction: "👍";
23816
+ reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
23815
23817
  profile: {
23816
23818
  id: string;
23817
23819
  type: "guest" | "local" | "federated";
@@ -29877,7 +29879,7 @@ export declare const profiles: (rawClient: FetchClient, eventSource: ReturnType<
29877
29879
  repostCount: number;
29878
29880
  replyCount: number;
29879
29881
  reactions: {
29880
- reaction: "👍";
29882
+ reaction: "👍" | "👎" | "❤️" | "😂" | "😮" | "😢" | "🎉";
29881
29883
  profile: {
29882
29884
  id: string;
29883
29885
  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.5.0",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
- "@openpeepshq/common": "^0.10.0",
8
+ "@openpeepshq/common": "^0.12.0",
9
9
  "@openpeepshq/fetch-client": "^0.2.1"
10
10
  },
11
11
  "main": "./dist/index.js",
@@ -330,7 +330,11 @@ type Mutators = {
330
330
  ReactionData,
331
331
  { id: string }
332
332
  >;
333
- retractReaction: OpenpeepsNoPayloadEndpoint<SuccessResponse, { id: string }>;
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<SuccessResponse, { id: string }>(
372
- rawClient,
373
- '/posts/:id/react',
374
- 'delete',
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',
@@ -120,7 +120,11 @@ export const profiles = (
120
120
  ),
121
121
  },
122
122
 
123
- list: allpeepNoPayloadEndpoint<PublicProfile[]>(rawClient, '/profiles'),
123
+ list: allpeepNoPayloadEndpoint<
124
+ PublicProfile[],
125
+ undefined,
126
+ { directory?: 'true' }
127
+ >(rawClient, '/profiles'),
124
128
  findById: allpeepNoPayloadEndpoint<PublicProfile, { id: string }>(
125
129
  rawClient,
126
130
  '/profiles/:id',