-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add callback close condition (#837)
* fix client.close condition, in order to with abort signal and subcription * fix format * run bin2ts * add grpc-web-abort-signal * update integrations * fix tsconfig in order to recognize AbortSignal type * revert tsconfig * delete tests files --------- Co-authored-by: Francois HERSENT <francois.hersent@hiventive.com>
- Loading branch information
1 parent
5f439ba
commit 2071c67
Showing
8 changed files
with
1,196 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
syntax = "proto3"; | ||
|
||
package rpx; | ||
|
||
service DashState { | ||
rpc UserSettings(Empty) returns (DashUserSettingsState); | ||
rpc ActiveUserSettingsStream(Empty) returns (stream DashUserSettingsState); | ||
// not supported in grpc-web, but should still compile | ||
rpc ChangeUserSettingsStream (stream DashUserSettingsState) returns (stream DashUserSettingsState) {} | ||
} | ||
|
||
message DashFlash { | ||
string msg = 1; | ||
Type type = 2; | ||
|
||
enum Type { | ||
Undefined = 0; | ||
Success = 1; | ||
Warn = 2; | ||
Error = 3; | ||
} | ||
} | ||
|
||
message DashUserSettingsState { | ||
string email = 1; | ||
URLs urls = 6; | ||
repeated DashFlash flashes = 7; | ||
|
||
message URLs { | ||
string connect_google = 1; | ||
string connect_github = 2; | ||
} | ||
} | ||
|
||
|
||
//---------------------- | ||
// API Creds | ||
//---------------------- | ||
service DashAPICreds { | ||
rpc Create(DashAPICredsCreateReq) returns (DashCred); | ||
rpc Update(DashAPICredsUpdateReq) returns (DashCred); | ||
rpc Delete(DashAPICredsDeleteReq) returns (DashCred); | ||
} | ||
|
||
message DashCred { | ||
string description = 2; | ||
string metadata = 3; | ||
string token = 4; | ||
string id = 7; | ||
} | ||
|
||
message DashAPICredsCreateReq { | ||
string description = 1; | ||
string metadata = 2; | ||
} | ||
|
||
message DashAPICredsUpdateReq { | ||
string cred_sid = 1; | ||
string description = 2; | ||
string metadata = 3; | ||
string id = 5; | ||
} | ||
|
||
message DashAPICredsDeleteReq { | ||
string cred_sid = 1; | ||
string id = 3; | ||
} | ||
|
||
message Empty {} |
Oops, something went wrong.