protobuf-platform 1.2.112 → 1.2.113

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/cms/cms.proto CHANGED
@@ -78,6 +78,13 @@ service CMS {
78
78
  rpc deleteSingleFooterApplications (GetFooterApplicationsRequest) returns (FooterApplicationsStatusResponse);
79
79
  rpc readListFooterApplications (PaginationRequest) returns (FooterApplicationsItemsResponse);
80
80
  rpc updateFooterApplicationsInBunch(ItemsBunchRequest) returns (FooterApplicationsStatusResponse);
81
+ // Footer: BrandCore
82
+ rpc createSingleFooterBrandCore (stream FooterBrandCoreRequest) returns (FooterBrandCoreResponse);
83
+ rpc updateSingleFooterBrandCore (stream FooterBrandCoreRequest) returns (FooterBrandCoreResponse);
84
+ rpc readSingleFooterBrandCore (GetFooterBrandCoreRequest) returns (FooterBrandCoreResponse);
85
+ rpc deleteSingleFooterBrandCore (GetFooterBrandCoreRequest) returns (FooterBrandCoreStatusResponse);
86
+ rpc readListFooterBrandCore (PaginationRequest) returns (FooterBrandCoreItemsResponse);
87
+ rpc updateFooterBrandCoreInBunch (ItemsBunchRequest) returns (FooterBrandCoreStatusResponse);
81
88
  //Game Widgets
82
89
  rpc createSingleGameWidget(stream GameWidgetRequest) returns (GameWidgetResponse);
83
90
  rpc readSingleGameWidget(GetGameWidgetRequest) returns (GameWidgetResponse);
@@ -690,3 +697,64 @@ message FooterApplicationsStatusResponse {
690
697
  message GetFooterApplicationsRequest {
691
698
  optional int32 id = 1;
692
699
  }
700
+ // Footer: BrandCore (MVP)
701
+ // =============================
702
+
703
+ // Single BrandCore item
704
+ message FooterBrandCoreItem {
705
+ optional int32 id = 1;
706
+ optional string geo = 2; // country code (e.g., "DE", "IT")
707
+ optional string title = 3;
708
+ optional int32 is_active = 4;
709
+
710
+ // Logo (either local filename or CDN URL)
711
+ optional string logo = 5; // local file name (if stored locally)
712
+ optional string logo_cdn = 6; // CDN URL (if uploaded to R2)
713
+
714
+ // Ordered list of footer columns; allowed values: "promos", "games", "pages"
715
+ repeated string columns = 7;
716
+ }
717
+
718
+ // Create/Update payload (no binary here). For update, fields are partial:
719
+ // - is_active: -1 means "do not change"
720
+ // - columns: if present, fully replace the stored list preserving order
721
+ message FooterBrandCoreItemRequest {
722
+ optional int32 id = 1; // required only for update
723
+ optional string geo = 2;
724
+ optional string title = 3;
725
+ optional int32 is_active = 4; // -1 = do not change (update only)
726
+ repeated string columns = 5; // optional; full replacement if provided
727
+ }
728
+
729
+ // File wrapper used to upload a logo image
730
+ message FooterBrandCoreFile {
731
+ optional File file = 1; // uses common File message (filename, type, media)
732
+ }
733
+
734
+ // Stream container: first brandcore_data, then 0..1 brandcore_file (logo)
735
+ message FooterBrandCoreRequest {
736
+ oneof payload {
737
+ FooterBrandCoreItemRequest brandcore_data = 1;
738
+ FooterBrandCoreFile brandcore_file = 2;
739
+ }
740
+ }
741
+
742
+ // Responses
743
+ message FooterBrandCoreResponse {
744
+ FooterBrandCoreItem data = 1;
745
+ }
746
+
747
+ message FooterBrandCoreItemsResponse {
748
+ repeated FooterBrandCoreItem items = 1;
749
+ optional int32 total_items = 2;
750
+ optional int32 total_pages = 3;
751
+ }
752
+
753
+ message FooterBrandCoreStatusResponse {
754
+ optional string status = 1; // e.g., "OK"
755
+ }
756
+
757
+ // Read-one request
758
+ message GetFooterBrandCoreRequest {
759
+ optional int32 id = 1;
760
+ }
@@ -169,6 +169,50 @@ function deserialize_cms_FooterApplicationsStatusResponse(buffer_arg) {
169
169
  return cms_pb.FooterApplicationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
170
  }
171
171
 
172
+ function serialize_cms_FooterBrandCoreItemsResponse(arg) {
173
+ if (!(arg instanceof cms_pb.FooterBrandCoreItemsResponse)) {
174
+ throw new Error('Expected argument of type cms.FooterBrandCoreItemsResponse');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_cms_FooterBrandCoreItemsResponse(buffer_arg) {
180
+ return cms_pb.FooterBrandCoreItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
183
+ function serialize_cms_FooterBrandCoreRequest(arg) {
184
+ if (!(arg instanceof cms_pb.FooterBrandCoreRequest)) {
185
+ throw new Error('Expected argument of type cms.FooterBrandCoreRequest');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_cms_FooterBrandCoreRequest(buffer_arg) {
191
+ return cms_pb.FooterBrandCoreRequest.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
194
+ function serialize_cms_FooterBrandCoreResponse(arg) {
195
+ if (!(arg instanceof cms_pb.FooterBrandCoreResponse)) {
196
+ throw new Error('Expected argument of type cms.FooterBrandCoreResponse');
197
+ }
198
+ return Buffer.from(arg.serializeBinary());
199
+ }
200
+
201
+ function deserialize_cms_FooterBrandCoreResponse(buffer_arg) {
202
+ return cms_pb.FooterBrandCoreResponse.deserializeBinary(new Uint8Array(buffer_arg));
203
+ }
204
+
205
+ function serialize_cms_FooterBrandCoreStatusResponse(arg) {
206
+ if (!(arg instanceof cms_pb.FooterBrandCoreStatusResponse)) {
207
+ throw new Error('Expected argument of type cms.FooterBrandCoreStatusResponse');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_cms_FooterBrandCoreStatusResponse(buffer_arg) {
213
+ return cms_pb.FooterBrandCoreStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
172
216
  function serialize_cms_FooterMainTextItemRequest(arg) {
173
217
  if (!(arg instanceof cms_pb.FooterMainTextItemRequest)) {
174
218
  throw new Error('Expected argument of type cms.FooterMainTextItemRequest');
@@ -422,6 +466,17 @@ function deserialize_cms_GetFooterApplicationsRequest(buffer_arg) {
422
466
  return cms_pb.GetFooterApplicationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
423
467
  }
424
468
 
469
+ function serialize_cms_GetFooterBrandCoreRequest(arg) {
470
+ if (!(arg instanceof cms_pb.GetFooterBrandCoreRequest)) {
471
+ throw new Error('Expected argument of type cms.GetFooterBrandCoreRequest');
472
+ }
473
+ return Buffer.from(arg.serializeBinary());
474
+ }
475
+
476
+ function deserialize_cms_GetFooterBrandCoreRequest(buffer_arg) {
477
+ return cms_pb.GetFooterBrandCoreRequest.deserializeBinary(new Uint8Array(buffer_arg));
478
+ }
479
+
425
480
  function serialize_cms_GetFooterMainTextRequest(arg) {
426
481
  if (!(arg instanceof cms_pb.GetFooterMainTextRequest)) {
427
482
  throw new Error('Expected argument of type cms.GetFooterMainTextRequest');
@@ -1522,6 +1577,73 @@ createSingleFooterApplications: {
1522
1577
  responseSerialize: serialize_cms_FooterApplicationsStatusResponse,
1523
1578
  responseDeserialize: deserialize_cms_FooterApplicationsStatusResponse,
1524
1579
  },
1580
+ // Footer: BrandCore
1581
+ createSingleFooterBrandCore: {
1582
+ path: '/cms.CMS/createSingleFooterBrandCore',
1583
+ requestStream: true,
1584
+ responseStream: false,
1585
+ requestType: cms_pb.FooterBrandCoreRequest,
1586
+ responseType: cms_pb.FooterBrandCoreResponse,
1587
+ requestSerialize: serialize_cms_FooterBrandCoreRequest,
1588
+ requestDeserialize: deserialize_cms_FooterBrandCoreRequest,
1589
+ responseSerialize: serialize_cms_FooterBrandCoreResponse,
1590
+ responseDeserialize: deserialize_cms_FooterBrandCoreResponse,
1591
+ },
1592
+ updateSingleFooterBrandCore: {
1593
+ path: '/cms.CMS/updateSingleFooterBrandCore',
1594
+ requestStream: true,
1595
+ responseStream: false,
1596
+ requestType: cms_pb.FooterBrandCoreRequest,
1597
+ responseType: cms_pb.FooterBrandCoreResponse,
1598
+ requestSerialize: serialize_cms_FooterBrandCoreRequest,
1599
+ requestDeserialize: deserialize_cms_FooterBrandCoreRequest,
1600
+ responseSerialize: serialize_cms_FooterBrandCoreResponse,
1601
+ responseDeserialize: deserialize_cms_FooterBrandCoreResponse,
1602
+ },
1603
+ readSingleFooterBrandCore: {
1604
+ path: '/cms.CMS/readSingleFooterBrandCore',
1605
+ requestStream: false,
1606
+ responseStream: false,
1607
+ requestType: cms_pb.GetFooterBrandCoreRequest,
1608
+ responseType: cms_pb.FooterBrandCoreResponse,
1609
+ requestSerialize: serialize_cms_GetFooterBrandCoreRequest,
1610
+ requestDeserialize: deserialize_cms_GetFooterBrandCoreRequest,
1611
+ responseSerialize: serialize_cms_FooterBrandCoreResponse,
1612
+ responseDeserialize: deserialize_cms_FooterBrandCoreResponse,
1613
+ },
1614
+ deleteSingleFooterBrandCore: {
1615
+ path: '/cms.CMS/deleteSingleFooterBrandCore',
1616
+ requestStream: false,
1617
+ responseStream: false,
1618
+ requestType: cms_pb.GetFooterBrandCoreRequest,
1619
+ responseType: cms_pb.FooterBrandCoreStatusResponse,
1620
+ requestSerialize: serialize_cms_GetFooterBrandCoreRequest,
1621
+ requestDeserialize: deserialize_cms_GetFooterBrandCoreRequest,
1622
+ responseSerialize: serialize_cms_FooterBrandCoreStatusResponse,
1623
+ responseDeserialize: deserialize_cms_FooterBrandCoreStatusResponse,
1624
+ },
1625
+ readListFooterBrandCore: {
1626
+ path: '/cms.CMS/readListFooterBrandCore',
1627
+ requestStream: false,
1628
+ responseStream: false,
1629
+ requestType: cms_pb.PaginationRequest,
1630
+ responseType: cms_pb.FooterBrandCoreItemsResponse,
1631
+ requestSerialize: serialize_cms_PaginationRequest,
1632
+ requestDeserialize: deserialize_cms_PaginationRequest,
1633
+ responseSerialize: serialize_cms_FooterBrandCoreItemsResponse,
1634
+ responseDeserialize: deserialize_cms_FooterBrandCoreItemsResponse,
1635
+ },
1636
+ updateFooterBrandCoreInBunch: {
1637
+ path: '/cms.CMS/updateFooterBrandCoreInBunch',
1638
+ requestStream: false,
1639
+ responseStream: false,
1640
+ requestType: cms_pb.ItemsBunchRequest,
1641
+ responseType: cms_pb.FooterBrandCoreStatusResponse,
1642
+ requestSerialize: serialize_cms_ItemsBunchRequest,
1643
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
1644
+ responseSerialize: serialize_cms_FooterBrandCoreStatusResponse,
1645
+ responseDeserialize: deserialize_cms_FooterBrandCoreStatusResponse,
1646
+ },
1525
1647
  // Game Widgets
1526
1648
  createSingleGameWidget: {
1527
1649
  path: '/cms.CMS/createSingleGameWidget',