protobuf-platform 1.2.112 → 1.2.114
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 +72 -0
- package/cms/cms_grpc_pb.js +122 -0
- package/cms/cms_pb.js +2476 -0
- package/package.json +1 -1
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,68 @@ 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;
|
|
707
|
+
optional string title = 3;
|
|
708
|
+
optional int32 is_active = 4;
|
|
709
|
+
optional string logo = 5;
|
|
710
|
+
optional string logo_cdn = 6;
|
|
711
|
+
repeated string columns = 7;
|
|
712
|
+
repeated FooterBrandCoreBrief promos = 8;
|
|
713
|
+
repeated FooterBrandCoreBrief games = 9;
|
|
714
|
+
repeated FooterBrandCoreBrief pages = 10;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
// Create/Update payload (no binary here). For update, fields are partial:
|
|
718
|
+
// - is_active: -1 means "do not change"
|
|
719
|
+
// - columns: if present, fully replace the stored list preserving order
|
|
720
|
+
message FooterBrandCoreItemRequest {
|
|
721
|
+
optional int32 id = 1; // required only for update
|
|
722
|
+
optional string geo = 2;
|
|
723
|
+
optional string title = 3;
|
|
724
|
+
optional int32 is_active = 4; // -1 = do not change (update only)
|
|
725
|
+
repeated string columns = 5; // optional; full replacement if provided
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// File wrapper used to upload a logo image
|
|
729
|
+
message FooterBrandCoreFile {
|
|
730
|
+
optional File file = 1; // uses common File message (filename, type, media)
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
// Stream container: first brandcore_data, then 0..1 brandcore_file (logo)
|
|
734
|
+
message FooterBrandCoreRequest {
|
|
735
|
+
oneof payload {
|
|
736
|
+
FooterBrandCoreItemRequest brandcore_data = 1;
|
|
737
|
+
FooterBrandCoreFile brandcore_file = 2;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
// Responses
|
|
742
|
+
message FooterBrandCoreResponse {
|
|
743
|
+
FooterBrandCoreItem data = 1;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
message FooterBrandCoreItemsResponse {
|
|
747
|
+
repeated FooterBrandCoreItem items = 1;
|
|
748
|
+
optional int32 total_items = 2;
|
|
749
|
+
optional int32 total_pages = 3;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
message FooterBrandCoreStatusResponse {
|
|
753
|
+
optional string status = 1; // e.g., "OK"
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Read-one request
|
|
757
|
+
message GetFooterBrandCoreRequest {
|
|
758
|
+
optional int32 id = 1;
|
|
759
|
+
}
|
|
760
|
+
message FooterBrandCoreBrief {
|
|
761
|
+
optional int32 id = 1;
|
|
762
|
+
optional string title = 2;
|
|
763
|
+
optional string slug = 3;
|
|
764
|
+
}
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -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',
|