@arbiwallet/contracts 1.0.91 → 1.0.92

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,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/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.91",
4
+ "version": "1.0.92",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -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 {