protobuf-platform 1.2.319 → 1.2.320
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/config/config.proto +17 -0
- package/config/config_grpc_pb.js +33 -0
- package/config/config_pb.js +662 -0
- package/package.json +1 -1
- package/user/user.proto +14 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +624 -0
package/config/config.proto
CHANGED
|
@@ -14,6 +14,7 @@ service Config {
|
|
|
14
14
|
rpc changeGlobalData(GlobalDataRequest) returns (ConfigStatusResponse);
|
|
15
15
|
//Currency Rates
|
|
16
16
|
rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
|
|
17
|
+
rpc getCurrenciesRates(CurrenciesRatesRequest) returns (CurrenciesRatesResponse);
|
|
17
18
|
//Countries
|
|
18
19
|
rpc getCountriesList(PaginationRequest) returns (CountriesResponse);
|
|
19
20
|
//OpenAI
|
|
@@ -118,6 +119,22 @@ message CurrencyRateRequest {
|
|
|
118
119
|
message CurrencyRateResponse {
|
|
119
120
|
float rate = 1;
|
|
120
121
|
}
|
|
122
|
+
message CurrenciesRatesRequest {
|
|
123
|
+
string environment = 1;
|
|
124
|
+
string customer = 2;
|
|
125
|
+
repeated string currency_from = 3;
|
|
126
|
+
string currency_to = 4;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
message CurrencyRateItem {
|
|
130
|
+
string currency_from = 1;
|
|
131
|
+
string currency_to = 2;
|
|
132
|
+
double rate = 3;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message CurrenciesRatesResponse {
|
|
136
|
+
repeated CurrencyRateItem items = 1;
|
|
137
|
+
}
|
|
121
138
|
//OpenAI
|
|
122
139
|
message PromptRequest {
|
|
123
140
|
string environment = 1;
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -81,6 +81,28 @@ function deserialize_config_CountriesResponse(buffer_arg) {
|
|
|
81
81
|
return config_pb.CountriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function serialize_config_CurrenciesRatesRequest(arg) {
|
|
85
|
+
if (!(arg instanceof config_pb.CurrenciesRatesRequest)) {
|
|
86
|
+
throw new Error('Expected argument of type config.CurrenciesRatesRequest');
|
|
87
|
+
}
|
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function deserialize_config_CurrenciesRatesRequest(buffer_arg) {
|
|
92
|
+
return config_pb.CurrenciesRatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function serialize_config_CurrenciesRatesResponse(arg) {
|
|
96
|
+
if (!(arg instanceof config_pb.CurrenciesRatesResponse)) {
|
|
97
|
+
throw new Error('Expected argument of type config.CurrenciesRatesResponse');
|
|
98
|
+
}
|
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function deserialize_config_CurrenciesRatesResponse(buffer_arg) {
|
|
103
|
+
return config_pb.CurrenciesRatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
function serialize_config_CurrencyRateRequest(arg) {
|
|
85
107
|
if (!(arg instanceof config_pb.CurrencyRateRequest)) {
|
|
86
108
|
throw new Error('Expected argument of type config.CurrencyRateRequest');
|
|
@@ -450,6 +472,17 @@ getCurrencyRate: {
|
|
|
450
472
|
responseSerialize: serialize_config_CurrencyRateResponse,
|
|
451
473
|
responseDeserialize: deserialize_config_CurrencyRateResponse,
|
|
452
474
|
},
|
|
475
|
+
getCurrenciesRates: {
|
|
476
|
+
path: '/config.Config/getCurrenciesRates',
|
|
477
|
+
requestStream: false,
|
|
478
|
+
responseStream: false,
|
|
479
|
+
requestType: config_pb.CurrenciesRatesRequest,
|
|
480
|
+
responseType: config_pb.CurrenciesRatesResponse,
|
|
481
|
+
requestSerialize: serialize_config_CurrenciesRatesRequest,
|
|
482
|
+
requestDeserialize: deserialize_config_CurrenciesRatesRequest,
|
|
483
|
+
responseSerialize: serialize_config_CurrenciesRatesResponse,
|
|
484
|
+
responseDeserialize: deserialize_config_CurrenciesRatesResponse,
|
|
485
|
+
},
|
|
453
486
|
// Countries
|
|
454
487
|
getCountriesList: {
|
|
455
488
|
path: '/config.Config/getCountriesList',
|