protobuf-platform 1.2.393 → 1.2.394

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.
@@ -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,12 @@ 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;
120
132
  }
121
133
  message UserNotificationItemsResponse {
122
134
  repeated UserNotificationItem items = 1;
@@ -136,6 +148,11 @@ message NotificationItem {
136
148
  optional string desktop_image_cdn = 10;
137
149
  optional string mobile_image = 11;
138
150
  optional string mobile_image_cdn = 12;
151
+ optional string target_type = 13;
152
+ optional int32 target_id = 14;
153
+ optional string target_title = 15;
154
+ optional string target_slug = 16;
155
+ optional string button_text = 17;
139
156
  }
140
157
  message NotificationResponse {
141
158
  NotificationItem data = 1;
@@ -165,6 +182,13 @@ message NotificationTranslationResponse {
165
182
  message NotificationStringListResponse {
166
183
  repeated string items = 1;
167
184
  }
185
+ message NotificationTargetTypeItem {
186
+ string value = 1;
187
+ optional string title = 2;
188
+ }
189
+ message NotificationTargetTypeItemsResponse {
190
+ repeated NotificationTargetTypeItem items = 1;
191
+ }
168
192
  message UserNotificationsCountResponse {
169
193
  int32 count = 1;
170
194
  }
@@ -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',