@ticket_for_cinema/contracts 1.0.20 → 1.0.22
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-telegram.d.ts +32 -0
- package/dist/gen/auth-telegram.js +28 -0
- package/dist/gen/auth.d.ts +22 -0
- package/dist/gen/auth.js +1 -1
- package/dist/gen/google/protobuf/empty.d.ts +13 -0
- package/dist/gen/google/protobuf/empty.js +11 -0
- package/gen/auth-telegram.ts +1 -1
- package/package.json +1 -1
- package/proto/auth-telegram.proto +0 -27
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Empty } from "./google/protobuf/empty";
|
|
3
|
+
export declare const protobufPackage = "auth_telegram.v1";
|
|
4
|
+
/** указываем версию протобуфера */
|
|
5
|
+
export interface TelegramInitResponse {
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TelegramVerifyRequest {
|
|
9
|
+
query: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface TelegramVerifyRequest_QueryEntry {
|
|
14
|
+
key: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TelegramVerifyResponse {
|
|
18
|
+
url?: string | undefined;
|
|
19
|
+
accessToken?: string | undefined;
|
|
20
|
+
refreshToken?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare const AUTH_TELEGRAM_V1_PACKAGE_NAME = "auth_telegram.v1";
|
|
23
|
+
export interface AuthTelegramServiceClient {
|
|
24
|
+
telegramInit(request: Empty): Observable<TelegramInitResponse>;
|
|
25
|
+
telegramVerify(request: TelegramVerifyRequest): Observable<TelegramVerifyResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface AuthTelegramServiceController {
|
|
28
|
+
telegramInit(request: Empty): Promise<TelegramInitResponse> | Observable<TelegramInitResponse> | TelegramInitResponse;
|
|
29
|
+
telegramVerify(request: TelegramVerifyRequest): Promise<TelegramVerifyResponse> | Observable<TelegramVerifyResponse> | TelegramVerifyResponse;
|
|
30
|
+
}
|
|
31
|
+
export declare function AuthTelegramServiceControllerMethods(): (constructor: Function) => void;
|
|
32
|
+
export declare const AUTH_TELEGRAM_SERVICE_NAME = "AuthTelegramService";
|
|
@@ -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 v1.181.2
|
|
5
|
+
// protoc v6.33.2
|
|
6
|
+
// source: auth-telegram.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AUTH_TELEGRAM_SERVICE_NAME = exports.AUTH_TELEGRAM_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AuthTelegramServiceControllerMethods = AuthTelegramServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "auth_telegram.v1";
|
|
13
|
+
exports.AUTH_TELEGRAM_V1_PACKAGE_NAME = "auth_telegram.v1";
|
|
14
|
+
function AuthTelegramServiceControllerMethods() {
|
|
15
|
+
return function (constructor) {
|
|
16
|
+
const grpcMethods = ["telegramInit", "telegramVerify"];
|
|
17
|
+
for (const method of grpcMethods) {
|
|
18
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AuthTelegramService", 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)("AuthTelegramService", method)(constructor.prototype[method], method, descriptor);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.AUTH_TELEGRAM_SERVICE_NAME = "AuthTelegramService";
|
package/dist/gen/auth.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
+
import { Empty } from "./google/protobuf/empty";
|
|
2
3
|
export declare const protobufPackage = "auth.v1";
|
|
3
4
|
/** указываем версию протобуфера */
|
|
4
5
|
export interface SendOtpRequest {
|
|
@@ -26,16 +27,37 @@ export interface RefreshTokensResponse {
|
|
|
26
27
|
accessToken: string;
|
|
27
28
|
refreshToken: string;
|
|
28
29
|
}
|
|
30
|
+
export interface TelegramInitResponse {
|
|
31
|
+
url: string;
|
|
32
|
+
}
|
|
33
|
+
export interface TelegramVerifyRequest {
|
|
34
|
+
query: {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface TelegramVerifyRequest_QueryEntry {
|
|
39
|
+
key: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
export interface TelegramVerifyResponse {
|
|
43
|
+
url?: string | undefined;
|
|
44
|
+
accessToken?: string | undefined;
|
|
45
|
+
refreshToken?: string | undefined;
|
|
46
|
+
}
|
|
29
47
|
export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
30
48
|
export interface AuthServiceClient {
|
|
31
49
|
sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
|
|
32
50
|
verifyOtp(request: VerifyOtpRequest): Observable<VerifyOtpResponse>;
|
|
33
51
|
refreshTokens(request: RefreshTokensRequest): Observable<RefreshTokensResponse>;
|
|
52
|
+
telegramInit(request: Empty): Observable<TelegramInitResponse>;
|
|
53
|
+
telegramVerify(request: TelegramVerifyRequest): Observable<TelegramVerifyResponse>;
|
|
34
54
|
}
|
|
35
55
|
export interface AuthServiceController {
|
|
36
56
|
sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
|
|
37
57
|
verifyOtp(request: VerifyOtpRequest): Promise<VerifyOtpResponse> | Observable<VerifyOtpResponse> | VerifyOtpResponse;
|
|
38
58
|
refreshTokens(request: RefreshTokensRequest): Promise<RefreshTokensResponse> | Observable<RefreshTokensResponse> | RefreshTokensResponse;
|
|
59
|
+
telegramInit(request: Empty): Promise<TelegramInitResponse> | Observable<TelegramInitResponse> | TelegramInitResponse;
|
|
60
|
+
telegramVerify(request: TelegramVerifyRequest): Promise<TelegramVerifyResponse> | Observable<TelegramVerifyResponse> | TelegramVerifyResponse;
|
|
39
61
|
}
|
|
40
62
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
41
63
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
package/dist/gen/auth.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.protobufPackage = "auth.v1";
|
|
|
13
13
|
exports.AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
14
14
|
function AuthServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = ["sendOtp", "verifyOtp", "refreshTokens"];
|
|
16
|
+
const grpcMethods = ["sendOtp", "verifyOtp", "refreshTokens", "telegramInit", "telegramVerify"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
19
|
(0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.protobuf";
|
|
2
|
+
/**
|
|
3
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
4
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
5
|
+
* or the response type of an API method. For instance:
|
|
6
|
+
*
|
|
7
|
+
* service Foo {
|
|
8
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface Empty {
|
|
12
|
+
}
|
|
13
|
+
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v6.33.2
|
|
6
|
+
// source: google/protobuf/empty.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "google.protobuf";
|
|
11
|
+
exports.GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
package/gen/auth-telegram.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
syntax = "proto3"; // указываем версию протобуфера
|
|
2
|
-
|
|
3
|
-
package auth_telegram.v1; // указываем пакет тут указываем доменную область
|
|
4
|
-
|
|
5
|
-
import "google/protobuf/empty.proto";
|
|
6
|
-
|
|
7
|
-
service AuthTelegramService {
|
|
8
|
-
|
|
9
|
-
rpc TelegramInit(google.protobuf.Empty) returns (TelegramInitResponse);
|
|
10
|
-
rpc TelegramVerify(TelegramVerifyRequest) returns (TelegramVerifyResponse);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
message TelegramInitResponse {
|
|
14
|
-
string url = 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message TelegramVerifyRequest {
|
|
18
|
-
map<string, string> query = 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
message TelegramVerifyResponse {
|
|
22
|
-
oneof res {
|
|
23
|
-
string url = 1;
|
|
24
|
-
string access_token = 2;
|
|
25
|
-
string refresh_token = 3;
|
|
26
|
-
}
|
|
27
|
-
}
|