@requ1emz/contracts 1.0.22 → 1.0.23

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.
@@ -26,13 +26,13 @@ export interface NotificationItem {
26
26
  createdAt: string;
27
27
  }
28
28
 
29
- export interface RespondRequest {
29
+ export interface RespondToNotificationRequest {
30
30
  notificationId: string;
31
31
  userId: string;
32
32
  action: string;
33
33
  }
34
34
 
35
- export interface RespondResponse {
35
+ export interface RespondToNotificationResponse {
36
36
  success: boolean;
37
37
  status: string;
38
38
  }
@@ -52,7 +52,7 @@ export const NOTIFICATION_PACKAGE_NAME = "notification";
52
52
  export interface NotificationServiceClient {
53
53
  getNotifications(request: GetNotificationsRequest): Observable<GetNotificationsResponse>;
54
54
 
55
- respondToNotification(request: RespondRequest): Observable<RespondResponse>;
55
+ respondToNotification(request: RespondToNotificationRequest): Observable<RespondToNotificationResponse>;
56
56
 
57
57
  inviteUser(request: InviteUserRequest): Observable<InviteUserResponse>;
58
58
  }
@@ -63,8 +63,8 @@ export interface NotificationServiceController {
63
63
  ): Promise<GetNotificationsResponse> | Observable<GetNotificationsResponse> | GetNotificationsResponse;
64
64
 
65
65
  respondToNotification(
66
- request: RespondRequest,
67
- ): Promise<RespondResponse> | Observable<RespondResponse> | RespondResponse;
66
+ request: RespondToNotificationRequest,
67
+ ): Promise<RespondToNotificationResponse> | Observable<RespondToNotificationResponse> | RespondToNotificationResponse;
68
68
 
69
69
  inviteUser(
70
70
  request: InviteUserRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@requ1emz/contracts",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -4,7 +4,7 @@ package notification;
4
4
 
5
5
  service NotificationService {
6
6
  rpc GetNotifications (GetNotificationsRequest) returns (GetNotificationsResponse);
7
- rpc RespondToNotification (RespondRequest) returns (RespondResponse);
7
+ rpc RespondToNotification (RespondToNotificationRequest) returns (RespondToNotificationResponse);
8
8
  rpc InviteUser (InviteUserRequest) returns (InviteUserResponse);
9
9
  }
10
10
 
@@ -24,13 +24,13 @@ message NotificationItem {
24
24
  string created_at = 5;
25
25
  }
26
26
 
27
- message RespondRequest {
27
+ message RespondToNotificationRequest {
28
28
  string notification_id = 1;
29
29
  string user_id = 2;
30
30
  string action = 3;
31
31
  }
32
32
 
33
- message RespondResponse {
33
+ message RespondToNotificationResponse {
34
34
  bool success = 1;
35
35
  string status = 2;
36
36
  }