@radiantsystem/tickets-ms-contracts 1.0.4

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.
Files changed (2) hide show
  1. package/package.json +22 -0
  2. package/proto/auth.proto +19 -0
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@radiantsystem/tickets-ms-contracts",
3
+ "version": "1.0.4",
4
+ "description": "Protobuf definitions and generated Typscript types",
5
+ "scripts": {
6
+ "generate": "rimraf gen && mkdir gen && npx protoc --ts_proto_out=gen --ts_proto_opt=nestJs=true,package=omit -I proto proto/*.proto"
7
+ },
8
+ "devDependencies": {
9
+ "rimraf": "^6.1.3",
10
+ "ts-proto": "^2.11.4"
11
+ },
12
+ "dependencies": {
13
+ "@nestjs/microservices": "^11.1.16"
14
+ },
15
+ "files": [
16
+ "proto",
17
+ "src"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ }
22
+ }
@@ -0,0 +1,19 @@
1
+ syntax = "proto3";
2
+
3
+ package auth.v1;
4
+
5
+ import "google/protobuf/empty.proto";
6
+
7
+ service AuthService {
8
+ rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
9
+ rpc Ping (google.protobuf.Empty) returns (SendOtpResponse);
10
+ }
11
+
12
+ message SendOtpRequest {
13
+ string identifier = 1;
14
+ string type = 2;
15
+ }
16
+
17
+ message SendOtpResponse {
18
+ bool ok = 1;
19
+ }