@shipsync-software/contracts 1.1.1 → 1.1.3
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/gen/auth.d.ts +46 -0
- package/dist/gen/auth.js +28 -0
- package/gen/{acccount.ts → account.ts} +1 -1
- package/package.json +1 -1
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{proto → src/proto}/index.d.ts +0 -0
- /package/dist/{proto → src/proto}/index.js +0 -0
- /package/dist/{proto → src/proto}/paths.d.ts +0 -0
- /package/dist/{proto → src/proto}/paths.js +0 -0
- /package/proto/{acccount.proto → account.proto} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const protobufPackage = "auth.v1";
|
|
3
|
+
export interface LoginRequest {
|
|
4
|
+
identifier: string;
|
|
5
|
+
method: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LoginResponse {
|
|
8
|
+
reqId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface VerifyRequest {
|
|
11
|
+
reqId: string;
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
export interface VerifyResponse {
|
|
15
|
+
accessToken: string;
|
|
16
|
+
refreshToken: string;
|
|
17
|
+
redirectUrl: string;
|
|
18
|
+
}
|
|
19
|
+
export interface RefreshRequest {
|
|
20
|
+
refreshToken: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RefreshResponse {
|
|
23
|
+
accessToken: string;
|
|
24
|
+
refreshToken: string;
|
|
25
|
+
}
|
|
26
|
+
export interface LogoutRequest {
|
|
27
|
+
refreshToken: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LogoutResponse {
|
|
30
|
+
ok: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
33
|
+
export interface AuthServiceClient {
|
|
34
|
+
login(request: LoginRequest): Observable<LoginResponse>;
|
|
35
|
+
verify(request: VerifyRequest): Observable<VerifyResponse>;
|
|
36
|
+
refresh(request: RefreshRequest): Observable<RefreshResponse>;
|
|
37
|
+
logout(request: LogoutRequest): Observable<LogoutResponse>;
|
|
38
|
+
}
|
|
39
|
+
export interface AuthServiceController {
|
|
40
|
+
login(request: LoginRequest): Promise<LoginResponse> | Observable<LoginResponse> | LoginResponse;
|
|
41
|
+
verify(request: VerifyRequest): Promise<VerifyResponse> | Observable<VerifyResponse> | VerifyResponse;
|
|
42
|
+
refresh(request: RefreshRequest): Promise<RefreshResponse> | Observable<RefreshResponse> | RefreshResponse;
|
|
43
|
+
logout(request: LogoutRequest): Promise<LogoutResponse> | Observable<LogoutResponse> | LogoutResponse;
|
|
44
|
+
}
|
|
45
|
+
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
46
|
+
export declare const AUTH_SERVICE_NAME = "AuthService";
|
package/dist/gen/auth.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
|
+
// source: auth.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "auth.v1";
|
|
13
|
+
exports.AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
14
|
+
function AuthServiceControllerMethods() {
|
|
15
|
+
return function (constructor) {
|
|
16
|
+
const grpcMethods = ["login", "verify", "refresh", "logout"];
|
|
17
|
+
for (const method of grpcMethods) {
|
|
18
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
20
|
+
}
|
|
21
|
+
const grpcStreamMethods = [];
|
|
22
|
+
for (const method of grpcStreamMethods) {
|
|
23
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.AUTH_SERVICE_NAME = "AuthService";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|