@thiscargo/contracts 0.0.8 → 0.0.9
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/gen/account.ts +5 -6
- package/gen/auth.ts +4 -6
- package/package.json +1 -1
- package/proto/account.proto +5 -5
- package/proto/auth.proto +3 -3
package/gen/account.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
|
-
import { Timestamp } from "./google/protobuf/timestamp";
|
|
11
10
|
|
|
12
11
|
export const protobufPackage = "account.v1";
|
|
13
12
|
|
|
@@ -17,16 +16,16 @@ export interface GetAccountRequest {
|
|
|
17
16
|
|
|
18
17
|
export interface GetAccountResponse {
|
|
19
18
|
id: string;
|
|
20
|
-
companyId
|
|
21
|
-
tId
|
|
19
|
+
companyId?: string | undefined;
|
|
20
|
+
tId?: number | undefined;
|
|
22
21
|
firstName: string;
|
|
23
22
|
lastName: string;
|
|
24
|
-
middleName
|
|
23
|
+
middleName?: string | undefined;
|
|
25
24
|
phone: string;
|
|
26
25
|
roleId: string;
|
|
27
26
|
isActive: boolean;
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
27
|
+
createdAt: number;
|
|
28
|
+
updatedAt: number;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
|
package/gen/auth.ts
CHANGED
|
@@ -32,11 +32,11 @@ export interface LoginResponse {
|
|
|
32
32
|
refreshToken: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface
|
|
35
|
+
export interface RefreshRequest {
|
|
36
36
|
refreshToken: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export interface
|
|
39
|
+
export interface RefreshResponse {
|
|
40
40
|
accessToken: string;
|
|
41
41
|
refreshToken: string;
|
|
42
42
|
}
|
|
@@ -48,7 +48,7 @@ export interface AuthServiceClient {
|
|
|
48
48
|
|
|
49
49
|
login(request: LoginRequest): Observable<LoginResponse>;
|
|
50
50
|
|
|
51
|
-
refresh(request:
|
|
51
|
+
refresh(request: RefreshRequest): Observable<RefreshResponse>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export interface AuthServiceController {
|
|
@@ -56,9 +56,7 @@ export interface AuthServiceController {
|
|
|
56
56
|
|
|
57
57
|
login(request: LoginRequest): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
58
58
|
|
|
59
|
-
refresh(
|
|
60
|
-
request: RefreshTokenRequest,
|
|
61
|
-
): Promise<RefreshTokenResponse> | Observable<RefreshTokenResponse> | RefreshTokenResponse;
|
|
59
|
+
refresh(request: RefreshRequest): Promise<RefreshResponse> | Observable<RefreshResponse> | RefreshResponse;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
export function AuthServiceControllerMethods() {
|
package/package.json
CHANGED
package/proto/account.proto
CHANGED
|
@@ -14,14 +14,14 @@ message GetAccountRequest {
|
|
|
14
14
|
|
|
15
15
|
message GetAccountResponse {
|
|
16
16
|
string id = 1;
|
|
17
|
-
string company_id = 2;
|
|
18
|
-
int64 t_id = 3;
|
|
17
|
+
optional string company_id = 2;
|
|
18
|
+
optional int64 t_id = 3;
|
|
19
19
|
string first_name = 4;
|
|
20
20
|
string last_name = 5;
|
|
21
|
-
string middle_name = 6;
|
|
21
|
+
optional string middle_name = 6;
|
|
22
22
|
string phone = 7;
|
|
23
23
|
string role_id = 8;
|
|
24
24
|
bool is_active = 9;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
int64 created_at = 10;
|
|
26
|
+
int64 updated_at = 11;
|
|
27
27
|
}
|
package/proto/auth.proto
CHANGED
|
@@ -5,7 +5,7 @@ package auth.v1;
|
|
|
5
5
|
service AuthService {
|
|
6
6
|
rpc Register(RegisterRequest) returns (RegisterResponse);
|
|
7
7
|
rpc Login(LoginRequest) returns (LoginResponse);
|
|
8
|
-
rpc Refresh(
|
|
8
|
+
rpc Refresh(RefreshRequest) returns (RefreshResponse);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
message RegisterRequest {
|
|
@@ -30,11 +30,11 @@ message LoginResponse {
|
|
|
30
30
|
string refresh_token = 2;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
message
|
|
33
|
+
message RefreshRequest {
|
|
34
34
|
string refresh_token = 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
message
|
|
37
|
+
message RefreshResponse {
|
|
38
38
|
string access_token = 1;
|
|
39
39
|
string refresh_token = 2;
|
|
40
40
|
}
|