jr-common-micro 1.0.4 → 1.0.6
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,148 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.news;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/news/news_messages.proto";
|
|
7
|
+
import "micro/v1/news/sundown_messages.proto";
|
|
8
|
+
import "micro/v1/news/blog_messages.proto";
|
|
9
|
+
import "micro/v1/news/calendar_messages.proto";
|
|
10
|
+
import "micro/v1/news/economic_calendar_messages.proto";
|
|
11
|
+
import "micro/v1/news/app_version_message.proto";
|
|
12
|
+
import "micro/v1/news/jr_blog_messages.proto";
|
|
13
|
+
|
|
14
|
+
// USER ---------
|
|
15
|
+
service PSundownService {
|
|
16
|
+
rpc Read(ByIdRequest) returns(stream SundownSingleResponse) {}
|
|
17
|
+
rpc Paginate(PaginateRequest) returns(stream SundownPaginationResponse) {}
|
|
18
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream SundownPaginationResponse) {}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
service PNewsService {
|
|
22
|
+
rpc Read(ByIdRequest) returns(stream NewsSingleResponse) {}
|
|
23
|
+
rpc Paginate(PaginateRequest) returns(stream NewsPaginationResponse) {}
|
|
24
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream NewsPaginationResponse) {}
|
|
25
|
+
rpc ReadAllByCoin(PaginateRequest) returns(stream NewsPaginationResponse) {}
|
|
26
|
+
rpc ReadCategories(EmptyRequest) returns(stream NewsReadCategories) {}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
service PBlogService {
|
|
30
|
+
rpc Read(ByIdRequest) returns(stream BlogSingleResponse) {}
|
|
31
|
+
rpc Paginate(PaginateRequest) returns(stream BlogPaginationResponse) {}
|
|
32
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream BlogPaginationResponse) {}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ADMIN ---------
|
|
36
|
+
|
|
37
|
+
// service PSundownAdminService {
|
|
38
|
+
// rpc Store(SundownStoreRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
39
|
+
// rpc StoreApi(ByIdRequest) returns(stream SundownSingleAdminResponse) {}
|
|
40
|
+
// rpc Read(ByIdRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
41
|
+
// rpc ReadApi(ByIdRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
42
|
+
// rpc Update(SundownUpdateRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
43
|
+
// rpc Remove(ByIdRequest) returns(stream EmptyResponse) {} //
|
|
44
|
+
// rpc Publish(ByIdRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
45
|
+
// rpc UnPublish(ByIdRequest) returns(stream SundownSingleAdminResponse) {} //
|
|
46
|
+
// rpc Paginate(PaginateRequest) returns(stream SundownPaginationAdminResponse) {} //
|
|
47
|
+
// rpc PaginateApi(PaginateRequest) returns(stream SundownPaginationAdminResponse) {} //
|
|
48
|
+
// rpc PaginateFrom(PaginateFromRequest) returns(stream SundownPaginationAdminResponse) {}
|
|
49
|
+
// }
|
|
50
|
+
|
|
51
|
+
service PNewsAdminService {
|
|
52
|
+
rpc Store(NewsStoreRequest) returns(stream NewsSingleAdminResponse) {}
|
|
53
|
+
// rpc StoreApi(ByIdRequest) returns(stream NewsSingleAdminResponse) {}
|
|
54
|
+
rpc Read(ReadRequest) returns(stream NewsSingleAdminResponse) {}
|
|
55
|
+
// rpc ReadApi(ByIdRequest) returns(stream NewsSingleAdminResponse) {}
|
|
56
|
+
rpc Update(NewsUpdateRequest) returns(stream NewsSingleAdminResponse) {}
|
|
57
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
58
|
+
rpc Publish(NewsPublishRequest) returns(stream EmptyResponse) {} //
|
|
59
|
+
rpc UnPublish(ByIdRequest) returns(stream NewsSingleAdminResponse) {} //
|
|
60
|
+
rpc Paginate(NewsAdminPaginateRequest) returns(stream NewsPaginationAdminResponse) {}
|
|
61
|
+
// rpc PaginateApi(PaginateRequest) returns(stream NewsPaginationAdminResponse) {}
|
|
62
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream NewsPaginationAdminResponse) {}
|
|
63
|
+
rpc ReadSlots(EmptyRequest) returns(stream NewsReadSlots) {}
|
|
64
|
+
rpc ReadCategories(EmptyRequest) returns(stream NewsReadCategories) {}
|
|
65
|
+
rpc Translate(TranslateRequest) returns(stream NewsSingleAdminResponse) {}
|
|
66
|
+
rpc ReadCoins(EmptyRequest) returns(stream NewsReadCoins) {}
|
|
67
|
+
rpc OnlyTranslate(OnlyTranslateRequest) returns(stream OnlyTranslateResponse) {}
|
|
68
|
+
rpc PublishBack(ByIdRequest) returns(stream NewsSingleAdminResponse) {}
|
|
69
|
+
rpc PaginateDate(PaginateRequest) returns(stream NewsPaginateDateAdminResponse) {}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
service PBlogAdminService {
|
|
73
|
+
rpc Read(ByIdRequest) returns(stream BlogSingleAdminResponse) {}
|
|
74
|
+
rpc ReadApi(ByIdRequest) returns(stream BlogSingleAdminResponse) {}
|
|
75
|
+
rpc Update(BlogUpdateRequest) returns(stream BlogSingleAdminResponse) {}
|
|
76
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
77
|
+
rpc Publish(BlogPublishRequest) returns(stream BlogSingleAdminResponse) {} //
|
|
78
|
+
rpc Archive(ByIdRequest) returns(stream BlogSingleAdminResponse) {} //
|
|
79
|
+
rpc Paginate(PaginateRequest) returns(stream BlogPaginationAdminResponse) {}
|
|
80
|
+
rpc PaginateApi(PaginateRequest) returns(stream BlogPaginationAdminResponse) {}
|
|
81
|
+
rpc PaginateFrom(PaginateFromRequest) returns(stream BlogPaginationAdminResponse) {}
|
|
82
|
+
rpc Advise(ByIdRequest) returns(stream BlogSingleAdminResponse) {}
|
|
83
|
+
rpc ReadSlots(EmptyRequest) returns(stream BlogReadSlots) {}
|
|
84
|
+
rpc ReadCategories(EmptyRequest) returns(stream BlogReadCategories) {}
|
|
85
|
+
rpc PublishBack(ByIdRequest) returns(stream BlogSingleAdminResponse) {}
|
|
86
|
+
rpc PaginateDate(PaginateRequest) returns(stream BlogPaginateDateAdminResponse) {}
|
|
87
|
+
rpc RemoveDraft(ByIdRequest) returns(stream EmptyResponse) {}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
service PCalendarService {
|
|
91
|
+
rpc StoreApi(CalendarStoreRequest) returns(stream EmptyResponse) {}
|
|
92
|
+
rpc Paginate(PaginateRequest) returns(stream CalendarPaginationResponse) {}
|
|
93
|
+
rpc Read(ByIdRequest) returns(stream CalendarSingleResponse) {}
|
|
94
|
+
rpc PaginateDate(PaginateRequest) returns(stream CalendarPaginateDateResponse) {}
|
|
95
|
+
rpc Remove(ByIdRequest) returns(stream EmptyResponse) {}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
service PEconomicCalendarService {
|
|
99
|
+
rpc GetEconomicCalendarData (PaginateRequest) returns (stream EconomicCalendarResponse) {}
|
|
100
|
+
rpc StoreEconomicCalendarData (StoreEconomicCalendarRequest) returns (stream EmptyResponse) {}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
service PAppVersionService {
|
|
104
|
+
rpc GetAppVersion(EmptyRequest) returns(stream AppVersionResponse) {}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
service PAppVersionAdminService {
|
|
108
|
+
rpc StoreAppVersion(AddAppVersionRequest) returns(stream EmptyResponse) {}
|
|
109
|
+
rpc RemoveAppVersion(ByIdRequest) returns(stream EmptyResponse) {}
|
|
110
|
+
rpc GetAllAppVersions(EmptyRequest) returns(stream AppVersionListResponse) {}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
service PJrBlogAdminService {
|
|
114
|
+
rpc list(JrBlogListRequest) returns (JrBlogListResponse);
|
|
115
|
+
rpc read(ByIdRequest) returns (JrBlogSingleResponse);
|
|
116
|
+
rpc create(JrBlogCreateRequest) returns (JrBlogSingleResponse);
|
|
117
|
+
rpc publish(JrBlogPublishRequest) returns (JrBlogSingleResponse);
|
|
118
|
+
rpc archive(ByIdRequest) returns (JrBlogSingleResponse);
|
|
119
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
120
|
+
rpc createCategory(JrBlogCategoryCreateRequest) returns (JrBlogCategoryResponse);
|
|
121
|
+
rpc removeCategory(ByIdRequest) returns (EmptyResponse);
|
|
122
|
+
rpc createSlot(JrBlogSlotCreateRequest) returns (JrBlogSlotResponse);
|
|
123
|
+
rpc removeSlot(ByIdRequest) returns (EmptyResponse);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
service PJrBlogEditorService {
|
|
127
|
+
rpc list(JrBlogListRequest) returns (JrBlogListResponse);
|
|
128
|
+
rpc read(ByIdRequest) returns (JrBlogSingleResponse);
|
|
129
|
+
rpc create(JrBlogCreateRequest) returns (JrBlogSingleResponse);
|
|
130
|
+
rpc edit(JrBlogEditRequest) returns (JrBlogSingleResponse);
|
|
131
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
132
|
+
rpc publish(JrBlogPublishRequest) returns (JrBlogSingleResponse);
|
|
133
|
+
rpc archive(ByIdRequest) returns (JrBlogSingleResponse);
|
|
134
|
+
rpc checkSeo(CheckSeoRequest) returns (CheckSeoResponse);
|
|
135
|
+
rpc generateAiContent(GenerateAiContentRequest) returns (GenerateAiContentResponse);
|
|
136
|
+
rpc generateAiContentOnly(GenerateAiContentOnlyRequest) returns (GenerateAiContentOnlyResponse);
|
|
137
|
+
rpc generateAiMetaOnly(GenerateAiMetaOnlyRequest) returns (GenerateAiMetaOnlyResponse);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
service PJrBlogService {
|
|
141
|
+
rpc list(JrBlogListRequest) returns (JrBlogListResponse);
|
|
142
|
+
rpc read(ByIdRequest) returns (JrBlogSingleResponse);
|
|
143
|
+
rpc readBySlug(ByIdRequest) returns (JrBlogSingleResponse);
|
|
144
|
+
rpc readCategories(EmptyRequest) returns (JrBlogReadCategories);
|
|
145
|
+
rpc readSlots(EmptyRequest) returns (JrBlogReadSlots);
|
|
146
|
+
rpc checkSlug(CheckSlugRequest) returns (CheckSlugResponse);
|
|
147
|
+
rpc getSeoRequirements(EmptyRequest) returns (SeoRequirementsResponse);
|
|
148
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.news;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message SundownDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
map<string, string> title = 2;
|
|
10
|
+
map<string, string> content = 3;
|
|
11
|
+
string date = 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message SundownSingleResponse {
|
|
15
|
+
ResponseStatus status = 1;
|
|
16
|
+
SundownDto data = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message SundownPaginationResponse {
|
|
20
|
+
ResponseStatus status = 1;
|
|
21
|
+
PaginationMetaResult pagination = 2;
|
|
22
|
+
repeated SundownDto data = 3;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message SundownAdminDto {
|
|
26
|
+
string id = 1;
|
|
27
|
+
string api_id = 2;
|
|
28
|
+
map<string, string> title = 3;
|
|
29
|
+
map<string, string> content = 4;
|
|
30
|
+
string date = 5;
|
|
31
|
+
optional string published_at = 6;
|
|
32
|
+
optional string unpublished_at = 7;
|
|
33
|
+
optional string created_at = 8;
|
|
34
|
+
optional string updated_at = 9;
|
|
35
|
+
optional string deleted_at = 10;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message SundownSingleAdminResponse {
|
|
39
|
+
ResponseStatus status = 1;
|
|
40
|
+
SundownAdminDto data = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message SundownPaginationAdminResponse {
|
|
44
|
+
ResponseStatus status = 1;
|
|
45
|
+
PaginationMetaResult pagination = 2;
|
|
46
|
+
repeated SundownAdminDto data = 3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message SundownStoreRequest {
|
|
50
|
+
optional string api_id = 1;
|
|
51
|
+
map<string, string> title = 2;
|
|
52
|
+
map<string, string> content = 3;
|
|
53
|
+
optional string date = 4;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message SundownUpdateRequest {
|
|
57
|
+
string id = 1;
|
|
58
|
+
map<string, string> title = 2;
|
|
59
|
+
map<string, string> content = 3;
|
|
60
|
+
optional string date = 4;
|
|
61
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.notification;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message SendWelcomeRequest {
|
|
8
|
+
string email = 1;
|
|
9
|
+
optional string name = 2;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message SendForgotPasswordRequest {
|
|
13
|
+
string user_id = 1;
|
|
14
|
+
string email = 2;
|
|
15
|
+
string hash = 3;
|
|
16
|
+
string hash_link = 4;
|
|
17
|
+
optional string firstname = 5;
|
|
18
|
+
optional string lastname = 6;
|
|
19
|
+
optional string language = 7;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message SendUserVerificationRequest {
|
|
23
|
+
string user_id = 1;
|
|
24
|
+
string email = 2;
|
|
25
|
+
string hash = 3;
|
|
26
|
+
string hash_link = 4;
|
|
27
|
+
string type = 5;
|
|
28
|
+
optional string language = 6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message SendContactMessageRequest {
|
|
32
|
+
string email = 1;
|
|
33
|
+
string firstName = 2;
|
|
34
|
+
string lastName = 3;
|
|
35
|
+
string subject = 4;
|
|
36
|
+
string message = 5;
|
|
37
|
+
string phone = 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.notification;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message UserPreferencesDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string user_id = 2;
|
|
10
|
+
|
|
11
|
+
bool email = 3;
|
|
12
|
+
bool web_push = 4;
|
|
13
|
+
bool sms = 5;
|
|
14
|
+
bool telegram = 6;
|
|
15
|
+
bool android = 7;
|
|
16
|
+
bool ios = 8;
|
|
17
|
+
|
|
18
|
+
string createdAt = 9;
|
|
19
|
+
string updatedAt = 10;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message GetUserNotificationPreferencesDto {
|
|
23
|
+
string id = 1;
|
|
24
|
+
string user_id = 2;
|
|
25
|
+
bool announcements = 3;
|
|
26
|
+
bool customPriceAlerts = 4;
|
|
27
|
+
bool largeMoverNotifications = 5;
|
|
28
|
+
bool portfolioMovements = 6;
|
|
29
|
+
|
|
30
|
+
string createdAt = 9;
|
|
31
|
+
string updatedAt = 10;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message UserPreferencesResponse {
|
|
35
|
+
ResponseStatus status = 1;
|
|
36
|
+
UserPreferencesDto data = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message NotificationTarget {
|
|
40
|
+
string platform = 1;
|
|
41
|
+
string title = 2;
|
|
42
|
+
string content = 3;
|
|
43
|
+
string target = 4;
|
|
44
|
+
|
|
45
|
+
optional string user_id = 5;
|
|
46
|
+
optional string description = 6;
|
|
47
|
+
optional string image_url = 7;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message NotificationChannel {
|
|
51
|
+
string channel = 1;
|
|
52
|
+
optional string data1 = 2;
|
|
53
|
+
optional string data2 = 3;
|
|
54
|
+
optional string data3 = 4;
|
|
55
|
+
optional string data4 = 5;
|
|
56
|
+
optional string data5 = 6;
|
|
57
|
+
optional string data6 = 7;
|
|
58
|
+
optional float data7 = 8;
|
|
59
|
+
optional float data8 = 9;
|
|
60
|
+
optional float data9 = 10;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
message CreateNotificationRequest {
|
|
64
|
+
string title = 1;
|
|
65
|
+
|
|
66
|
+
optional string description = 2;
|
|
67
|
+
optional string content = 3;
|
|
68
|
+
optional string link = 4;
|
|
69
|
+
optional string image_url = 5;
|
|
70
|
+
optional string start_at = 6;
|
|
71
|
+
|
|
72
|
+
optional NotificationChannel notification_channel = 7;
|
|
73
|
+
repeated NotificationTarget notification_targets = 8;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message UpdateUserPreferencesRequest {
|
|
77
|
+
string id = 1;
|
|
78
|
+
string user_id = 2;
|
|
79
|
+
|
|
80
|
+
bool email = 3;
|
|
81
|
+
bool web_push = 4;
|
|
82
|
+
bool sms = 5;
|
|
83
|
+
bool telegram = 6;
|
|
84
|
+
bool android = 7;
|
|
85
|
+
bool ios = 8;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message AddBrowserTokenRequest {
|
|
89
|
+
string browser_token = 1;
|
|
90
|
+
string ip_address = 2;
|
|
91
|
+
string useragent = 3;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message SaveDeviceTokenRequest {
|
|
95
|
+
string user_id = 1;
|
|
96
|
+
string platform = 2;
|
|
97
|
+
string deviceToken = 3;
|
|
98
|
+
optional string language = 4;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message RemoveDeviceTokenRequest {
|
|
102
|
+
string deviceToken = 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message SaveUserNotificationPreferencesRequest {
|
|
106
|
+
string user_id = 1;
|
|
107
|
+
bool announcements = 2;
|
|
108
|
+
bool customPriceAlerts = 3;
|
|
109
|
+
bool largeMoverNotifications = 4;
|
|
110
|
+
bool portfolioMovements = 5;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message GetUserNotificationPreferencesRequest {
|
|
114
|
+
string user_id = 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message GetUserNotificationPreferencesResponse {
|
|
118
|
+
ResponseStatus status = 1;
|
|
119
|
+
GetUserNotificationPreferencesDto data = 2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message SendTestNotificationRequest {
|
|
123
|
+
string token = 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message SendNotificationRequest {
|
|
127
|
+
string criteria = 1;
|
|
128
|
+
string title = 2;
|
|
129
|
+
message NotificationMessage {
|
|
130
|
+
string en = 1;
|
|
131
|
+
string tr = 2;
|
|
132
|
+
}
|
|
133
|
+
NotificationMessage notificationMessage = 3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message NotificationPaginationDto {
|
|
137
|
+
string id = 1;
|
|
138
|
+
string title = 2;
|
|
139
|
+
string content = 3;
|
|
140
|
+
string description = 4;
|
|
141
|
+
string start_at = 5;
|
|
142
|
+
string created_at = 6;
|
|
143
|
+
int32 total_receiver = 7;
|
|
144
|
+
int32 total_sent = 8;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message NotificationPaginationResponse {
|
|
148
|
+
ResponseStatus status = 1;
|
|
149
|
+
PaginationMetaResult pagination = 2;
|
|
150
|
+
repeated NotificationPaginationDto data = 3;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message SaveMobileNotificationRequest {
|
|
154
|
+
string user_id = 1;
|
|
155
|
+
string notificationType = 2;
|
|
156
|
+
string notificationStatus = 3;
|
|
157
|
+
string notificationTitle = 4;
|
|
158
|
+
string notificationBody = 5;
|
|
159
|
+
string language = 6;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message GetUserMobileNotificationRequest {
|
|
163
|
+
string user_id = 1;
|
|
164
|
+
int32 page = 2;
|
|
165
|
+
int32 pageSize = 3;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message GetUserMobileNotificationSingleResponseDto {
|
|
169
|
+
string id = 1;
|
|
170
|
+
string user_id = 2;
|
|
171
|
+
string notificationType = 3;
|
|
172
|
+
string notificationStatus = 4;
|
|
173
|
+
string notificationTitle = 5;
|
|
174
|
+
string notificationBody = 6;
|
|
175
|
+
string created_at = 7;
|
|
176
|
+
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message GetUserMobileNotificationPaginationResponse {
|
|
180
|
+
ResponseStatus status = 1;
|
|
181
|
+
PaginationMetaResult pagination = 2;
|
|
182
|
+
repeated GetUserMobileNotificationSingleResponseDto data = 3;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
message GetMobileNotificationsResponseDto {
|
|
186
|
+
string id = 1;
|
|
187
|
+
string title = 2;
|
|
188
|
+
string message = 3;
|
|
189
|
+
string language = 4;
|
|
190
|
+
string createdAt = 5;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message GetMobileNotificationsPaginationResponse {
|
|
194
|
+
ResponseStatus status = 1;
|
|
195
|
+
PaginationMetaResult pagination = 2;
|
|
196
|
+
repeated GetMobileNotificationsResponseDto data = 3;
|
|
197
|
+
}
|
|
198
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.notification;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/notification/notification_messages.proto";
|
|
7
|
+
import "micro/v1/notification/mail_messages.proto";
|
|
8
|
+
|
|
9
|
+
service PNotificationService {
|
|
10
|
+
rpc GetUserPreferences(EmptyRequest) returns(stream UserPreferencesResponse) {}
|
|
11
|
+
rpc UpdateUserPreferences(UpdateUserPreferencesRequest) returns(stream UserPreferencesResponse) {}
|
|
12
|
+
rpc CreateNotification(CreateNotificationRequest) returns(stream EmptyResponse) {}
|
|
13
|
+
rpc Paginate(PaginateRequest) returns(stream NotificationPaginationResponse) {}
|
|
14
|
+
rpc AddBrowserToken(AddBrowserTokenRequest) returns(stream EmptyResponse) {}
|
|
15
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
16
|
+
rpc SaveDeviceToken(SaveDeviceTokenRequest) returns(stream EmptyResponse) {}
|
|
17
|
+
rpc RemoveDeviceToken(RemoveDeviceTokenRequest) returns(stream EmptyResponse) {}
|
|
18
|
+
rpc SaveUserNotificationPreferences(SaveUserNotificationPreferencesRequest) returns(stream EmptyResponse) {}
|
|
19
|
+
rpc SendTestNotification(SendTestNotificationRequest) returns(stream EmptyResponse) {}
|
|
20
|
+
rpc SendNotification(SendNotificationRequest) returns(stream EmptyResponse) {}
|
|
21
|
+
rpc GetUserNotificationPreferences(GetUserNotificationPreferencesRequest) returns(stream GetUserNotificationPreferencesResponse) {}
|
|
22
|
+
rpc SaveMobileNotification(SaveMobileNotificationRequest) returns(stream EmptyResponse) {}
|
|
23
|
+
rpc GetUserMobileNotification(GetUserMobileNotificationRequest) returns(stream GetUserMobileNotificationPaginationResponse) {}
|
|
24
|
+
rpc GetMobileNotifications(PaginateRequest) returns(stream GetMobileNotificationsPaginationResponse) {}
|
|
25
|
+
}
|
|
26
|
+
service PNotificationDeleteService {
|
|
27
|
+
rpc DeleteMobileNotification(ByIdRequest) returns(stream EmptyResponse) {}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
service PNotificationMailService {
|
|
31
|
+
rpc SendWelcome(SendWelcomeRequest) returns(stream EmptyResponse) {}
|
|
32
|
+
rpc SendForgotPassword(SendForgotPasswordRequest) returns(stream EmptyResponse) {}
|
|
33
|
+
rpc SendUserVerification(SendUserVerificationRequest) returns(stream EmptyResponse) {}
|
|
34
|
+
rpc SendContactMessage(SendContactMessageRequest) returns (stream EmptyResponse) {}
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
|
|
8
|
+
message PortfolioCoinPaginateRequest{
|
|
9
|
+
PaginateRequest pagination = 1;
|
|
10
|
+
string portfolioId = 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message PortfolioCoinPaginateResponse{
|
|
14
|
+
ResponseStatus status = 1;
|
|
15
|
+
PaginationMetaResult meta = 2;
|
|
16
|
+
repeated PortfolioCoinDto data = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message RemovePortfolioCoinResponse {
|
|
20
|
+
ResponseStatus status = 1;
|
|
21
|
+
EmptyResponse data = 2;
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
|
|
9
|
+
message PortfolioCoinTransactionResponse {
|
|
10
|
+
ResponseStatus status = 1;
|
|
11
|
+
TransactionDto data = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message AddPortfolioCoinTransactionRequest {
|
|
15
|
+
string portfolioCoinId = 1;
|
|
16
|
+
string price = 2;
|
|
17
|
+
string amount = 3;
|
|
18
|
+
string type = 4;
|
|
19
|
+
string timestamp = 5;
|
|
20
|
+
string currencyId = 6;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message AddPortfolioCoinTransactionResponse {
|
|
24
|
+
ResponseStatus status = 1;
|
|
25
|
+
TransactionDto data = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message DeleteTransactionResponse {
|
|
29
|
+
ResponseStatus status = 1;
|
|
30
|
+
EmptyResponse data = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message UpdateTransactionRequest {
|
|
34
|
+
string id = 1;
|
|
35
|
+
string price = 2;
|
|
36
|
+
string amount = 3;
|
|
37
|
+
string timestamp = 5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message UpdateTransactionResponse {
|
|
41
|
+
ResponseStatus status = 1;
|
|
42
|
+
TransactionDto data = 2;
|
|
43
|
+
}
|