@vsniksnet/contracts 1.3.4 → 1.3.6

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/gen/friends.ts CHANGED
@@ -17,7 +17,7 @@ export interface CreateInvitionRequest {
17
17
  }
18
18
 
19
19
  export interface CreateInvitionResponse {
20
- profile: Profile | undefined;
20
+ user: RequestUser | undefined;
21
21
  }
22
22
 
23
23
  /** Accept request */
@@ -27,7 +27,7 @@ export interface AcceptInvitionRequest {
27
27
  }
28
28
 
29
29
  export interface AcceptInvitionResponse {
30
- profile: Profile | undefined;
30
+ user: RequestUser | undefined;
31
31
  }
32
32
 
33
33
  /** Reject request */
@@ -37,7 +37,7 @@ export interface RejectInvitionRequest {
37
37
  }
38
38
 
39
39
  export interface RejectInvitionResponse {
40
- profile: Profile | undefined;
40
+ user: RequestUser | undefined;
41
41
  }
42
42
 
43
43
  /** List requests */
@@ -46,7 +46,7 @@ export interface ListRequestedRequest {
46
46
  }
47
47
 
48
48
  export interface ListRequestedResponse {
49
- profile: Profile[];
49
+ user: RequestUser[];
50
50
  }
51
51
 
52
52
  /** List accepted */
@@ -55,7 +55,16 @@ export interface ListAcceptedRequest {
55
55
  }
56
56
 
57
57
  export interface ListAcceptedResponse {
58
- profile: Profile[];
58
+ user: RequestUser[];
59
+ }
60
+
61
+ export interface RequestUser {
62
+ requestId: string;
63
+ id: string;
64
+ username: string;
65
+ avatar: string;
66
+ isFollow: boolean;
67
+ friendStatus: string;
59
68
  }
60
69
 
61
70
  export interface Profile {
package/gen/users.ts CHANGED
@@ -41,7 +41,7 @@ export interface GetAuthResponse {
41
41
  avatar: string;
42
42
  followersCount: number;
43
43
  followingCount: number;
44
- requestCount: number;
44
+ requestsCount: number;
45
45
  friendsCount: number;
46
46
  }
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vsniksnet/contracts",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Protobuf definitions and generated typescript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,7 +23,7 @@ message CreateInvitionRequest {
23
23
  }
24
24
 
25
25
  message CreateInvitionResponse {
26
- Profile profile = 1;
26
+ RequestUser user = 1;
27
27
  }
28
28
 
29
29
  /* Accept request */
@@ -33,7 +33,7 @@ message AcceptInvitionRequest {
33
33
  }
34
34
 
35
35
  message AcceptInvitionResponse {
36
- Profile profile = 1;
36
+ RequestUser user = 1;
37
37
  }
38
38
 
39
39
  /* Reject request */
@@ -43,7 +43,7 @@ message RejectInvitionRequest {
43
43
  }
44
44
 
45
45
  message RejectInvitionResponse {
46
- Profile profile = 1;
46
+ RequestUser user = 1;
47
47
  }
48
48
 
49
49
  /* List requests */
@@ -52,7 +52,7 @@ message ListRequestedRequest {
52
52
  }
53
53
 
54
54
  message ListRequestedResponse {
55
- repeated Profile profile = 1;
55
+ repeated RequestUser user = 1;
56
56
  }
57
57
 
58
58
  /* List accepted*/
@@ -61,7 +61,16 @@ message ListAcceptedRequest {
61
61
  }
62
62
 
63
63
  message ListAcceptedResponse {
64
- repeated Profile profile = 1;
64
+ repeated RequestUser user = 1;
65
+ }
66
+
67
+ message RequestUser {
68
+ string request_id = 1;
69
+ string id = 2;
70
+ string username = 3;
71
+ string avatar = 4;
72
+ bool is_follow = 5;
73
+ string friend_status = 6;
65
74
  }
66
75
 
67
76
  message Profile {
package/proto/users.proto CHANGED
@@ -57,7 +57,7 @@ message GetAuthResponse {
57
57
  string avatar = 3;
58
58
  int32 followers_count = 4;
59
59
  int32 following_count = 5;
60
- int32 request_count = 6;
60
+ int32 requests_count = 6;
61
61
  int32 friends_count = 7;
62
62
  }
63
63