jr-common-micro 1.0.4 → 1.0.5
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/package.json +5 -4
- package/proto/micro/v1/coin/analytics_messages.proto +373 -0
- package/proto/micro/v1/coin/coin_messages.proto +126 -0
- package/proto/micro/v1/coin/coin_websocket_messages.proto +86 -0
- package/proto/micro/v1/coin/data_general_messages.proto +72 -0
- package/proto/micro/v1/coin/data_microservice_messages.proto +53 -0
- package/proto/micro/v1/coin/etf_messages.proto +125 -0
- package/proto/micro/v1/coin/long_short_ratio_messages.proto +56 -0
- package/proto/micro/v1/coin/rsi_messages.proto +45 -0
- package/proto/micro/v1/coin/services.proto +109 -0
- package/proto/micro/v1/coin/token_unlocks_messages.proto +51 -0
- package/proto/micro/v1/data/daily_market_data_messages.proto +23 -0
- package/proto/micro/v1/data/dominance_messages.proto +42 -0
- package/proto/micro/v1/data/exchanges_messages.proto +158 -0
- package/proto/micro/v1/data/funding_rate_messages.proto +33 -0
- package/proto/micro/v1/data/global_stats_messages.proto +19 -0
- package/proto/micro/v1/data/homepage_messages.proto +44 -0
- package/proto/micro/v1/data/inflow_outflow_messages.proto +84 -0
- package/proto/micro/v1/data/liquidation_heat_map_m2_messages.proto +52 -0
- package/proto/micro/v1/data/liquidation_v1_messages.proto +40 -0
- package/proto/micro/v1/data/mvrvz_score_messages.proto +13 -0
- package/proto/micro/v1/data/puell_multiple_messages.proto +18 -0
- package/proto/micro/v1/data/puppeteer_messages.proto +29 -0
- package/proto/micro/v1/data/rainbow_messages.proto +14 -0
- package/proto/micro/v1/data/rsi_list_messages.proto +27 -0
- package/proto/micro/v1/data/scrape_assets_messages.proto +25 -0
- package/proto/micro/v1/data/scrape_treasuries_messages.proto +44 -0
- package/proto/micro/v1/data/services.proto +115 -0
- package/proto/micro/v1/data/token_unlocks.proto +65 -0
- package/proto/micro/v1/data/two_hundred_week_moving_average_messages.proto +18 -0
- package/proto/micro/v1/data/two_year_ma_multipler_messages.proto +20 -0
- package/proto/micro/v1/education/education_messages.proto +294 -0
- package/proto/micro/v1/education/services.proto +94 -0
- package/proto/micro/v1/general.proto +114 -0
- package/proto/micro/v1/media/media_messages.proto +108 -0
- package/proto/micro/v1/media/services.proto +22 -0
- package/proto/micro/v1/news/app_version_message.proto +35 -0
- package/proto/micro/v1/news/blog_messages.proto +110 -0
- package/proto/micro/v1/news/calendar_messages.proto +46 -0
- package/proto/micro/v1/news/economic_calendar_messages.proto +28 -0
- package/proto/micro/v1/news/jr_blog_messages.proto +216 -0
- package/proto/micro/v1/news/news_messages.proto +193 -0
- package/proto/micro/v1/news/services.proto +148 -0
- package/proto/micro/v1/news/sundown_messages.proto +61 -0
- package/proto/micro/v1/notification/mail_messages.proto +40 -0
- package/proto/micro/v1/notification/notification_messages.proto +198 -0
- package/proto/micro/v1/notification/services.proto +35 -0
- package/proto/micro/v1/portfolio/portfolio_coin_messages.proto +22 -0
- package/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages.proto +43 -0
- package/proto/micro/v1/portfolio/portfolio_messages.proto +187 -0
- package/proto/micro/v1/portfolio/services.proto +37 -0
- package/proto/micro/v1/puppeteer/puppeteer_messages.proto +0 -0
- package/proto/micro/v1/puppeteer/services.proto +27 -0
- package/proto/micro/v1/user/auth_messages.proto +91 -0
- package/proto/micro/v1/user/authorization_messages.proto +58 -0
- package/proto/micro/v1/user/services.proto +86 -0
- package/proto/micro/v1/user/site_settings_messages.proto +19 -0
- package/proto/micro/v1/user/user_messages.proto +228 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.portfolio;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message PortfolioByCoinIdDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string portfolio_id = 2;
|
|
10
|
+
string coin_id = 3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message PortfolioUserResponse {
|
|
14
|
+
string user_id = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
message PortfolioByCoinIdResponse {
|
|
19
|
+
ResponseStatus status = 1;
|
|
20
|
+
repeated PortfolioByCoinIdDto data = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message PortfolioDto {
|
|
24
|
+
string id = 1;
|
|
25
|
+
string userId = 2;
|
|
26
|
+
string name = 3;
|
|
27
|
+
bool isMain = 4;
|
|
28
|
+
|
|
29
|
+
repeated CoinData coins = 5;
|
|
30
|
+
|
|
31
|
+
string createdAt = 6;
|
|
32
|
+
string updatedAt = 7;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message PortfoliosResponse {
|
|
36
|
+
ResponseStatus status = 1;
|
|
37
|
+
repeated PortfolioDto data = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message PortfolioCoinDto {
|
|
41
|
+
string id = 1;
|
|
42
|
+
string coinId = 2;
|
|
43
|
+
string name = 3;
|
|
44
|
+
string symbol = 4;
|
|
45
|
+
optional string description = 5;
|
|
46
|
+
string portfolioId = 6;
|
|
47
|
+
string createdAt = 7;
|
|
48
|
+
string updatedAt = 8;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message PortfolioStoreRequest {
|
|
52
|
+
string name = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message PortfolioStoreResponse {
|
|
56
|
+
ResponseStatus status = 1;
|
|
57
|
+
PortfolioDto data = 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message AddCoinRequest {
|
|
61
|
+
string portfolioId = 1;
|
|
62
|
+
string coinId = 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message AddCoinResponse {
|
|
66
|
+
ResponseStatus status = 1;
|
|
67
|
+
AddCoinDto data = 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message AddCoinDto {
|
|
71
|
+
string portfolioId = 1;
|
|
72
|
+
string coinId = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message TransactionDto {
|
|
76
|
+
string id = 1;
|
|
77
|
+
string portfolioCoinId = 2;
|
|
78
|
+
string portfolioId = 3;
|
|
79
|
+
string type = 4;
|
|
80
|
+
string amount = 5;
|
|
81
|
+
string price = 6;
|
|
82
|
+
string timestamp = 7;
|
|
83
|
+
string createdAt = 8;
|
|
84
|
+
string updatedAt = 9;
|
|
85
|
+
CurrencyDto currency = 10;
|
|
86
|
+
optional FeeDto fee = 11;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message FeeDto {
|
|
90
|
+
string id = 1;
|
|
91
|
+
string transactionId = 2;
|
|
92
|
+
string amount = 3;
|
|
93
|
+
CurrencyDto currency = 4;
|
|
94
|
+
string createdAt = 5;
|
|
95
|
+
string updatedAt = 6;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message CurrencyDto {
|
|
99
|
+
string id = 1;
|
|
100
|
+
string name = 2;
|
|
101
|
+
string symbol = 3;
|
|
102
|
+
string sign = 4;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// BUNDLE
|
|
106
|
+
message PortfoliosBundleResponse {
|
|
107
|
+
ResponseStatus status = 1;
|
|
108
|
+
repeated PortfolioBundleDto data = 2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message PortfolioBundleDto {
|
|
112
|
+
string id = 1;
|
|
113
|
+
string userId = 2;
|
|
114
|
+
string name = 3;
|
|
115
|
+
bool isMain = 4;
|
|
116
|
+
string createdAt = 5;
|
|
117
|
+
string updatedAt = 6;
|
|
118
|
+
repeated PortfolioCoinBundleDto portfolioCoins = 7;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message PortfolioCoinBundleDto {
|
|
122
|
+
string id = 1;
|
|
123
|
+
string coinId = 2;
|
|
124
|
+
string name = 3;
|
|
125
|
+
string symbol = 4;
|
|
126
|
+
optional string description = 5;
|
|
127
|
+
string price = 6;
|
|
128
|
+
string change1h = 7;
|
|
129
|
+
string change24h = 8;
|
|
130
|
+
string change7d = 9;
|
|
131
|
+
string volume24h = 10;
|
|
132
|
+
string marketCap = 11;
|
|
133
|
+
string portfolioId = 12;
|
|
134
|
+
string createdAt = 13;
|
|
135
|
+
string updatedAt = 14;
|
|
136
|
+
repeated PortfolioCoinChartData chartData = 15;
|
|
137
|
+
repeated TransactionDto transactions = 16;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message PortfolioCoinChartData{
|
|
141
|
+
string price = 2;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message SetMainPortfolioResponse {
|
|
145
|
+
ResponseStatus status = 1;
|
|
146
|
+
PortfolioDto data = 2;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message RenamePortfolioRequest {
|
|
150
|
+
string id = 1;
|
|
151
|
+
string name = 2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message RenamePortfolioResponse {
|
|
155
|
+
ResponseStatus status = 1;
|
|
156
|
+
EmptyResponse data = 2;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message ResetPortfolioResponse {
|
|
160
|
+
ResponseStatus status = 1;
|
|
161
|
+
EmptyResponse data = 2;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
message RemovePortfolioResponse {
|
|
165
|
+
ResponseStatus status = 1;
|
|
166
|
+
EmptyResponse data = 2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
message AddCoinListRequest {
|
|
170
|
+
string portfolioId = 1;
|
|
171
|
+
repeated string coinIds = 2;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message AddCoinListResponse {
|
|
175
|
+
ResponseStatus status = 1;
|
|
176
|
+
PortfolioBundleDto data = 2;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message PortfolioWithCoinIdResponse {
|
|
180
|
+
ResponseStatus status = 1;
|
|
181
|
+
PortfolioBundleDto data = 2;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
message DefaultCurrencyResponse {
|
|
185
|
+
ResponseStatus status = 1;
|
|
186
|
+
CurrencyDto data = 2;
|
|
187
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.portfolio;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/portfolio/portfolio_messages.proto";
|
|
7
|
+
import "micro/v1/portfolio/portfolio_coin_messages.proto";
|
|
8
|
+
import "micro/v1/portfolio/portfolio_coin_trasaction_messages.proto";
|
|
9
|
+
|
|
10
|
+
service PPortfolioService {
|
|
11
|
+
rpc Store(PortfolioStoreRequest) returns(stream PortfolioStoreResponse) {}
|
|
12
|
+
rpc AddCoin(AddCoinRequest) returns(stream AddCoinResponse) {}
|
|
13
|
+
rpc AddCoinsToPortfolio(AddCoinListRequest) returns(stream AddCoinListResponse) {}
|
|
14
|
+
rpc GetUserPortfolios(EmptyRequest) returns(stream PortfoliosResponse) {}
|
|
15
|
+
rpc GetUserPortfoliosBundle(EmptyRequest) returns(stream PortfoliosBundleResponse) {}
|
|
16
|
+
rpc SetMainPortfolio(ByIdRequest) returns(stream SetMainPortfolioResponse) {}
|
|
17
|
+
rpc RenamePortfolio(RenamePortfolioRequest) returns(stream RenamePortfolioResponse) {}
|
|
18
|
+
rpc ResetPortfolio(ByIdRequest) returns(stream ResetPortfolioResponse) {}
|
|
19
|
+
rpc RemovePortfolio(ByIdRequest) returns(stream RemovePortfolioResponse) {}
|
|
20
|
+
rpc GetPortfolioWithCoinId(ByIdRequest) returns(stream PortfolioWithCoinIdResponse) {}
|
|
21
|
+
rpc GetDefaultCurrency(EmptyRequest) returns(stream DefaultCurrencyResponse) {}
|
|
22
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
23
|
+
rpc GetPortfolioByCoinId(ByIdRequest) returns(stream PortfolioByCoinIdResponse) {}
|
|
24
|
+
rpc GetPortfolioUser(ByIdRequest) returns(stream PortfolioUserResponse) {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
service PPortfolioCoinService {
|
|
28
|
+
rpc GetPortfolioCoins(PortfolioCoinPaginateRequest) returns(stream PortfolioCoinPaginateResponse) {}
|
|
29
|
+
rpc RemovePortfolioCoin(ByIdRequest) returns(stream RemovePortfolioCoinResponse) {}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
service PPortfolioCoinTransactionService {
|
|
33
|
+
rpc GetPortfolioCoinTransactions(ByIdRequest) returns(stream PortfolioCoinTransactionResponse) {}
|
|
34
|
+
rpc AddPortfolioCoinTransaction(AddPortfolioCoinTransactionRequest) returns(stream AddPortfolioCoinTransactionResponse) {}
|
|
35
|
+
rpc DeleteTransaction(ByIdRequest) returns(stream DeleteTransactionResponse) {}
|
|
36
|
+
rpc UpdateTransaction(UpdateTransactionRequest) returns(stream UpdateTransactionResponse) {}
|
|
37
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.puppeteer;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
service PPuppeteerNewsService {
|
|
8
|
+
rpc ScrapeEconomicCalendarData01(EmptyRequest) returns(ScrapeGeneralResponse) {}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
service PPuppeteerCoinService {
|
|
12
|
+
rpc ScrapeNavbarData02(EmptyRequest) returns( ScrapeGeneralResponse) {}
|
|
13
|
+
rpc ScrapeTopChains03(EmptyRequest) returns( ScrapeGeneralResponse) {} // remove maxrows from micros
|
|
14
|
+
rpc ScrapeAboutData04(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
service PPuppeteerDataService {
|
|
18
|
+
rpc ScrapeTokenUnlocksTable05(EmptyRequest) returns( ScrapeGeneralResponse) {}
|
|
19
|
+
rpc ScrapeAndSaveTokenDetails06(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
20
|
+
//rpc ScrapeTokenUnlocksTable07(EmptyRequest) returns( ScrapeGeneralResponse) {}
|
|
21
|
+
rpc ScrapeDominanceValue08(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
22
|
+
rpc ScrapeCryptoExchangesTableData09(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
23
|
+
rpc ScrapeDecentralizedExchangesTableData10(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
24
|
+
rpc ScrapeExchangesAboutData11(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
25
|
+
rpc ScrapeGenericInformationHeader12(EmptyRequest) returns( ScrapeGeneralResponse) {}
|
|
26
|
+
rpc ScrapeMVRVZScore13(ScrapeStringRequest) returns( ScrapeGeneralResponse) {}
|
|
27
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.user;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/user/authorization_messages.proto";
|
|
7
|
+
import "micro/v1/user/user_messages.proto";
|
|
8
|
+
|
|
9
|
+
message AccessTokenDto {
|
|
10
|
+
string access_token = 1;
|
|
11
|
+
optional UserDto user = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message LoginRequest {
|
|
15
|
+
string email = 1;
|
|
16
|
+
string password = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GoogleRequest {
|
|
20
|
+
string email = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message LoginResponse {
|
|
24
|
+
ResponseStatus status = 1;
|
|
25
|
+
AccessTokenDto data = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message RegisterRequest {
|
|
29
|
+
string email = 1;
|
|
30
|
+
string password = 2;
|
|
31
|
+
string password_confirmation = 3;
|
|
32
|
+
optional string firstname = 4;
|
|
33
|
+
optional string lastname = 5;
|
|
34
|
+
optional string beta_code = 6;
|
|
35
|
+
optional string language = 7;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message RegisterResponse {
|
|
39
|
+
ResponseStatus status = 1;
|
|
40
|
+
AccessTokenDto data = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message TfaRequest {
|
|
44
|
+
string code = 1;
|
|
45
|
+
string hash = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message TfaResponse {
|
|
49
|
+
ResponseStatus status = 1;
|
|
50
|
+
AccessTokenDto data = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message LostPasswordStartRequest { string email = 1; optional string language = 2; }
|
|
54
|
+
|
|
55
|
+
message LostPasswordStartResponse { ResponseStatus status = 1; }
|
|
56
|
+
|
|
57
|
+
message LostPasswordHashCheckRequest { string hash = 1; }
|
|
58
|
+
|
|
59
|
+
message LostPasswordHashCheckResponse { ResponseStatus status = 1; }
|
|
60
|
+
|
|
61
|
+
message LostPasswordChangePasswordRequest {
|
|
62
|
+
string password = 1;
|
|
63
|
+
string password_confirmation = 2;
|
|
64
|
+
string hash = 3;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message LostPasswordChangePasswordResponse { ResponseStatus status = 1; }
|
|
68
|
+
|
|
69
|
+
message UserVerificationRequest { string hash = 1; }
|
|
70
|
+
|
|
71
|
+
message UserVerificationResponse { ResponseStatus status = 1; }
|
|
72
|
+
|
|
73
|
+
message VerifyTokenRequest { string token = 1; }
|
|
74
|
+
|
|
75
|
+
message VerifyTokenResponse {
|
|
76
|
+
ResponseStatus status = 1;
|
|
77
|
+
ValidationDto data = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message ValidationDto { bool isValid = 1; }
|
|
81
|
+
|
|
82
|
+
message RemoveUserDataRequest {
|
|
83
|
+
string password = 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message ResendVerificationEmailRequest {
|
|
87
|
+
string email = 1;
|
|
88
|
+
optional string language = 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message ResendVerificationEmailResponse { ResponseStatus status = 1; }
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.user;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message PermissionDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string title = 2;
|
|
10
|
+
string description = 3;
|
|
11
|
+
|
|
12
|
+
string created_at = 4;
|
|
13
|
+
optional string updated_at = 5;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message PermissionSingleResponse {
|
|
17
|
+
ResponseStatus status = 1;
|
|
18
|
+
PermissionDto data = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message PermissionPaginationResponse {
|
|
22
|
+
ResponseStatus status = 1;
|
|
23
|
+
PaginationMetaResult pagination = 2;
|
|
24
|
+
repeated PermissionDto data = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message RoleDto {
|
|
28
|
+
string id = 1;
|
|
29
|
+
string key = 2;
|
|
30
|
+
string description = 3;
|
|
31
|
+
repeated PermissionDto permissions = 4;
|
|
32
|
+
string created_at = 5;
|
|
33
|
+
optional string updated_at = 6;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message RoleSingleResponse {
|
|
37
|
+
ResponseStatus status = 1;
|
|
38
|
+
RoleDto data = 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message RolePaginationResponse {
|
|
42
|
+
ResponseStatus status = 1;
|
|
43
|
+
PaginationMetaResult pagination = 2;
|
|
44
|
+
repeated RoleDto data = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message RoleAdminStoreRequest {
|
|
48
|
+
string title = 1;
|
|
49
|
+
string description = 2;
|
|
50
|
+
repeated PermissionDto permissions = 3;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message RoleAdminUpdateRequest {
|
|
54
|
+
string id = 1;
|
|
55
|
+
string title = 2;
|
|
56
|
+
string description = 3;
|
|
57
|
+
repeated PermissionDto permissions = 4;
|
|
58
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.user;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/user/authorization_messages.proto";
|
|
7
|
+
import "micro/v1/user/user_messages.proto";
|
|
8
|
+
import "micro/v1/user/auth_messages.proto";
|
|
9
|
+
import "micro/v1/user/site_settings_messages.proto";
|
|
10
|
+
|
|
11
|
+
service PAuthService {
|
|
12
|
+
rpc Login(LoginRequest) returns(stream LoginResponse) {}
|
|
13
|
+
|
|
14
|
+
rpc Register(RegisterRequest) returns(stream RegisterResponse) {}
|
|
15
|
+
rpc VerifyToken(VerifyTokenRequest) returns(stream VerifyTokenResponse) {}
|
|
16
|
+
|
|
17
|
+
rpc Tfa(TfaRequest) returns(stream TfaResponse) {}
|
|
18
|
+
|
|
19
|
+
rpc LostPasswordStart(LostPasswordStartRequest) returns(stream LostPasswordStartResponse) {}
|
|
20
|
+
rpc LostPasswordCheckHash(LostPasswordHashCheckRequest) returns(stream LostPasswordHashCheckResponse) {}
|
|
21
|
+
rpc LostPasswordChangePassword(LostPasswordChangePasswordRequest) returns(stream LostPasswordChangePasswordResponse) {}
|
|
22
|
+
rpc UserVerification(UserVerificationRequest) returns(stream UserVerificationResponse) {}
|
|
23
|
+
|
|
24
|
+
rpc Remove(RemoveUserDataRequest) returns(stream EmptyResponse) {}
|
|
25
|
+
rpc RemoveUserData(RemoveUserDataRequest) returns(stream EmptyResponse) {}
|
|
26
|
+
rpc ResendVerificationEmail(ResendVerificationEmailRequest) returns(stream ResendVerificationEmailResponse) {}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
service PUserService {
|
|
30
|
+
rpc Me(EmptyRequest) returns(stream UserSingleResponse) {}
|
|
31
|
+
rpc Update(UserUpdateRequest) returns(stream UserSingleResponse) {}
|
|
32
|
+
rpc Contact(ContactRequest) returns(stream ContactResponse) {}
|
|
33
|
+
rpc PaginateContact(PaginateRequest) returns(stream ContactPaginationResponse) {}
|
|
34
|
+
rpc UpdatePassword(UpdatePasswordRequest) returns(stream EmptyResponse) {}
|
|
35
|
+
rpc PublicPreview(ByIdRequest) returns(stream PublicUserPreviewResponse) {}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
service PRoleService {
|
|
39
|
+
rpc Read(ByIdRequest) returns(stream UserSingleResponse) {}
|
|
40
|
+
rpc Paginate(PaginateRequest) returns(stream UserPaginationResponse) {}
|
|
41
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream UserPaginationResponse) {}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
service PSiteSettingsService {
|
|
45
|
+
rpc Read(EmptyRequest) returns(stream SiteSettingsResponse) {}
|
|
46
|
+
rpc Update(SiteSettingsRequest) returns(stream SiteSettingsResponse) {}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
service PUserGoogleService {
|
|
50
|
+
rpc Google(GoogleRequest) returns(stream LoginResponse) {}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
service PUserExistService {
|
|
54
|
+
rpc CheckUserExist(ByIdRequest) returns(stream EmptyResponse) {}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Admin
|
|
58
|
+
|
|
59
|
+
service PUserAdminService {
|
|
60
|
+
rpc Read(ByIdRequest) returns(stream UserSingleResponse) {}
|
|
61
|
+
rpc Store(UserAdminStoreRequest) returns(stream UserSingleResponse) {}
|
|
62
|
+
rpc Update(UserUpdateRequest) returns(stream UserSingleResponse) {}
|
|
63
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
64
|
+
rpc Paginate(PaginateRequest) returns(stream UserPaginationResponse) {}
|
|
65
|
+
rpc PaginateDate(PaginateRequest) returns(stream UserPaginationResponse) {}
|
|
66
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream UserPaginationResponse) {}
|
|
67
|
+
rpc Preview(ByIdRequest) returns(stream PreviewResponse) {}
|
|
68
|
+
rpc UpdateUser(UserUpdateRequest) returns(stream UserSingleResponse) {}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
service PRoleAdminService {
|
|
72
|
+
rpc Read(ByIdRequest) returns(stream RoleSingleResponse) {}
|
|
73
|
+
rpc Store(RoleAdminStoreRequest) returns(stream RoleSingleResponse) {}
|
|
74
|
+
rpc Update(RoleAdminUpdateRequest) returns(stream RoleSingleResponse) {}
|
|
75
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
76
|
+
rpc Paginate(PaginateRequest) returns(stream RolePaginationResponse) {}
|
|
77
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream RolePaginationResponse) {}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
service PBetaCodeAdminService {
|
|
81
|
+
rpc Store(BetaCodeStoreRequest) returns(stream EmptyResponse) {}
|
|
82
|
+
rpc Read(ByIdRequest) returns(stream BetaCodeSingleResponse) {}
|
|
83
|
+
rpc Update(BetaCodeUpdateRequest) returns(stream EmptyResponse) {}
|
|
84
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
85
|
+
rpc Paginate(PaginateRequest) returns(stream BetaCodePaginateResponse) {}
|
|
86
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.user;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/user/authorization_messages.proto";
|
|
7
|
+
|
|
8
|
+
message SiteSettingsDto { AppModeEnum app_mode = 1; }
|
|
9
|
+
|
|
10
|
+
enum AppModeEnum { live = 0; beta = 1; maintenance = 2; }
|
|
11
|
+
|
|
12
|
+
// TODO This isn't active yet. In future we must be able to
|
|
13
|
+
// update site settings in admin panel.
|
|
14
|
+
message SiteSettingsRequest { AppModeEnum app_mode = 1; }
|
|
15
|
+
|
|
16
|
+
message SiteSettingsResponse {
|
|
17
|
+
ResponseStatus status = 1;
|
|
18
|
+
SiteSettingsDto data = 2;
|
|
19
|
+
}
|