diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9159e82 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@pereslavtsev:registry=https://npm.pkg.github.com \ No newline at end of file diff --git a/src/services/watchers/watchers.proto b/src/services/watchers/watchers.proto index 86b14e0..bdaf338 100644 --- a/src/services/watchers/watchers.proto +++ b/src/services/watchers/watchers.proto @@ -11,7 +11,7 @@ service WatchersService { rpc UpdateWatcher (UpdateWatcherRequest) returns (Watcher); rpc RunWatcher (GetWatcherRequest) returns (RunWatcherResponse); rpc PauseWatcher (GetWatcherRequest) returns (PauseWatcherResponse); - rpc PauseAll (PauseAllRequest) returns (PauseAllResponse); + rpc PauseAllWatchers (PauseAllWatchersRequest) returns (PauseAllWatchersResponse); rpc StopWatcher (GetWatcherRequest) returns (StopWatcherResponse); rpc SubscribeWatcher(GetWatcherRequest) returns (stream SubscribeWatcherResponse) {} } @@ -47,12 +47,12 @@ message ListWatchersResponse { string next_page_token = 2; } -message PauseAllRequest {} +message PauseAllWatchersRequest {} message RunWatcherResponse {} message PauseWatcherResponse {} message StopWatcherResponse {} -message PauseAllResponse {} +message PauseAllWatchersResponse {} message GetWatcherRequest { string id = 1; diff --git a/src/services/watchers/watchers.ts b/src/services/watchers/watchers.ts index 3761279..7ef0137 100644 --- a/src/services/watchers/watchers.ts +++ b/src/services/watchers/watchers.ts @@ -38,7 +38,7 @@ export interface ListWatchersResponse { nextPageToken: string; } -export interface PauseAllRequest {} +export interface PauseAllWatchersRequest {} export interface RunWatcherResponse {} @@ -46,7 +46,7 @@ export interface PauseWatcherResponse {} export interface StopWatcherResponse {} -export interface PauseAllResponse {} +export interface PauseAllWatchersResponse {} export interface GetWatcherRequest { id: string; @@ -110,11 +110,11 @@ export interface WatchersServiceClient { ...rest: any ): Observable; - pauseAll( - request: PauseAllRequest, + pauseAllWatchers( + request: PauseAllWatchersRequest, metadata: Metadata, ...rest: any - ): Observable; + ): Observable; stopWatcher( request: GetWatcherRequest, @@ -175,14 +175,14 @@ export interface WatchersServiceController { | Observable | PauseWatcherResponse; - pauseAll( - request: PauseAllRequest, + pauseAllWatchers( + request: PauseAllWatchersRequest, metadata: Metadata, ...rest: any ): - | Promise - | Observable - | PauseAllResponse; + | Promise + | Observable + | PauseAllWatchersResponse; stopWatcher( request: GetWatcherRequest, @@ -209,7 +209,7 @@ export function WatchersServiceControllerMethods() { 'updateWatcher', 'runWatcher', 'pauseWatcher', - 'pauseAll', + 'pauseAllWatchers', 'stopWatcher', 'subscribeWatcher', ];