jr-common-micro 1.0.3 → 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,228 @@
|
|
|
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 UserDto {
|
|
9
|
+
string id = 1;
|
|
10
|
+
|
|
11
|
+
string email = 2;
|
|
12
|
+
optional string password = 3;
|
|
13
|
+
optional string firstname = 4;
|
|
14
|
+
optional string lastname = 5;
|
|
15
|
+
|
|
16
|
+
TfaSelectionEnum tfa_selection = 6;
|
|
17
|
+
optional string tfa_secret = 7;
|
|
18
|
+
|
|
19
|
+
repeated string roles = 8;
|
|
20
|
+
|
|
21
|
+
// TODO Think about detailed role and permission management.
|
|
22
|
+
// repeated RoleDto roles = 8;
|
|
23
|
+
// repeated PermissionDto permissions = 9;
|
|
24
|
+
|
|
25
|
+
UserProfileDto profile = 9;
|
|
26
|
+
|
|
27
|
+
ActivePassiveEnum status = 10;
|
|
28
|
+
|
|
29
|
+
string created_at = 11;
|
|
30
|
+
optional string updated_at = 12;
|
|
31
|
+
optional string deleted_at = 13;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
enum TfaSelectionEnum { nothing = 0; sms = 1; authenticator = 2; }
|
|
35
|
+
|
|
36
|
+
message UserProfileDto {
|
|
37
|
+
string id = 1;
|
|
38
|
+
string user_id = 2;
|
|
39
|
+
|
|
40
|
+
string country = 3;
|
|
41
|
+
string city = 4;
|
|
42
|
+
|
|
43
|
+
string created_at = 5;
|
|
44
|
+
optional string updated_at = 6;
|
|
45
|
+
optional string deleted_at = 7;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message UserStoreRequest {
|
|
49
|
+
string email = 1;
|
|
50
|
+
string password = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message UpdatePasswordRequest {
|
|
54
|
+
string id = 1;
|
|
55
|
+
string password = 2;
|
|
56
|
+
string new_password = 3;
|
|
57
|
+
string new_password_confirmation = 4;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message UserUpdateRequest {
|
|
61
|
+
string id = 1;
|
|
62
|
+
optional string email = 2;
|
|
63
|
+
optional string password = 3;
|
|
64
|
+
optional string firstname = 4;
|
|
65
|
+
optional string lastname = 5;
|
|
66
|
+
optional string status = 6;
|
|
67
|
+
optional string role = 7;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message UserSingleResponse {
|
|
71
|
+
ResponseStatus status = 1;
|
|
72
|
+
UserDto data = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message UserPaginationResponse {
|
|
76
|
+
ResponseStatus status = 1;
|
|
77
|
+
PaginationMetaResult pagination = 2;
|
|
78
|
+
repeated UserDto data = 3;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message ContactPaginationResponse {
|
|
82
|
+
ResponseStatus status = 1;
|
|
83
|
+
PaginationMetaResult pagination = 2;
|
|
84
|
+
repeated ContactDto data = 3;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/* message UserUpdateRequestWithId {
|
|
89
|
+
string id = 1;
|
|
90
|
+
string email = 2;
|
|
91
|
+
string password = 3;
|
|
92
|
+
string firstname = 4;
|
|
93
|
+
string lastname = 5;
|
|
94
|
+
} */
|
|
95
|
+
|
|
96
|
+
message PreviewDto {
|
|
97
|
+
string id = 1;
|
|
98
|
+
string firstname = 2;
|
|
99
|
+
string lastname = 3;
|
|
100
|
+
string email = 4;
|
|
101
|
+
string register_date = 5;
|
|
102
|
+
string status = 6;
|
|
103
|
+
repeated string roles = 7;
|
|
104
|
+
// TODO Think about detailed role and permission management.
|
|
105
|
+
// repeated RoleDto roles = 7;
|
|
106
|
+
|
|
107
|
+
// phone = 8
|
|
108
|
+
// last login = 9
|
|
109
|
+
// subscription = 10
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message PreviewResponse {
|
|
114
|
+
ResponseStatus status = 1;
|
|
115
|
+
PreviewDto data = 2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message UserAdminStoreRequest {
|
|
119
|
+
string email = 1;
|
|
120
|
+
string password = 2;
|
|
121
|
+
string firstname = 3;
|
|
122
|
+
string lastname = 4;
|
|
123
|
+
|
|
124
|
+
TfaSelectionEnum tfa_selection = 5;
|
|
125
|
+
string tfa_secret = 6;
|
|
126
|
+
|
|
127
|
+
repeated RoleDto roles = 7;
|
|
128
|
+
repeated PermissionDto permissions = 8;
|
|
129
|
+
UserProfileAdminStoreRequest profile = 9;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message UserProfileAdminStoreRequest {
|
|
133
|
+
string email = 1;
|
|
134
|
+
string password = 2;
|
|
135
|
+
string firstname = 3;
|
|
136
|
+
string lastname = 4;
|
|
137
|
+
|
|
138
|
+
TfaSelectionEnum tfa_selection = 5;
|
|
139
|
+
string tfa_secret = 6;
|
|
140
|
+
|
|
141
|
+
repeated RoleDto roles = 7;
|
|
142
|
+
repeated PermissionDto permissions = 8;
|
|
143
|
+
UserProfileDto profile = 9;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
message BetaCodeStoreRequest {
|
|
147
|
+
string code = 1;
|
|
148
|
+
optional string description = 2;
|
|
149
|
+
ActivePassiveEnum status = 3;
|
|
150
|
+
uint32 max_user = 4;
|
|
151
|
+
string until_at = 5;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message BetaCodeDto {
|
|
155
|
+
string id = 1;
|
|
156
|
+
string code = 2;
|
|
157
|
+
optional string description = 3;
|
|
158
|
+
ActivePassiveEnum status = 4;
|
|
159
|
+
uint32 max_user = 5;
|
|
160
|
+
uint32 total_user = 6;
|
|
161
|
+
string until_at = 7;
|
|
162
|
+
string created_at = 8;
|
|
163
|
+
optional string updated_at = 9;
|
|
164
|
+
optional string deleted_at = 10;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message BetaCodeSingleResponse {
|
|
168
|
+
ResponseStatus status = 1;
|
|
169
|
+
BetaCodeDto data = 2;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message BetaCodeUpdateRequest {
|
|
173
|
+
string id = 1;
|
|
174
|
+
string code = 2;
|
|
175
|
+
optional string description = 3;
|
|
176
|
+
ActivePassiveEnum status = 4;
|
|
177
|
+
uint32 max_user = 5;
|
|
178
|
+
string until_at = 6;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message BetaCodePaginateResponse {
|
|
182
|
+
ResponseStatus status = 1;
|
|
183
|
+
PaginationMetaResult pagination = 2;
|
|
184
|
+
repeated BetaCodeDto data = 3;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message ContactRequest {
|
|
188
|
+
string firstname = 1;
|
|
189
|
+
string lastname = 2;
|
|
190
|
+
string email = 3;
|
|
191
|
+
string phone = 4;
|
|
192
|
+
string subject = 5;
|
|
193
|
+
string message = 6;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message ContactResponse {
|
|
197
|
+
ResponseStatus status = 1;
|
|
198
|
+
ContactDto data = 2;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
message ContactDto {
|
|
202
|
+
string id = 1;
|
|
203
|
+
string firstname = 2;
|
|
204
|
+
string lastname = 3;
|
|
205
|
+
string email = 4;
|
|
206
|
+
string phone = 5;
|
|
207
|
+
string subject = 6;
|
|
208
|
+
string message = 7;
|
|
209
|
+
string created_at = 8;
|
|
210
|
+
optional string updated_at = 9;
|
|
211
|
+
optional string deleted_at = 10;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
message removeUserDataRequest {
|
|
215
|
+
string password = 1;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
message PublicUserPreviewDto {
|
|
219
|
+
string id = 1;
|
|
220
|
+
string firstname = 2;
|
|
221
|
+
string lastname = 3;
|
|
222
|
+
string register_date = 4;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
message PublicUserPreviewResponse {
|
|
226
|
+
ResponseStatus status = 1;
|
|
227
|
+
PublicUserPreviewDto data = 2;
|
|
228
|
+
}
|