@requ1emz/contracts 1.0.22 → 1.0.24
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/proto/paths.d.ts +1 -0
- package/dist/proto/paths.js +1 -0
- package/gen/notification.ts +5 -5
- package/package.json +1 -1
- package/proto/notification.proto +3 -3
package/dist/proto/paths.d.ts
CHANGED
package/dist/proto/paths.js
CHANGED
|
@@ -6,4 +6,5 @@ exports.PROTO_PATHS = {
|
|
|
6
6
|
AUTH: (0, path_1.join)(__dirname, "../../proto/auth.proto"),
|
|
7
7
|
USER: (0, path_1.join)(__dirname, "../../proto/user.proto"),
|
|
8
8
|
FAMILY: (0, path_1.join)(__dirname, "../../proto/family.proto"),
|
|
9
|
+
NOTIFICATION: (0, path_1.join)(__dirname, "../../proto/notification.proto"),
|
|
9
10
|
};
|
package/gen/notification.ts
CHANGED
|
@@ -26,13 +26,13 @@ export interface NotificationItem {
|
|
|
26
26
|
createdAt: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export interface
|
|
29
|
+
export interface RespondToNotificationRequest {
|
|
30
30
|
notificationId: string;
|
|
31
31
|
userId: string;
|
|
32
32
|
action: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface
|
|
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:
|
|
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:
|
|
67
|
-
): Promise<
|
|
66
|
+
request: RespondToNotificationRequest,
|
|
67
|
+
): Promise<RespondToNotificationResponse> | Observable<RespondToNotificationResponse> | RespondToNotificationResponse;
|
|
68
68
|
|
|
69
69
|
inviteUser(
|
|
70
70
|
request: InviteUserRequest,
|
package/package.json
CHANGED
package/proto/notification.proto
CHANGED
|
@@ -4,7 +4,7 @@ package notification;
|
|
|
4
4
|
|
|
5
5
|
service NotificationService {
|
|
6
6
|
rpc GetNotifications (GetNotificationsRequest) returns (GetNotificationsResponse);
|
|
7
|
-
rpc RespondToNotification (
|
|
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
|
|
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
|
|
33
|
+
message RespondToNotificationResponse {
|
|
34
34
|
bool success = 1;
|
|
35
35
|
string status = 2;
|
|
36
36
|
}
|