protobuf-platform 1.2.281 → 1.2.282

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
@@ -74,6 +74,14 @@ service CMS {
74
74
  rpc readListFooterPartners (PaginationRequest) returns (FooterPartnersItemsResponse);
75
75
  rpc updateFooterPartnersInBunch(ItemsBunchRequest) returns (FooterPartnersStatusResponse);
76
76
  rpc deleteSingleFooterPartnersMedia(DeleteFooterPartnersMediaRequest) returns (FooterPartnersResponse);
77
+ // Footer: Social Networks
78
+ rpc createSingleFooterSocialNetworks (stream FooterSocialNetworksRequest) returns (FooterSocialNetworksResponse);
79
+ rpc readSingleFooterSocialNetworks (GetFooterSocialNetworksRequest) returns (FooterSocialNetworksResponse);
80
+ rpc updateSingleFooterSocialNetworks (stream FooterSocialNetworksRequest) returns (FooterSocialNetworksResponse);
81
+ rpc deleteSingleFooterSocialNetworks (GetFooterSocialNetworksRequest) returns (FooterSocialNetworksStatusResponse);
82
+ rpc readListFooterSocialNetworks (PaginationRequest) returns (FooterSocialNetworksItemsResponse);
83
+ rpc updateFooterSocialNetworksInBunch(ItemsBunchRequest) returns (FooterSocialNetworksStatusResponse);
84
+ rpc deleteSingleFooterSocialNetworksMedia(DeleteFooterSocialNetworksMediaRequest) returns (FooterSocialNetworksResponse);
77
85
  // Footer: MainText
78
86
  rpc createSingleFooterMainText (FooterMainTextItemRequest) returns (FooterMainTextResponse);
79
87
  rpc readSingleFooterMainText (GetFooterMainTextRequest) returns (FooterMainTextResponse);
@@ -677,6 +685,107 @@ message FooterPartnersItemsResponse {
677
685
  optional int32 total_items = 3;
678
686
  }
679
687
 
688
+ // ===== Footer: Social Networks CRUD (files-only uploads) =====
689
+
690
+ /**
691
+ * Stream: first send `social_networks_data` (the entire form),
692
+ * then 0..N `social_networks_file` messages — one file per item (by item_index).
693
+ */
694
+ message FooterSocialNetworksRequest {
695
+ oneof request {
696
+ FooterSocialNetworksItemRequest social_networks_data = 1;
697
+ FooterSocialNetworksFile social_networks_file = 2;
698
+ }
699
+ }
700
+
701
+ /**
702
+ * Form data — contains metadata only, no images.
703
+ */
704
+ message FooterSocialNetworksItemRequest {
705
+ optional int32 id = 1; // used for update
706
+ optional string geo = 2; // ISO, e.g. "CZ"
707
+ optional string title = 3; // internal label for BO
708
+ optional int32 is_active = 4; // 0|1
709
+ repeated FooterSocialNetworksItemMeta items = 5; // list of item metadata
710
+ }
711
+
712
+ /**
713
+ * Metadata for a single item (no image file).
714
+ */
715
+ message FooterSocialNetworksItemMeta {
716
+ optional string href = 1; // external link (optional)
717
+ optional int32 priority = 2; // sorting order (lower = higher)
718
+ optional string alt = 3; // alt text (optional)
719
+ }
720
+
721
+ /**
722
+ * A single uploaded file for a specific item.
723
+ * Multiple files may be streamed — one per item.
724
+ */
725
+ message FooterSocialNetworksFile {
726
+ int32 item_index = 1; // index of item in `items` array (0-based)
727
+ File file = 2; // File message: file_name, file_type, media (chunk)
728
+ }
729
+
730
+ /**
731
+ * Item returned in response with CDN URL.
732
+ */
733
+ message FooterSocialNetworksMediaItem {
734
+ optional string href = 1;
735
+ optional int32 priority = 2;
736
+ optional string alt = 3;
737
+ optional string image_cdn = 4; // final CDN URL after R2 upload
738
+ optional string image = 5; // filename from file system
739
+ optional int32 id = 6; // unique id of media
740
+ }
741
+
742
+ /**
743
+ * Full Social Networks entity.
744
+ */
745
+ message FooterSocialNetworksItem {
746
+ optional int32 id = 1;
747
+ optional string geo = 2;
748
+ optional string title = 3;
749
+ optional int32 is_active = 4;
750
+ repeated FooterSocialNetworksMediaItem items = 5;
751
+ }
752
+
753
+ /**
754
+ * Response wrapper for single Social Networks entity.
755
+ */
756
+ message FooterSocialNetworksResponse {
757
+ FooterSocialNetworksItem data = 1;
758
+ }
759
+
760
+ /**
761
+ * Request to get or delete a specific Social Networks entity.
762
+ */
763
+ message GetFooterSocialNetworksRequest {
764
+ int32 id = 1;
765
+ optional bool admin_side = 2;
766
+ optional int32 media_id = 3;
767
+ }
768
+ message DeleteFooterSocialNetworksMediaRequest {
769
+ int32 id = 1;
770
+ int32 media_id = 2;
771
+ }
772
+
773
+ /**
774
+ * Generic status response for create/update/delete/bunch.
775
+ */
776
+ message FooterSocialNetworksStatusResponse {
777
+ string status = 1;
778
+ }
779
+
780
+ /**
781
+ * Paginated list response for Social Networks entities.
782
+ */
783
+ message FooterSocialNetworksItemsResponse {
784
+ repeated FooterSocialNetworksItem items = 1;
785
+ optional int32 total_pages = 2;
786
+ optional int32 total_items = 3;
787
+ }
788
+
680
789
  // ---------------------------
681
790
  // Footer : MainText
682
791
  // ---------------------------
@@ -114,6 +114,17 @@ function deserialize_cms_DeleteFooterPartnersMediaRequest(buffer_arg) {
114
114
  return cms_pb.DeleteFooterPartnersMediaRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_cms_DeleteFooterSocialNetworksMediaRequest(arg) {
118
+ if (!(arg instanceof cms_pb.DeleteFooterSocialNetworksMediaRequest)) {
119
+ throw new Error('Expected argument of type cms.DeleteFooterSocialNetworksMediaRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_cms_DeleteFooterSocialNetworksMediaRequest(buffer_arg) {
125
+ return cms_pb.DeleteFooterSocialNetworksMediaRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_cms_File(arg) {
118
129
  if (!(arg instanceof cms_pb.File)) {
119
130
  throw new Error('Expected argument of type cms.File');
@@ -378,6 +389,50 @@ function deserialize_cms_FooterPaymentsStatusResponse(buffer_arg) {
378
389
  return cms_pb.FooterPaymentsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
390
  }
380
391
 
392
+ function serialize_cms_FooterSocialNetworksItemsResponse(arg) {
393
+ if (!(arg instanceof cms_pb.FooterSocialNetworksItemsResponse)) {
394
+ throw new Error('Expected argument of type cms.FooterSocialNetworksItemsResponse');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_cms_FooterSocialNetworksItemsResponse(buffer_arg) {
400
+ return cms_pb.FooterSocialNetworksItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
403
+ function serialize_cms_FooterSocialNetworksRequest(arg) {
404
+ if (!(arg instanceof cms_pb.FooterSocialNetworksRequest)) {
405
+ throw new Error('Expected argument of type cms.FooterSocialNetworksRequest');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_cms_FooterSocialNetworksRequest(buffer_arg) {
411
+ return cms_pb.FooterSocialNetworksRequest.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
414
+ function serialize_cms_FooterSocialNetworksResponse(arg) {
415
+ if (!(arg instanceof cms_pb.FooterSocialNetworksResponse)) {
416
+ throw new Error('Expected argument of type cms.FooterSocialNetworksResponse');
417
+ }
418
+ return Buffer.from(arg.serializeBinary());
419
+ }
420
+
421
+ function deserialize_cms_FooterSocialNetworksResponse(buffer_arg) {
422
+ return cms_pb.FooterSocialNetworksResponse.deserializeBinary(new Uint8Array(buffer_arg));
423
+ }
424
+
425
+ function serialize_cms_FooterSocialNetworksStatusResponse(arg) {
426
+ if (!(arg instanceof cms_pb.FooterSocialNetworksStatusResponse)) {
427
+ throw new Error('Expected argument of type cms.FooterSocialNetworksStatusResponse');
428
+ }
429
+ return Buffer.from(arg.serializeBinary());
430
+ }
431
+
432
+ function deserialize_cms_FooterSocialNetworksStatusResponse(buffer_arg) {
433
+ return cms_pb.FooterSocialNetworksStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
434
+ }
435
+
381
436
  function serialize_cms_FooterWidgetItem(arg) {
382
437
  if (!(arg instanceof cms_pb.FooterWidgetItem)) {
383
438
  throw new Error('Expected argument of type cms.FooterWidgetItem');
@@ -554,6 +609,17 @@ function deserialize_cms_GetFooterPaymentsRequest(buffer_arg) {
554
609
  return cms_pb.GetFooterPaymentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
555
610
  }
556
611
 
612
+ function serialize_cms_GetFooterSocialNetworksRequest(arg) {
613
+ if (!(arg instanceof cms_pb.GetFooterSocialNetworksRequest)) {
614
+ throw new Error('Expected argument of type cms.GetFooterSocialNetworksRequest');
615
+ }
616
+ return Buffer.from(arg.serializeBinary());
617
+ }
618
+
619
+ function deserialize_cms_GetFooterSocialNetworksRequest(buffer_arg) {
620
+ return cms_pb.GetFooterSocialNetworksRequest.deserializeBinary(new Uint8Array(buffer_arg));
621
+ }
622
+
557
623
  function serialize_cms_GetFooterWidgetRequest(arg) {
558
624
  if (!(arg instanceof cms_pb.GetFooterWidgetRequest)) {
559
625
  throw new Error('Expected argument of type cms.GetFooterWidgetRequest');
@@ -1772,6 +1838,84 @@ createSingleFooterPartners: {
1772
1838
  responseSerialize: serialize_cms_FooterPartnersResponse,
1773
1839
  responseDeserialize: deserialize_cms_FooterPartnersResponse,
1774
1840
  },
1841
+ // Footer: Social Networks
1842
+ createSingleFooterSocialNetworks: {
1843
+ path: '/cms.CMS/createSingleFooterSocialNetworks',
1844
+ requestStream: true,
1845
+ responseStream: false,
1846
+ requestType: cms_pb.FooterSocialNetworksRequest,
1847
+ responseType: cms_pb.FooterSocialNetworksResponse,
1848
+ requestSerialize: serialize_cms_FooterSocialNetworksRequest,
1849
+ requestDeserialize: deserialize_cms_FooterSocialNetworksRequest,
1850
+ responseSerialize: serialize_cms_FooterSocialNetworksResponse,
1851
+ responseDeserialize: deserialize_cms_FooterSocialNetworksResponse,
1852
+ },
1853
+ readSingleFooterSocialNetworks: {
1854
+ path: '/cms.CMS/readSingleFooterSocialNetworks',
1855
+ requestStream: false,
1856
+ responseStream: false,
1857
+ requestType: cms_pb.GetFooterSocialNetworksRequest,
1858
+ responseType: cms_pb.FooterSocialNetworksResponse,
1859
+ requestSerialize: serialize_cms_GetFooterSocialNetworksRequest,
1860
+ requestDeserialize: deserialize_cms_GetFooterSocialNetworksRequest,
1861
+ responseSerialize: serialize_cms_FooterSocialNetworksResponse,
1862
+ responseDeserialize: deserialize_cms_FooterSocialNetworksResponse,
1863
+ },
1864
+ updateSingleFooterSocialNetworks: {
1865
+ path: '/cms.CMS/updateSingleFooterSocialNetworks',
1866
+ requestStream: true,
1867
+ responseStream: false,
1868
+ requestType: cms_pb.FooterSocialNetworksRequest,
1869
+ responseType: cms_pb.FooterSocialNetworksResponse,
1870
+ requestSerialize: serialize_cms_FooterSocialNetworksRequest,
1871
+ requestDeserialize: deserialize_cms_FooterSocialNetworksRequest,
1872
+ responseSerialize: serialize_cms_FooterSocialNetworksResponse,
1873
+ responseDeserialize: deserialize_cms_FooterSocialNetworksResponse,
1874
+ },
1875
+ deleteSingleFooterSocialNetworks: {
1876
+ path: '/cms.CMS/deleteSingleFooterSocialNetworks',
1877
+ requestStream: false,
1878
+ responseStream: false,
1879
+ requestType: cms_pb.GetFooterSocialNetworksRequest,
1880
+ responseType: cms_pb.FooterSocialNetworksStatusResponse,
1881
+ requestSerialize: serialize_cms_GetFooterSocialNetworksRequest,
1882
+ requestDeserialize: deserialize_cms_GetFooterSocialNetworksRequest,
1883
+ responseSerialize: serialize_cms_FooterSocialNetworksStatusResponse,
1884
+ responseDeserialize: deserialize_cms_FooterSocialNetworksStatusResponse,
1885
+ },
1886
+ readListFooterSocialNetworks: {
1887
+ path: '/cms.CMS/readListFooterSocialNetworks',
1888
+ requestStream: false,
1889
+ responseStream: false,
1890
+ requestType: cms_pb.PaginationRequest,
1891
+ responseType: cms_pb.FooterSocialNetworksItemsResponse,
1892
+ requestSerialize: serialize_cms_PaginationRequest,
1893
+ requestDeserialize: deserialize_cms_PaginationRequest,
1894
+ responseSerialize: serialize_cms_FooterSocialNetworksItemsResponse,
1895
+ responseDeserialize: deserialize_cms_FooterSocialNetworksItemsResponse,
1896
+ },
1897
+ updateFooterSocialNetworksInBunch: {
1898
+ path: '/cms.CMS/updateFooterSocialNetworksInBunch',
1899
+ requestStream: false,
1900
+ responseStream: false,
1901
+ requestType: cms_pb.ItemsBunchRequest,
1902
+ responseType: cms_pb.FooterSocialNetworksStatusResponse,
1903
+ requestSerialize: serialize_cms_ItemsBunchRequest,
1904
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
1905
+ responseSerialize: serialize_cms_FooterSocialNetworksStatusResponse,
1906
+ responseDeserialize: deserialize_cms_FooterSocialNetworksStatusResponse,
1907
+ },
1908
+ deleteSingleFooterSocialNetworksMedia: {
1909
+ path: '/cms.CMS/deleteSingleFooterSocialNetworksMedia',
1910
+ requestStream: false,
1911
+ responseStream: false,
1912
+ requestType: cms_pb.DeleteFooterSocialNetworksMediaRequest,
1913
+ responseType: cms_pb.FooterSocialNetworksResponse,
1914
+ requestSerialize: serialize_cms_DeleteFooterSocialNetworksMediaRequest,
1915
+ requestDeserialize: deserialize_cms_DeleteFooterSocialNetworksMediaRequest,
1916
+ responseSerialize: serialize_cms_FooterSocialNetworksResponse,
1917
+ responseDeserialize: deserialize_cms_FooterSocialNetworksResponse,
1918
+ },
1775
1919
  // Footer: MainText
1776
1920
  createSingleFooterMainText: {
1777
1921
  path: '/cms.CMS/createSingleFooterMainText',