@eyenest/contracts 1.6.9 → 1.6.10
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/ts/notifications.ts +48 -0
- package/package.json +1 -1
- package/proto/notifications.proto +16 -0
package/dist/proto/paths.d.ts
CHANGED
package/dist/proto/paths.js
CHANGED
|
@@ -7,4 +7,5 @@ exports.PROTO_PATHS = {
|
|
|
7
7
|
CAMERA: (0, path_1.join)(__dirname, '../../proto/camera.proto'),
|
|
8
8
|
VIDEO: (0, path_1.join)(__dirname, '../../proto/video.proto'),
|
|
9
9
|
EVENTS: (0, path_1.join)(__dirname, '../../proto/events.proto'),
|
|
10
|
+
NOTIFICATIONS: (0, path_1.join)(__dirname, '../../proto/notifications.proto'),
|
|
10
11
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.5
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: notifications.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "notifications.v1";
|
|
12
|
+
|
|
13
|
+
export interface LinkTokenRequest {
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface LinkTokenResponse {
|
|
18
|
+
token: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const NOTIFICATIONS_V1_PACKAGE_NAME = "notifications.v1";
|
|
22
|
+
|
|
23
|
+
export interface NotificationsServiceClient {
|
|
24
|
+
getLinkToken(request: LinkTokenRequest): Observable<LinkTokenResponse>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface NotificationsServiceController {
|
|
28
|
+
getLinkToken(
|
|
29
|
+
request: LinkTokenRequest,
|
|
30
|
+
): Promise<LinkTokenResponse> | Observable<LinkTokenResponse> | LinkTokenResponse;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function NotificationsServiceControllerMethods() {
|
|
34
|
+
return function (constructor: Function) {
|
|
35
|
+
const grpcMethods: string[] = ["getLinkToken"];
|
|
36
|
+
for (const method of grpcMethods) {
|
|
37
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
38
|
+
GrpcMethod("NotificationsService", method)(constructor.prototype[method], method, descriptor);
|
|
39
|
+
}
|
|
40
|
+
const grpcStreamMethods: string[] = [];
|
|
41
|
+
for (const method of grpcStreamMethods) {
|
|
42
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
43
|
+
GrpcStreamMethod("NotificationsService", method)(constructor.prototype[method], method, descriptor);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const NOTIFICATIONS_SERVICE_NAME = "NotificationsService";
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package notifications.v1;
|
|
4
|
+
|
|
5
|
+
service NotificationsService {
|
|
6
|
+
rpc GetLinkToken (LinkTokenRequest) returns (LinkTokenResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message LinkTokenRequest {
|
|
10
|
+
string userId = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message LinkTokenResponse {
|
|
14
|
+
string token = 1;
|
|
15
|
+
}
|
|
16
|
+
|