-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d2335e
commit eb52ca4
Showing
8 changed files
with
169 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,64 @@ | ||
/* eslint-disable */ | ||
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices'; | ||
import { Observable } from 'rxjs'; | ||
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; | ||
import { Observable } from "rxjs"; | ||
|
||
export const protobufPackage = 'authservice.api_key'; | ||
export const protobufPackage = "authservice.api_key"; | ||
|
||
export interface IssueApiKeyRequest {} | ||
export interface IssueApiKeyRequest { | ||
} | ||
|
||
export interface IssueApiKeyResponse { | ||
} | ||
|
||
export interface RevokeApiKeyRequest { | ||
} | ||
|
||
export interface IssueApiKeyResponse {} | ||
export interface RevokeApiKeyResponse { | ||
} | ||
|
||
export interface RevokeApiKeyRequest {} | ||
export interface IsValidApiKeyRequest { | ||
} | ||
|
||
export interface RevokeApiKeyResponse {} | ||
export interface IsValidApiKeyResponse { | ||
} | ||
|
||
export const AUTHSERVICE_API_KEY_PACKAGE_NAME = 'authservice.api_key'; | ||
export const AUTHSERVICE_API_KEY_PACKAGE_NAME = "authservice.api_key"; | ||
|
||
export interface ApiKeyServiceClient { | ||
issueApiKey(request: IssueApiKeyRequest): Observable<IssueApiKeyResponse>; | ||
|
||
revokeApiKey(request: RevokeApiKeyRequest): Observable<RevokeApiKeyResponse>; | ||
|
||
isValidApiKey(request: IsValidApiKeyRequest): Observable<IsValidApiKeyResponse>; | ||
} | ||
|
||
export interface ApiKeyServiceController { | ||
issueApiKey( | ||
request: IssueApiKeyRequest, | ||
): | ||
| Promise<IssueApiKeyResponse> | ||
| Observable<IssueApiKeyResponse> | ||
| IssueApiKeyResponse; | ||
): Promise<IssueApiKeyResponse> | Observable<IssueApiKeyResponse> | IssueApiKeyResponse; | ||
|
||
revokeApiKey( | ||
request: RevokeApiKeyRequest, | ||
): | ||
| Promise<RevokeApiKeyResponse> | ||
| Observable<RevokeApiKeyResponse> | ||
| RevokeApiKeyResponse; | ||
): Promise<RevokeApiKeyResponse> | Observable<RevokeApiKeyResponse> | RevokeApiKeyResponse; | ||
|
||
isValidApiKey( | ||
request: IsValidApiKeyRequest, | ||
): Promise<IsValidApiKeyResponse> | Observable<IsValidApiKeyResponse> | IsValidApiKeyResponse; | ||
} | ||
|
||
export function ApiKeyServiceControllerMethods() { | ||
return function (constructor: Function) { | ||
const grpcMethods: string[] = ['issueApiKey', 'revokeApiKey']; | ||
const grpcMethods: string[] = ["issueApiKey", "revokeApiKey", "isValidApiKey"]; | ||
for (const method of grpcMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor( | ||
constructor.prototype, | ||
method, | ||
); | ||
GrpcMethod('ApiKeyService', method)( | ||
constructor.prototype[method], | ||
method, | ||
descriptor, | ||
); | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcMethod("ApiKeyService", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
const grpcStreamMethods: string[] = []; | ||
for (const method of grpcStreamMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor( | ||
constructor.prototype, | ||
method, | ||
); | ||
GrpcStreamMethod('ApiKeyService', method)( | ||
constructor.prototype[method], | ||
method, | ||
descriptor, | ||
); | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcStreamMethod("ApiKeyService", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
}; | ||
} | ||
|
||
export const API_KEY_SERVICE_NAME = 'ApiKeyService'; | ||
export const API_KEY_SERVICE_NAME = "ApiKeyService"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,64 @@ | ||
/* eslint-disable */ | ||
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices'; | ||
import { Observable } from 'rxjs'; | ||
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; | ||
import { Observable } from "rxjs"; | ||
|
||
export const protobufPackage = 'authservice.api_key'; | ||
export const protobufPackage = "authservice.api_key"; | ||
|
||
export interface IssueApiKeyRequest {} | ||
export interface IssueApiKeyRequest { | ||
} | ||
|
||
export interface IssueApiKeyResponse { | ||
} | ||
|
||
export interface RevokeApiKeyRequest { | ||
} | ||
|
||
export interface IssueApiKeyResponse {} | ||
export interface RevokeApiKeyResponse { | ||
} | ||
|
||
export interface RevokeApiKeyRequest {} | ||
export interface IsValidApiKeyRequest { | ||
} | ||
|
||
export interface RevokeApiKeyResponse {} | ||
export interface IsValidApiKeyResponse { | ||
} | ||
|
||
export const AUTHSERVICE_API_KEY_PACKAGE_NAME = 'authservice.api_key'; | ||
export const AUTHSERVICE_API_KEY_PACKAGE_NAME = "authservice.api_key"; | ||
|
||
export interface ApiKeyServiceClient { | ||
issueApiKey(request: IssueApiKeyRequest): Observable<IssueApiKeyResponse>; | ||
|
||
revokeApiKey(request: RevokeApiKeyRequest): Observable<RevokeApiKeyResponse>; | ||
|
||
isValidApiKey(request: IsValidApiKeyRequest): Observable<IsValidApiKeyResponse>; | ||
} | ||
|
||
export interface ApiKeyServiceController { | ||
issueApiKey( | ||
request: IssueApiKeyRequest, | ||
): | ||
| Promise<IssueApiKeyResponse> | ||
| Observable<IssueApiKeyResponse> | ||
| IssueApiKeyResponse; | ||
): Promise<IssueApiKeyResponse> | Observable<IssueApiKeyResponse> | IssueApiKeyResponse; | ||
|
||
revokeApiKey( | ||
request: RevokeApiKeyRequest, | ||
): | ||
| Promise<RevokeApiKeyResponse> | ||
| Observable<RevokeApiKeyResponse> | ||
| RevokeApiKeyResponse; | ||
): Promise<RevokeApiKeyResponse> | Observable<RevokeApiKeyResponse> | RevokeApiKeyResponse; | ||
|
||
isValidApiKey( | ||
request: IsValidApiKeyRequest, | ||
): Promise<IsValidApiKeyResponse> | Observable<IsValidApiKeyResponse> | IsValidApiKeyResponse; | ||
} | ||
|
||
export function ApiKeyServiceControllerMethods() { | ||
return function (constructor: Function) { | ||
const grpcMethods: string[] = ['issueApiKey', 'revokeApiKey']; | ||
const grpcMethods: string[] = ["issueApiKey", "revokeApiKey", "isValidApiKey"]; | ||
for (const method of grpcMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor( | ||
constructor.prototype, | ||
method, | ||
); | ||
GrpcMethod('ApiKeyService', method)( | ||
constructor.prototype[method], | ||
method, | ||
descriptor, | ||
); | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcMethod("ApiKeyService", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
const grpcStreamMethods: string[] = []; | ||
for (const method of grpcStreamMethods) { | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor( | ||
constructor.prototype, | ||
method, | ||
); | ||
GrpcStreamMethod('ApiKeyService', method)( | ||
constructor.prototype[method], | ||
method, | ||
descriptor, | ||
); | ||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); | ||
GrpcStreamMethod("ApiKeyService", method)(constructor.prototype[method], method, descriptor); | ||
} | ||
}; | ||
} | ||
|
||
export const API_KEY_SERVICE_NAME = 'ApiKeyService'; | ||
export const API_KEY_SERVICE_NAME = "ApiKeyService"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.