@arbiwallet/contracts 1.0.92 → 1.0.94

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/gen/content.ts CHANGED
@@ -10,11 +10,18 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "content.v1";
12
12
 
13
- export interface GetPublicContentRequest {
13
+ /** --- PUBLIC CONTENT MESSAGES --- */
14
+ export interface GetPublicBannersRequest {
14
15
  }
15
16
 
16
- export interface GetPublicContentResponse {
17
+ export interface GetPublicBannersResponse {
17
18
  banners: Banner[];
19
+ }
20
+
21
+ export interface GetPublicFaqsRequest {
22
+ }
23
+
24
+ export interface GetPublicFaqsResponse {
18
25
  faqs: FaqItem[];
19
26
  }
20
27
 
@@ -196,18 +203,24 @@ export function FaqServiceControllerMethods() {
196
203
  export const FAQ_SERVICE_NAME = "FaqService";
197
204
 
198
205
  export interface PublicContentServiceClient {
199
- getPublicContent(request: GetPublicContentRequest): Observable<GetPublicContentResponse>;
206
+ getPublicBanners(request: GetPublicBannersRequest): Observable<GetPublicBannersResponse>;
207
+
208
+ getPublicFaqs(request: GetPublicFaqsRequest): Observable<GetPublicFaqsResponse>;
200
209
  }
201
210
 
202
211
  export interface PublicContentServiceController {
203
- getPublicContent(
204
- request: GetPublicContentRequest,
205
- ): Promise<GetPublicContentResponse> | Observable<GetPublicContentResponse> | GetPublicContentResponse;
212
+ getPublicBanners(
213
+ request: GetPublicBannersRequest,
214
+ ): Promise<GetPublicBannersResponse> | Observable<GetPublicBannersResponse> | GetPublicBannersResponse;
215
+
216
+ getPublicFaqs(
217
+ request: GetPublicFaqsRequest,
218
+ ): Promise<GetPublicFaqsResponse> | Observable<GetPublicFaqsResponse> | GetPublicFaqsResponse;
206
219
  }
207
220
 
208
221
  export function PublicContentServiceControllerMethods() {
209
222
  return function (constructor: Function) {
210
- const grpcMethods: string[] = ["getPublicContent"];
223
+ const grpcMethods: string[] = ["getPublicBanners", "getPublicFaqs"];
211
224
  for (const method of grpcMethods) {
212
225
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
213
226
  GrpcMethod("PublicContentService", method)(constructor.prototype[method], method, descriptor);
@@ -181,6 +181,28 @@ export interface SetCrmPromocodeTextsResponse {
181
181
  items: CrmPromocodeTextsItem[];
182
182
  }
183
183
 
184
+ export interface CrmReferralTextsItem {
185
+ language: string;
186
+ referralInfoText: string;
187
+ referralLinkLineTemplate: string;
188
+ referralUnavailableText: string;
189
+ }
190
+
191
+ export interface GetCrmReferralTextsRequest {
192
+ }
193
+
194
+ export interface GetCrmReferralTextsResponse {
195
+ items: CrmReferralTextsItem[];
196
+ }
197
+
198
+ export interface SetCrmReferralTextsRequest {
199
+ items: CrmReferralTextsItem[];
200
+ }
201
+
202
+ export interface SetCrmReferralTextsResponse {
203
+ items: CrmReferralTextsItem[];
204
+ }
205
+
184
206
  export interface GetCrmLinksRequest {
185
207
  }
186
208
 
@@ -288,6 +310,10 @@ export interface TelegramBotServiceClient {
288
310
 
289
311
  setCrmPromocodeTexts(request: SetCrmPromocodeTextsRequest): Observable<SetCrmPromocodeTextsResponse>;
290
312
 
313
+ getCrmReferralTexts(request: GetCrmReferralTextsRequest): Observable<GetCrmReferralTextsResponse>;
314
+
315
+ setCrmReferralTexts(request: SetCrmReferralTextsRequest): Observable<SetCrmReferralTextsResponse>;
316
+
291
317
  getCrmLinks(request: GetCrmLinksRequest): Observable<GetCrmLinksResponse>;
292
318
 
293
319
  setCrmLinks(request: SetCrmLinksRequest): Observable<SetCrmLinksResponse>;
@@ -373,6 +399,14 @@ export interface TelegramBotServiceController {
373
399
  request: SetCrmPromocodeTextsRequest,
374
400
  ): Promise<SetCrmPromocodeTextsResponse> | Observable<SetCrmPromocodeTextsResponse> | SetCrmPromocodeTextsResponse;
375
401
 
402
+ getCrmReferralTexts(
403
+ request: GetCrmReferralTextsRequest,
404
+ ): Promise<GetCrmReferralTextsResponse> | Observable<GetCrmReferralTextsResponse> | GetCrmReferralTextsResponse;
405
+
406
+ setCrmReferralTexts(
407
+ request: SetCrmReferralTextsRequest,
408
+ ): Promise<SetCrmReferralTextsResponse> | Observable<SetCrmReferralTextsResponse> | SetCrmReferralTextsResponse;
409
+
376
410
  getCrmLinks(
377
411
  request: GetCrmLinksRequest,
378
412
  ): Promise<GetCrmLinksResponse> | Observable<GetCrmLinksResponse> | GetCrmLinksResponse;
@@ -440,6 +474,8 @@ export function TelegramBotServiceControllerMethods() {
440
474
  "setCrmExchangeTexts",
441
475
  "getCrmPromocodeTexts",
442
476
  "setCrmPromocodeTexts",
477
+ "getCrmReferralTexts",
478
+ "setCrmReferralTexts",
443
479
  "getCrmLinks",
444
480
  "setCrmLinks",
445
481
  "getCrmExchangeCurrencies",
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.92",
4
+ "version": "1.0.94",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -18,16 +18,21 @@ service FaqService {
18
18
  }
19
19
 
20
20
  service PublicContentService {
21
- rpc GetPublicContent (GetPublicContentRequest) returns (GetPublicContentResponse);
21
+ rpc GetPublicBanners (GetPublicBannersRequest) returns (GetPublicBannersResponse);
22
+ rpc GetPublicFaqs (GetPublicFaqsRequest) returns (GetPublicFaqsResponse);
22
23
  }
23
24
 
24
25
  // --- PUBLIC CONTENT MESSAGES ---
26
+ message GetPublicBannersRequest {}
25
27
 
26
- message GetPublicContentRequest {}
27
-
28
- message GetPublicContentResponse {
28
+ message GetPublicBannersResponse {
29
29
  repeated Banner banners = 1;
30
- repeated FaqItem faqs = 2;
30
+ }
31
+
32
+ message GetPublicFaqsRequest {}
33
+
34
+ message GetPublicFaqsResponse {
35
+ repeated FaqItem faqs = 1;
31
36
  }
32
37
 
33
38
  // --- BANNER MESSAGES ---
@@ -16,6 +16,8 @@ service TelegramBotService {
16
16
  rpc SetCrmExchangeTexts (SetCrmExchangeTextsRequest) returns (SetCrmExchangeTextsResponse);
17
17
  rpc GetCrmPromocodeTexts (GetCrmPromocodeTextsRequest) returns (GetCrmPromocodeTextsResponse);
18
18
  rpc SetCrmPromocodeTexts (SetCrmPromocodeTextsRequest) returns (SetCrmPromocodeTextsResponse);
19
+ rpc GetCrmReferralTexts (GetCrmReferralTextsRequest) returns (GetCrmReferralTextsResponse);
20
+ rpc SetCrmReferralTexts (SetCrmReferralTextsRequest) returns (SetCrmReferralTextsResponse);
19
21
  rpc GetCrmLinks (GetCrmLinksRequest) returns (GetCrmLinksResponse);
20
22
  rpc SetCrmLinks (SetCrmLinksRequest) returns (SetCrmLinksResponse);
21
23
  rpc GetCrmExchangeCurrencies (GetCrmExchangeCurrenciesRequest) returns (GetCrmExchangeCurrenciesResponse);
@@ -189,6 +191,27 @@ message SetCrmPromocodeTextsResponse {
189
191
  repeated CrmPromocodeTextsItem items = 1;
190
192
  }
191
193
 
194
+ message CrmReferralTextsItem {
195
+ string language = 1;
196
+ string referral_info_text = 2;
197
+ string referral_link_line_template = 3;
198
+ string referral_unavailable_text = 4;
199
+ }
200
+
201
+ message GetCrmReferralTextsRequest {}
202
+
203
+ message GetCrmReferralTextsResponse {
204
+ repeated CrmReferralTextsItem items = 1;
205
+ }
206
+
207
+ message SetCrmReferralTextsRequest {
208
+ repeated CrmReferralTextsItem items = 1;
209
+ }
210
+
211
+ message SetCrmReferralTextsResponse {
212
+ repeated CrmReferralTextsItem items = 1;
213
+ }
214
+
192
215
  message GetCrmLinksRequest {}
193
216
 
194
217
  message GetCrmLinksResponse {