geniebox-shared-lib 1.0.15 → 1.0.16

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.
@@ -20,7 +20,7 @@ export interface AuthResponse {
20
20
  userId: string;
21
21
  sessionId: string;
22
22
  email: string;
23
- tokens: Tokens | undefined;
23
+ tokens?: Tokens | undefined;
24
24
  }
25
25
  export interface UserResponse {
26
26
  uuid: string;
@@ -38,7 +38,7 @@ export interface RefreshTokenRequest {
38
38
  refreshToken: string;
39
39
  }
40
40
  export interface RefreshTokenResponse {
41
- tokens: Tokens | undefined;
41
+ tokens?: Tokens | undefined;
42
42
  }
43
43
  export declare const AUTH_PACKAGE_NAME = "auth";
44
44
  export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
@@ -168,7 +168,7 @@ exports.Tokens = {
168
168
  },
169
169
  };
170
170
  function createBaseAuthResponse() {
171
- return { userId: "", sessionId: "", email: "", tokens: undefined };
171
+ return { userId: "", sessionId: "", email: "" };
172
172
  }
173
173
  exports.AuthResponse = {
174
174
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -387,7 +387,7 @@ exports.RefreshTokenRequest = {
387
387
  },
388
388
  };
389
389
  function createBaseRefreshTokenResponse() {
390
- return { tokens: undefined };
390
+ return {};
391
391
  }
392
392
  exports.RefreshTokenResponse = {
393
393
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -25,8 +25,8 @@ export interface UserAuthentication {
25
25
  }
26
26
  export interface User {
27
27
  uuid: string;
28
- personal: UserPersonal | undefined;
29
- authentication: UserAuthentication | undefined;
28
+ personal?: UserPersonal | undefined;
29
+ authentication?: UserAuthentication | undefined;
30
30
  }
31
31
  export interface CreateUserPersonal {
32
32
  photoUrl: string;
@@ -42,16 +42,16 @@ export interface CreateUserAuthentication {
42
42
  password?: string | undefined;
43
43
  }
44
44
  export interface CreateUserRequest {
45
- personal: CreateUserPersonal | undefined;
46
- authentication: CreateUserAuthentication | undefined;
45
+ personal?: CreateUserPersonal | undefined;
46
+ authentication?: CreateUserAuthentication | undefined;
47
47
  }
48
48
  export interface GetByIdRequest {
49
49
  uuid: string;
50
50
  }
51
51
  export interface UpdateUserRequest {
52
52
  uuid: string;
53
- personal: UserPersonal | undefined;
54
- authentication: UserAuthentication | undefined;
53
+ personal?: UserPersonal | undefined;
54
+ authentication?: UserAuthentication | undefined;
55
55
  }
56
56
  export interface RemoveUserRequest {
57
57
  uuid: string;
@@ -222,7 +222,7 @@ exports.UserAuthentication = {
222
222
  },
223
223
  };
224
224
  function createBaseUser() {
225
- return { uuid: "", personal: undefined, authentication: undefined };
225
+ return { uuid: "" };
226
226
  }
227
227
  exports.User = {
228
228
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -401,7 +401,7 @@ exports.CreateUserAuthentication = {
401
401
  },
402
402
  };
403
403
  function createBaseCreateUserRequest() {
404
- return { personal: undefined, authentication: undefined };
404
+ return {};
405
405
  }
406
406
  exports.CreateUserRequest = {
407
407
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -477,7 +477,7 @@ exports.GetByIdRequest = {
477
477
  },
478
478
  };
479
479
  function createBaseUpdateUserRequest() {
480
- return { uuid: "", personal: undefined, authentication: undefined };
480
+ return { uuid: "" };
481
481
  }
482
482
  exports.UpdateUserRequest = {
483
483
  encode(message, writer = new wire_1.BinaryWriter()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "build": "tsc",
12
- "proto:gen:user": "mkdir -p src/user && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/user --ts_proto_opt=nestJs=true,outputServices=grpc-js,returnObservable=false,addGrpcMetadata=true,fileSuffix=.interface,esModuleInterop=true -I=../../libs/protos ../../libs/protos/user.proto",
13
- "proto:gen:auth": "mkdir -p src/auth && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/auth --ts_proto_opt=nestJs=true,outputServices=grpc-js,returnObservable=false,addGrpcMetadata=true,fileSuffix=.interface,esModuleInterop=true -I=../../libs/protos ../../libs/protos/auth.proto",
12
+ "proto:gen:user": "mkdir -p src/user && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/user --ts_proto_opt=nestJs=true,outputServices=grpc-js,returnObservable=false,addGrpcMetadata=true,fileSuffix=.interface,esModuleInterop=true,useOptionals=true -I=../../libs/protos ../../libs/protos/user.proto",
13
+ "proto:gen:auth": "mkdir -p src/auth && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/auth --ts_proto_opt=nestJs=true,outputServices=grpc-js,returnObservable=false,addGrpcMetadata=true,fileSuffix=.interface,esModuleInterop=true,useOptionals=true -I=../../libs/protos ../../libs/protos/auth.proto",
14
14
  "proto:gen": "npm run proto:gen:user && npm run proto:gen:auth",
15
15
  "prepublishOnly": "npm run build"
16
16
  },