protobuf-platform 1.2.393 → 1.2.395
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/bonus/bonus.proto +20 -0
- package/bonus/bonus_grpc_pb.js +34 -0
- package/bonus/bonus_pb.js +946 -0
- package/game/game.proto +51 -0
- package/game/game_grpc_pb.js +100 -0
- package/game/game_pb.js +2454 -0
- package/notification/notification.proto +26 -0
- package/notification/notification_grpc_pb.js +22 -0
- package/notification/notification_pb.js +1274 -28
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ service Notification {
|
|
|
17
17
|
rpc getNotificationAutoTriggers(PaginationRequest) returns (NotificationStringListResponse);
|
|
18
18
|
rpc getNotificationCategories(PaginationRequest) returns (NotificationStringListResponse);
|
|
19
19
|
rpc getNotificationPlaceholders(PaginationRequest) returns (NotificationStringListResponse);
|
|
20
|
+
rpc getNotificationTargetTypes(PaginationRequest) returns (NotificationTargetTypeItemsResponse);
|
|
20
21
|
// === MailTemplates (email) ===
|
|
21
22
|
rpc createSingleMailTemplate(stream MailTemplateChunk) returns (MailTemplateResponse);
|
|
22
23
|
rpc readSingleMailTemplate(GetMailTemplateRequest) returns (MailTemplateResponse);
|
|
@@ -88,6 +89,11 @@ message NotificationItemRequest {
|
|
|
88
89
|
optional string category = 7;
|
|
89
90
|
optional string desktop_image = 8;
|
|
90
91
|
optional string mobile_image = 9;
|
|
92
|
+
optional string target_type = 10;
|
|
93
|
+
optional int32 target_id = 11;
|
|
94
|
+
optional string target_title = 12;
|
|
95
|
+
optional string target_slug = 13;
|
|
96
|
+
optional string button_text = 14;
|
|
91
97
|
}
|
|
92
98
|
message NotificationRequest {
|
|
93
99
|
oneof request {
|
|
@@ -117,6 +123,13 @@ message UserNotificationItem {
|
|
|
117
123
|
optional string desktop_image_cdn = 9;
|
|
118
124
|
optional string mobile_image = 10;
|
|
119
125
|
optional string mobile_image_cdn = 11;
|
|
126
|
+
optional string context = 12; // JSON render context snapshot
|
|
127
|
+
optional string target_type = 13;
|
|
128
|
+
optional int32 target_id = 14;
|
|
129
|
+
optional string target_title = 15;
|
|
130
|
+
optional string target_slug = 16;
|
|
131
|
+
optional string button_text = 17;
|
|
132
|
+
optional string target_provider_slug = 18; // response-only; enriched from game-service
|
|
120
133
|
}
|
|
121
134
|
message UserNotificationItemsResponse {
|
|
122
135
|
repeated UserNotificationItem items = 1;
|
|
@@ -136,6 +149,12 @@ message NotificationItem {
|
|
|
136
149
|
optional string desktop_image_cdn = 10;
|
|
137
150
|
optional string mobile_image = 11;
|
|
138
151
|
optional string mobile_image_cdn = 12;
|
|
152
|
+
optional string target_type = 13;
|
|
153
|
+
optional int32 target_id = 14;
|
|
154
|
+
optional string target_title = 15;
|
|
155
|
+
optional string target_slug = 16;
|
|
156
|
+
optional string button_text = 17;
|
|
157
|
+
optional string target_provider_slug = 18; // response-only; enriched from game-service
|
|
139
158
|
}
|
|
140
159
|
message NotificationResponse {
|
|
141
160
|
NotificationItem data = 1;
|
|
@@ -165,6 +184,13 @@ message NotificationTranslationResponse {
|
|
|
165
184
|
message NotificationStringListResponse {
|
|
166
185
|
repeated string items = 1;
|
|
167
186
|
}
|
|
187
|
+
message NotificationTargetTypeItem {
|
|
188
|
+
string value = 1;
|
|
189
|
+
optional string title = 2;
|
|
190
|
+
}
|
|
191
|
+
message NotificationTargetTypeItemsResponse {
|
|
192
|
+
repeated NotificationTargetTypeItem items = 1;
|
|
193
|
+
}
|
|
168
194
|
message UserNotificationsCountResponse {
|
|
169
195
|
int32 count = 1;
|
|
170
196
|
}
|
|
@@ -246,6 +246,17 @@ function deserialize_notification_NotificationStringListResponse(buffer_arg) {
|
|
|
246
246
|
return notification_pb.NotificationStringListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
function serialize_notification_NotificationTargetTypeItemsResponse(arg) {
|
|
250
|
+
if (!(arg instanceof notification_pb.NotificationTargetTypeItemsResponse)) {
|
|
251
|
+
throw new Error('Expected argument of type notification.NotificationTargetTypeItemsResponse');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_notification_NotificationTargetTypeItemsResponse(buffer_arg) {
|
|
257
|
+
return notification_pb.NotificationTargetTypeItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
249
260
|
function serialize_notification_NotificationTranslationRequest(arg) {
|
|
250
261
|
if (!(arg instanceof notification_pb.NotificationTranslationRequest)) {
|
|
251
262
|
throw new Error('Expected argument of type notification.NotificationTranslationRequest');
|
|
@@ -491,6 +502,17 @@ createSingleNotification: {
|
|
|
491
502
|
responseSerialize: serialize_notification_NotificationStringListResponse,
|
|
492
503
|
responseDeserialize: deserialize_notification_NotificationStringListResponse,
|
|
493
504
|
},
|
|
505
|
+
getNotificationTargetTypes: {
|
|
506
|
+
path: '/notification.Notification/getNotificationTargetTypes',
|
|
507
|
+
requestStream: false,
|
|
508
|
+
responseStream: false,
|
|
509
|
+
requestType: notification_pb.PaginationRequest,
|
|
510
|
+
responseType: notification_pb.NotificationTargetTypeItemsResponse,
|
|
511
|
+
requestSerialize: serialize_notification_PaginationRequest,
|
|
512
|
+
requestDeserialize: deserialize_notification_PaginationRequest,
|
|
513
|
+
responseSerialize: serialize_notification_NotificationTargetTypeItemsResponse,
|
|
514
|
+
responseDeserialize: deserialize_notification_NotificationTargetTypeItemsResponse,
|
|
515
|
+
},
|
|
494
516
|
// === MailTemplates (email) ===
|
|
495
517
|
createSingleMailTemplate: {
|
|
496
518
|
path: '/notification.Notification/createSingleMailTemplate',
|