@arbiwallet/contracts 1.0.91 → 1.0.93
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 +35 -0
- package/gen/telegram_bot.ts +36 -0
- package/package.json +1 -1
- package/proto/content.proto +13 -0
- package/proto/telegram_bot.proto +23 -0
package/gen/content.ts
CHANGED
|
@@ -10,6 +10,14 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "content.v1";
|
|
12
12
|
|
|
13
|
+
export interface GetPublicContentRequest {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface GetPublicContentResponse {
|
|
17
|
+
banners: Banner[];
|
|
18
|
+
faqs: FaqItem[];
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
export interface CreateBannerRequest {
|
|
14
22
|
imageUrl: string;
|
|
15
23
|
order: number;
|
|
@@ -186,3 +194,30 @@ export function FaqServiceControllerMethods() {
|
|
|
186
194
|
}
|
|
187
195
|
|
|
188
196
|
export const FAQ_SERVICE_NAME = "FaqService";
|
|
197
|
+
|
|
198
|
+
export interface PublicContentServiceClient {
|
|
199
|
+
getPublicContent(request: GetPublicContentRequest): Observable<GetPublicContentResponse>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface PublicContentServiceController {
|
|
203
|
+
getPublicContent(
|
|
204
|
+
request: GetPublicContentRequest,
|
|
205
|
+
): Promise<GetPublicContentResponse> | Observable<GetPublicContentResponse> | GetPublicContentResponse;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function PublicContentServiceControllerMethods() {
|
|
209
|
+
return function (constructor: Function) {
|
|
210
|
+
const grpcMethods: string[] = ["getPublicContent"];
|
|
211
|
+
for (const method of grpcMethods) {
|
|
212
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
213
|
+
GrpcMethod("PublicContentService", method)(constructor.prototype[method], method, descriptor);
|
|
214
|
+
}
|
|
215
|
+
const grpcStreamMethods: string[] = [];
|
|
216
|
+
for (const method of grpcStreamMethods) {
|
|
217
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
218
|
+
GrpcStreamMethod("PublicContentService", method)(constructor.prototype[method], method, descriptor);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export const PUBLIC_CONTENT_SERVICE_NAME = "PublicContentService";
|
package/gen/telegram_bot.ts
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "1.0.93",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/content.proto
CHANGED
|
@@ -17,6 +17,19 @@ service FaqService {
|
|
|
17
17
|
rpc DeleteFaqItem (DeleteFaqItemRequest) returns (DeleteFaqItemResponse);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
service PublicContentService {
|
|
21
|
+
rpc GetPublicContent (GetPublicContentRequest) returns (GetPublicContentResponse);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// --- PUBLIC CONTENT MESSAGES ---
|
|
25
|
+
|
|
26
|
+
message GetPublicContentRequest {}
|
|
27
|
+
|
|
28
|
+
message GetPublicContentResponse {
|
|
29
|
+
repeated Banner banners = 1;
|
|
30
|
+
repeated FaqItem faqs = 2;
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
// --- BANNER MESSAGES ---
|
|
21
34
|
|
|
22
35
|
message CreateBannerRequest {
|
package/proto/telegram_bot.proto
CHANGED
|
@@ -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 {
|