@arbiwallet/contracts 1.0.86 → 1.0.87

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.
@@ -157,6 +157,27 @@ export interface SetCrmExchangeTextsResponse {
157
157
  items: CrmExchangeTextsItem[];
158
158
  }
159
159
 
160
+ export interface CrmPromocodeTextsItem {
161
+ language: string;
162
+ enterPromocodeText: string;
163
+ promocodeOpenedManagerNotification: string;
164
+ }
165
+
166
+ export interface GetCrmPromocodeTextsRequest {
167
+ }
168
+
169
+ export interface GetCrmPromocodeTextsResponse {
170
+ items: CrmPromocodeTextsItem[];
171
+ }
172
+
173
+ export interface SetCrmPromocodeTextsRequest {
174
+ items: CrmPromocodeTextsItem[];
175
+ }
176
+
177
+ export interface SetCrmPromocodeTextsResponse {
178
+ items: CrmPromocodeTextsItem[];
179
+ }
180
+
160
181
  export interface GetCrmLinksRequest {
161
182
  }
162
183
 
@@ -175,6 +196,44 @@ export interface SetCrmLinksResponse {
175
196
  officesMiniAppUrl: string;
176
197
  }
177
198
 
199
+ export interface CrmExchangeCurrencyItem {
200
+ fromCurrency: string;
201
+ toCurrencies: string[];
202
+ }
203
+
204
+ export interface GetCrmExchangeCurrenciesRequest {
205
+ }
206
+
207
+ export interface GetCrmExchangeCurrenciesResponse {
208
+ items: CrmExchangeCurrencyItem[];
209
+ }
210
+
211
+ export interface AddCrmExchangeCurrencyRequest {
212
+ fromCurrency: string;
213
+ }
214
+
215
+ export interface AddCrmExchangeCurrencyResponse {
216
+ item: CrmExchangeCurrencyItem | undefined;
217
+ }
218
+
219
+ export interface UpdateCrmExchangeCurrencyRequest {
220
+ fromCurrency: string;
221
+ newFromCurrency: string;
222
+ }
223
+
224
+ export interface UpdateCrmExchangeCurrencyResponse {
225
+ item: CrmExchangeCurrencyItem | undefined;
226
+ }
227
+
228
+ export interface SetCrmExchangeCurrencyToCurrenciesRequest {
229
+ fromCurrency: string;
230
+ toCurrencies: string[];
231
+ }
232
+
233
+ export interface SetCrmExchangeCurrencyToCurrenciesResponse {
234
+ item: CrmExchangeCurrencyItem | undefined;
235
+ }
236
+
178
237
  export const TELEGRAM_PACKAGE_NAME = "telegram";
179
238
 
180
239
  export interface TelegramBotServiceClient {
@@ -202,9 +261,23 @@ export interface TelegramBotServiceClient {
202
261
 
203
262
  setCrmExchangeTexts(request: SetCrmExchangeTextsRequest): Observable<SetCrmExchangeTextsResponse>;
204
263
 
264
+ getCrmPromocodeTexts(request: GetCrmPromocodeTextsRequest): Observable<GetCrmPromocodeTextsResponse>;
265
+
266
+ setCrmPromocodeTexts(request: SetCrmPromocodeTextsRequest): Observable<SetCrmPromocodeTextsResponse>;
267
+
205
268
  getCrmLinks(request: GetCrmLinksRequest): Observable<GetCrmLinksResponse>;
206
269
 
207
270
  setCrmLinks(request: SetCrmLinksRequest): Observable<SetCrmLinksResponse>;
271
+
272
+ getCrmExchangeCurrencies(request: GetCrmExchangeCurrenciesRequest): Observable<GetCrmExchangeCurrenciesResponse>;
273
+
274
+ addCrmExchangeCurrency(request: AddCrmExchangeCurrencyRequest): Observable<AddCrmExchangeCurrencyResponse>;
275
+
276
+ updateCrmExchangeCurrency(request: UpdateCrmExchangeCurrencyRequest): Observable<UpdateCrmExchangeCurrencyResponse>;
277
+
278
+ setCrmExchangeCurrencyToCurrencies(
279
+ request: SetCrmExchangeCurrencyToCurrenciesRequest,
280
+ ): Observable<SetCrmExchangeCurrencyToCurrenciesResponse>;
208
281
  }
209
282
 
210
283
  export interface TelegramBotServiceController {
@@ -261,6 +334,14 @@ export interface TelegramBotServiceController {
261
334
  request: SetCrmExchangeTextsRequest,
262
335
  ): Promise<SetCrmExchangeTextsResponse> | Observable<SetCrmExchangeTextsResponse> | SetCrmExchangeTextsResponse;
263
336
 
337
+ getCrmPromocodeTexts(
338
+ request: GetCrmPromocodeTextsRequest,
339
+ ): Promise<GetCrmPromocodeTextsResponse> | Observable<GetCrmPromocodeTextsResponse> | GetCrmPromocodeTextsResponse;
340
+
341
+ setCrmPromocodeTexts(
342
+ request: SetCrmPromocodeTextsRequest,
343
+ ): Promise<SetCrmPromocodeTextsResponse> | Observable<SetCrmPromocodeTextsResponse> | SetCrmPromocodeTextsResponse;
344
+
264
345
  getCrmLinks(
265
346
  request: GetCrmLinksRequest,
266
347
  ): Promise<GetCrmLinksResponse> | Observable<GetCrmLinksResponse> | GetCrmLinksResponse;
@@ -268,6 +349,34 @@ export interface TelegramBotServiceController {
268
349
  setCrmLinks(
269
350
  request: SetCrmLinksRequest,
270
351
  ): Promise<SetCrmLinksResponse> | Observable<SetCrmLinksResponse> | SetCrmLinksResponse;
352
+
353
+ getCrmExchangeCurrencies(
354
+ request: GetCrmExchangeCurrenciesRequest,
355
+ ):
356
+ | Promise<GetCrmExchangeCurrenciesResponse>
357
+ | Observable<GetCrmExchangeCurrenciesResponse>
358
+ | GetCrmExchangeCurrenciesResponse;
359
+
360
+ addCrmExchangeCurrency(
361
+ request: AddCrmExchangeCurrencyRequest,
362
+ ):
363
+ | Promise<AddCrmExchangeCurrencyResponse>
364
+ | Observable<AddCrmExchangeCurrencyResponse>
365
+ | AddCrmExchangeCurrencyResponse;
366
+
367
+ updateCrmExchangeCurrency(
368
+ request: UpdateCrmExchangeCurrencyRequest,
369
+ ):
370
+ | Promise<UpdateCrmExchangeCurrencyResponse>
371
+ | Observable<UpdateCrmExchangeCurrencyResponse>
372
+ | UpdateCrmExchangeCurrencyResponse;
373
+
374
+ setCrmExchangeCurrencyToCurrencies(
375
+ request: SetCrmExchangeCurrencyToCurrenciesRequest,
376
+ ):
377
+ | Promise<SetCrmExchangeCurrencyToCurrenciesResponse>
378
+ | Observable<SetCrmExchangeCurrencyToCurrenciesResponse>
379
+ | SetCrmExchangeCurrencyToCurrenciesResponse;
271
380
  }
272
381
 
273
382
  export function TelegramBotServiceControllerMethods() {
@@ -284,8 +393,14 @@ export function TelegramBotServiceControllerMethods() {
284
393
  "setCrmExchangeRateTexts",
285
394
  "getCrmExchangeTexts",
286
395
  "setCrmExchangeTexts",
396
+ "getCrmPromocodeTexts",
397
+ "setCrmPromocodeTexts",
287
398
  "getCrmLinks",
288
399
  "setCrmLinks",
400
+ "getCrmExchangeCurrencies",
401
+ "addCrmExchangeCurrency",
402
+ "updateCrmExchangeCurrency",
403
+ "setCrmExchangeCurrencyToCurrencies",
289
404
  ];
290
405
  for (const method of grpcMethods) {
291
406
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.86",
4
+ "version": "1.0.87",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -14,8 +14,14 @@ service TelegramBotService {
14
14
  rpc SetCrmExchangeRateTexts (SetCrmExchangeRateTextsRequest) returns (SetCrmExchangeRateTextsResponse);
15
15
  rpc GetCrmExchangeTexts (GetCrmExchangeTextsRequest) returns (GetCrmExchangeTextsResponse);
16
16
  rpc SetCrmExchangeTexts (SetCrmExchangeTextsRequest) returns (SetCrmExchangeTextsResponse);
17
+ rpc GetCrmPromocodeTexts (GetCrmPromocodeTextsRequest) returns (GetCrmPromocodeTextsResponse);
18
+ rpc SetCrmPromocodeTexts (SetCrmPromocodeTextsRequest) returns (SetCrmPromocodeTextsResponse);
17
19
  rpc GetCrmLinks (GetCrmLinksRequest) returns (GetCrmLinksResponse);
18
20
  rpc SetCrmLinks (SetCrmLinksRequest) returns (SetCrmLinksResponse);
21
+ rpc GetCrmExchangeCurrencies (GetCrmExchangeCurrenciesRequest) returns (GetCrmExchangeCurrenciesResponse);
22
+ rpc AddCrmExchangeCurrency (AddCrmExchangeCurrencyRequest) returns (AddCrmExchangeCurrencyResponse);
23
+ rpc UpdateCrmExchangeCurrency (UpdateCrmExchangeCurrencyRequest) returns (UpdateCrmExchangeCurrencyResponse);
24
+ rpc SetCrmExchangeCurrencyToCurrencies (SetCrmExchangeCurrencyToCurrenciesRequest) returns (SetCrmExchangeCurrencyToCurrenciesResponse);
19
25
  }
20
26
 
21
27
  message ForwardManagerChatMessageTgRequest {
@@ -158,6 +164,26 @@ message SetCrmExchangeTextsResponse {
158
164
  repeated CrmExchangeTextsItem items = 1;
159
165
  }
160
166
 
167
+ message CrmPromocodeTextsItem {
168
+ string language = 1;
169
+ string enter_promocode_text = 2;
170
+ string promocode_opened_manager_notification = 3;
171
+ }
172
+
173
+ message GetCrmPromocodeTextsRequest {}
174
+
175
+ message GetCrmPromocodeTextsResponse {
176
+ repeated CrmPromocodeTextsItem items = 1;
177
+ }
178
+
179
+ message SetCrmPromocodeTextsRequest {
180
+ repeated CrmPromocodeTextsItem items = 1;
181
+ }
182
+
183
+ message SetCrmPromocodeTextsResponse {
184
+ repeated CrmPromocodeTextsItem items = 1;
185
+ }
186
+
161
187
  message GetCrmLinksRequest {}
162
188
 
163
189
  message GetCrmLinksResponse {
@@ -174,3 +200,40 @@ message SetCrmLinksResponse {
174
200
  string partners_mini_app_url = 1;
175
201
  string offices_mini_app_url = 2;
176
202
  }
203
+
204
+ message CrmExchangeCurrencyItem {
205
+ string from_currency = 1;
206
+ repeated string to_currencies = 2;
207
+ }
208
+
209
+ message GetCrmExchangeCurrenciesRequest {}
210
+
211
+ message GetCrmExchangeCurrenciesResponse {
212
+ repeated CrmExchangeCurrencyItem items = 1;
213
+ }
214
+
215
+ message AddCrmExchangeCurrencyRequest {
216
+ string from_currency = 1;
217
+ }
218
+
219
+ message AddCrmExchangeCurrencyResponse {
220
+ CrmExchangeCurrencyItem item = 1;
221
+ }
222
+
223
+ message UpdateCrmExchangeCurrencyRequest {
224
+ string from_currency = 1;
225
+ string new_from_currency = 2;
226
+ }
227
+
228
+ message UpdateCrmExchangeCurrencyResponse {
229
+ CrmExchangeCurrencyItem item = 1;
230
+ }
231
+
232
+ message SetCrmExchangeCurrencyToCurrenciesRequest {
233
+ string from_currency = 1;
234
+ repeated string to_currencies = 2;
235
+ }
236
+
237
+ message SetCrmExchangeCurrencyToCurrenciesResponse {
238
+ CrmExchangeCurrencyItem item = 1;
239
+ }