protobuf-platform 1.2.111 → 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 +73 -1
- package/cms/cms_grpc_pb.js +139 -6
- package/cms/cms_pb.js +2285 -52
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
|
@@ -55,7 +55,7 @@ service CMS {
|
|
|
55
55
|
rpc deleteSingleFooterPartners (GetFooterPartnersRequest) returns (FooterPartnersStatusResponse);
|
|
56
56
|
rpc readListFooterPartners (PaginationRequest) returns (FooterPartnersItemsResponse);
|
|
57
57
|
rpc updateFooterPartnersInBunch(ItemsBunchRequest) returns (FooterPartnersStatusResponse);
|
|
58
|
-
rpc deleteSingleFooterPartnersMedia(
|
|
58
|
+
rpc deleteSingleFooterPartnersMedia(DeleteFooterPartnersMediaRequest) returns (FooterPartnersResponse);
|
|
59
59
|
// Footer: MainText
|
|
60
60
|
rpc createSingleFooterMainText (FooterMainTextItemRequest) returns (FooterMainTextResponse);
|
|
61
61
|
rpc readSingleFooterMainText (GetFooterMainTextRequest) returns (FooterMainTextResponse);
|
|
@@ -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);
|
|
@@ -480,6 +487,10 @@ message GetFooterPartnersRequest {
|
|
|
480
487
|
optional bool admin_side = 2;
|
|
481
488
|
optional int32 media_id = 3;
|
|
482
489
|
}
|
|
490
|
+
message DeleteFooterPartnersMediaRequest {
|
|
491
|
+
int32 id = 1;
|
|
492
|
+
int32 media_id = 2;
|
|
493
|
+
}
|
|
483
494
|
|
|
484
495
|
/**
|
|
485
496
|
* Generic status response for create/update/delete/bunch.
|
|
@@ -686,3 +697,64 @@ message FooterApplicationsStatusResponse {
|
|
|
686
697
|
message GetFooterApplicationsRequest {
|
|
687
698
|
optional int32 id = 1;
|
|
688
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
|
+
}
|
package/cms/cms_grpc_pb.js
CHANGED
|
@@ -103,6 +103,17 @@ function deserialize_cms_CommonWidgetRequest(buffer_arg) {
|
|
|
103
103
|
return cms_pb.CommonWidgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
function serialize_cms_DeleteFooterPartnersMediaRequest(arg) {
|
|
107
|
+
if (!(arg instanceof cms_pb.DeleteFooterPartnersMediaRequest)) {
|
|
108
|
+
throw new Error('Expected argument of type cms.DeleteFooterPartnersMediaRequest');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_cms_DeleteFooterPartnersMediaRequest(buffer_arg) {
|
|
114
|
+
return cms_pb.DeleteFooterPartnersMediaRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
function serialize_cms_File(arg) {
|
|
107
118
|
if (!(arg instanceof cms_pb.File)) {
|
|
108
119
|
throw new Error('Expected argument of type cms.File');
|
|
@@ -158,6 +169,50 @@ function deserialize_cms_FooterApplicationsStatusResponse(buffer_arg) {
|
|
|
158
169
|
return cms_pb.FooterApplicationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
170
|
}
|
|
160
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
|
+
|
|
161
216
|
function serialize_cms_FooterMainTextItemRequest(arg) {
|
|
162
217
|
if (!(arg instanceof cms_pb.FooterMainTextItemRequest)) {
|
|
163
218
|
throw new Error('Expected argument of type cms.FooterMainTextItemRequest');
|
|
@@ -411,6 +466,17 @@ function deserialize_cms_GetFooterApplicationsRequest(buffer_arg) {
|
|
|
411
466
|
return cms_pb.GetFooterApplicationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
412
467
|
}
|
|
413
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
|
+
|
|
414
480
|
function serialize_cms_GetFooterMainTextRequest(arg) {
|
|
415
481
|
if (!(arg instanceof cms_pb.GetFooterMainTextRequest)) {
|
|
416
482
|
throw new Error('Expected argument of type cms.GetFooterMainTextRequest');
|
|
@@ -1292,12 +1358,12 @@ createSingleFooterPartners: {
|
|
|
1292
1358
|
path: '/cms.CMS/deleteSingleFooterPartnersMedia',
|
|
1293
1359
|
requestStream: false,
|
|
1294
1360
|
responseStream: false,
|
|
1295
|
-
requestType: cms_pb.
|
|
1296
|
-
responseType: cms_pb.
|
|
1297
|
-
requestSerialize:
|
|
1298
|
-
requestDeserialize:
|
|
1299
|
-
responseSerialize:
|
|
1300
|
-
responseDeserialize:
|
|
1361
|
+
requestType: cms_pb.DeleteFooterPartnersMediaRequest,
|
|
1362
|
+
responseType: cms_pb.FooterPartnersResponse,
|
|
1363
|
+
requestSerialize: serialize_cms_DeleteFooterPartnersMediaRequest,
|
|
1364
|
+
requestDeserialize: deserialize_cms_DeleteFooterPartnersMediaRequest,
|
|
1365
|
+
responseSerialize: serialize_cms_FooterPartnersResponse,
|
|
1366
|
+
responseDeserialize: deserialize_cms_FooterPartnersResponse,
|
|
1301
1367
|
},
|
|
1302
1368
|
// Footer: MainText
|
|
1303
1369
|
createSingleFooterMainText: {
|
|
@@ -1511,6 +1577,73 @@ createSingleFooterApplications: {
|
|
|
1511
1577
|
responseSerialize: serialize_cms_FooterApplicationsStatusResponse,
|
|
1512
1578
|
responseDeserialize: deserialize_cms_FooterApplicationsStatusResponse,
|
|
1513
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
|
+
},
|
|
1514
1647
|
// Game Widgets
|
|
1515
1648
|
createSingleGameWidget: {
|
|
1516
1649
|
path: '/cms.CMS/createSingleGameWidget',
|