protobuf-platform 1.2.391 → 1.2.392

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.
@@ -16,6 +16,8 @@ service Config {
16
16
  rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
17
17
  rpc getCurrenciesRates(CurrenciesRatesRequest) returns (CurrenciesRatesResponse);
18
18
  rpc refreshCurrenciesRates(RefreshCurrenciesRatesRequest) returns (CurrenciesRatesResponse);
19
+ rpc getCurrencyRatesMap(CurrencyRatesMapRequest) returns (CurrencyRatesMapResponse);
20
+ rpc setManualCurrencyRate(SetManualCurrencyRateRequest) returns (CurrencyRateItemResponse);
19
21
  //Countries
20
22
  rpc getCountriesList(PaginationRequest) returns (CountriesResponse);
21
23
  //OpenAI
@@ -123,6 +125,17 @@ message CurrencyRateRequest {
123
125
  }
124
126
  message CurrencyRateResponse {
125
127
  float rate = 1;
128
+ optional string currency_from = 2;
129
+ optional string currency_to = 3;
130
+ optional string base_currency = 4;
131
+ optional string source = 5;
132
+ optional string provider = 6;
133
+ optional string fetched_at = 7;
134
+ optional string updated_at = 8;
135
+ optional string valid_until = 9;
136
+ optional bool is_manual = 10;
137
+ optional string status = 11;
138
+ optional string error_code = 12;
126
139
  }
127
140
  message CurrenciesRatesRequest {
128
141
  string environment = 1;
@@ -145,11 +158,45 @@ message CurrencyRateItem {
145
158
  optional string source = 4;
146
159
  optional string fetched_at = 5;
147
160
  optional string updated_at = 6;
161
+ optional string provider = 7;
162
+ optional string base_currency = 8;
163
+ optional string valid_until = 9;
164
+ optional bool is_manual = 10;
165
+ optional string status = 11;
166
+ optional string error_code = 12;
148
167
  }
149
168
 
150
169
  message CurrenciesRatesResponse {
151
170
  repeated CurrencyRateItem items = 1;
152
171
  }
172
+
173
+ message CurrencyRatesMapRequest {
174
+ string environment = 1;
175
+ string customer = 2;
176
+ optional string base_currency = 3;
177
+ repeated string currency_from = 4;
178
+ optional int32 include_missing = 5;
179
+ }
180
+
181
+ message CurrencyRatesMapResponse {
182
+ string base_currency = 1;
183
+ repeated CurrencyRateItem items = 2;
184
+ }
185
+
186
+ message SetManualCurrencyRateRequest {
187
+ string environment = 1;
188
+ string customer = 2;
189
+ string currency_from = 3;
190
+ optional string currency_to = 4;
191
+ optional string base_currency = 5;
192
+ double rate = 6;
193
+ int32 expires_in_minutes = 7;
194
+ optional string updated_by = 8;
195
+ }
196
+
197
+ message CurrencyRateItemResponse {
198
+ CurrencyRateItem data = 1;
199
+ }
153
200
  //OpenAI
154
201
  message PromptRequest {
155
202
  string environment = 1;
@@ -103,6 +103,17 @@ function deserialize_config_CurrenciesRatesResponse(buffer_arg) {
103
103
  return config_pb.CurrenciesRatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
104
104
  }
105
105
 
106
+ function serialize_config_CurrencyRateItemResponse(arg) {
107
+ if (!(arg instanceof config_pb.CurrencyRateItemResponse)) {
108
+ throw new Error('Expected argument of type config.CurrencyRateItemResponse');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_config_CurrencyRateItemResponse(buffer_arg) {
114
+ return config_pb.CurrencyRateItemResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
106
117
  function serialize_config_CurrencyRateRequest(arg) {
107
118
  if (!(arg instanceof config_pb.CurrencyRateRequest)) {
108
119
  throw new Error('Expected argument of type config.CurrencyRateRequest');
@@ -125,6 +136,28 @@ function deserialize_config_CurrencyRateResponse(buffer_arg) {
125
136
  return config_pb.CurrencyRateResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
137
  }
127
138
 
139
+ function serialize_config_CurrencyRatesMapRequest(arg) {
140
+ if (!(arg instanceof config_pb.CurrencyRatesMapRequest)) {
141
+ throw new Error('Expected argument of type config.CurrencyRatesMapRequest');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_config_CurrencyRatesMapRequest(buffer_arg) {
147
+ return config_pb.CurrencyRatesMapRequest.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_config_CurrencyRatesMapResponse(arg) {
151
+ if (!(arg instanceof config_pb.CurrencyRatesMapResponse)) {
152
+ throw new Error('Expected argument of type config.CurrencyRatesMapResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_config_CurrencyRatesMapResponse(buffer_arg) {
158
+ return config_pb.CurrencyRatesMapResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
128
161
  function serialize_config_ErrorRequest(arg) {
129
162
  if (!(arg instanceof config_pb.ErrorRequest)) {
130
163
  throw new Error('Expected argument of type config.ErrorRequest');
@@ -389,6 +422,17 @@ function deserialize_config_RefreshCurrenciesRatesRequest(buffer_arg) {
389
422
  return config_pb.RefreshCurrenciesRatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
390
423
  }
391
424
 
425
+ function serialize_config_SetManualCurrencyRateRequest(arg) {
426
+ if (!(arg instanceof config_pb.SetManualCurrencyRateRequest)) {
427
+ throw new Error('Expected argument of type config.SetManualCurrencyRateRequest');
428
+ }
429
+ return Buffer.from(arg.serializeBinary());
430
+ }
431
+
432
+ function deserialize_config_SetManualCurrencyRateRequest(buffer_arg) {
433
+ return config_pb.SetManualCurrencyRateRequest.deserializeBinary(new Uint8Array(buffer_arg));
434
+ }
435
+
392
436
  function serialize_config_SettingsRequest(arg) {
393
437
  if (!(arg instanceof config_pb.SettingsRequest)) {
394
438
  throw new Error('Expected argument of type config.SettingsRequest');
@@ -571,6 +615,28 @@ getCurrencyRate: {
571
615
  responseSerialize: serialize_config_CurrenciesRatesResponse,
572
616
  responseDeserialize: deserialize_config_CurrenciesRatesResponse,
573
617
  },
618
+ getCurrencyRatesMap: {
619
+ path: '/config.Config/getCurrencyRatesMap',
620
+ requestStream: false,
621
+ responseStream: false,
622
+ requestType: config_pb.CurrencyRatesMapRequest,
623
+ responseType: config_pb.CurrencyRatesMapResponse,
624
+ requestSerialize: serialize_config_CurrencyRatesMapRequest,
625
+ requestDeserialize: deserialize_config_CurrencyRatesMapRequest,
626
+ responseSerialize: serialize_config_CurrencyRatesMapResponse,
627
+ responseDeserialize: deserialize_config_CurrencyRatesMapResponse,
628
+ },
629
+ setManualCurrencyRate: {
630
+ path: '/config.Config/setManualCurrencyRate',
631
+ requestStream: false,
632
+ responseStream: false,
633
+ requestType: config_pb.SetManualCurrencyRateRequest,
634
+ responseType: config_pb.CurrencyRateItemResponse,
635
+ requestSerialize: serialize_config_SetManualCurrencyRateRequest,
636
+ requestDeserialize: deserialize_config_SetManualCurrencyRateRequest,
637
+ responseSerialize: serialize_config_CurrencyRateItemResponse,
638
+ responseDeserialize: deserialize_config_CurrencyRateItemResponse,
639
+ },
574
640
  // Countries
575
641
  getCountriesList: {
576
642
  path: '/config.Config/getCountriesList',