@arbiwallet/contracts 1.0.93 → 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 +20 -7
- package/package.json +1 -1
- package/proto/content.proto +10 -5
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
|
-
|
|
13
|
+
/** --- PUBLIC CONTENT MESSAGES --- */
|
|
14
|
+
export interface GetPublicBannersRequest {
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
export interface
|
|
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
|
-
|
|
206
|
+
getPublicBanners(request: GetPublicBannersRequest): Observable<GetPublicBannersResponse>;
|
|
207
|
+
|
|
208
|
+
getPublicFaqs(request: GetPublicFaqsRequest): Observable<GetPublicFaqsResponse>;
|
|
200
209
|
}
|
|
201
210
|
|
|
202
211
|
export interface PublicContentServiceController {
|
|
203
|
-
|
|
204
|
-
request:
|
|
205
|
-
): Promise<
|
|
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[] = ["
|
|
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);
|
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.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
|
},
|
package/proto/content.proto
CHANGED
|
@@ -18,16 +18,21 @@ service FaqService {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
service PublicContentService {
|
|
21
|
-
rpc
|
|
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
|
|
27
|
-
|
|
28
|
-
message GetPublicContentResponse {
|
|
28
|
+
message GetPublicBannersResponse {
|
|
29
29
|
repeated Banner banners = 1;
|
|
30
|
-
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message GetPublicFaqsRequest {}
|
|
33
|
+
|
|
34
|
+
message GetPublicFaqsResponse {
|
|
35
|
+
repeated FaqItem faqs = 1;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
// --- BANNER MESSAGES ---
|