@arbiwallet/contracts 1.0.94 → 1.0.95
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 +56 -0
- package/package.json +1 -1
- package/proto/content.proto +29 -0
package/gen/content.ts
CHANGED
|
@@ -94,6 +94,22 @@ export interface DeleteFaqItemRequest {
|
|
|
94
94
|
export interface DeleteFaqItemResponse {
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
/** --- ABOUT --- */
|
|
98
|
+
export interface GetAboutRequest {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface GetAboutResponse {
|
|
102
|
+
about: About | undefined;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface UpsertAboutRequest {
|
|
106
|
+
about: About | undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface UpsertAboutResponse {
|
|
110
|
+
about: About | undefined;
|
|
111
|
+
}
|
|
112
|
+
|
|
97
113
|
export interface Banner {
|
|
98
114
|
id: number;
|
|
99
115
|
imageUrl: string;
|
|
@@ -106,6 +122,15 @@ export interface FaqItem {
|
|
|
106
122
|
answer: string;
|
|
107
123
|
}
|
|
108
124
|
|
|
125
|
+
export interface About {
|
|
126
|
+
id: number;
|
|
127
|
+
imageUrl: string;
|
|
128
|
+
body?: string | undefined;
|
|
129
|
+
address?: string | undefined;
|
|
130
|
+
latitude?: number | undefined;
|
|
131
|
+
longitude?: number | undefined;
|
|
132
|
+
}
|
|
133
|
+
|
|
109
134
|
export const CONTENT_V1_PACKAGE_NAME = "content.v1";
|
|
110
135
|
|
|
111
136
|
export interface BannerServiceClient {
|
|
@@ -234,3 +259,34 @@ export function PublicContentServiceControllerMethods() {
|
|
|
234
259
|
}
|
|
235
260
|
|
|
236
261
|
export const PUBLIC_CONTENT_SERVICE_NAME = "PublicContentService";
|
|
262
|
+
|
|
263
|
+
export interface AboutServiceClient {
|
|
264
|
+
getAbout(request: GetAboutRequest): Observable<GetAboutResponse>;
|
|
265
|
+
|
|
266
|
+
upsertAbout(request: UpsertAboutRequest): Observable<UpsertAboutResponse>;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface AboutServiceController {
|
|
270
|
+
getAbout(request: GetAboutRequest): Promise<GetAboutResponse> | Observable<GetAboutResponse> | GetAboutResponse;
|
|
271
|
+
|
|
272
|
+
upsertAbout(
|
|
273
|
+
request: UpsertAboutRequest,
|
|
274
|
+
): Promise<UpsertAboutResponse> | Observable<UpsertAboutResponse> | UpsertAboutResponse;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function AboutServiceControllerMethods() {
|
|
278
|
+
return function (constructor: Function) {
|
|
279
|
+
const grpcMethods: string[] = ["getAbout", "upsertAbout"];
|
|
280
|
+
for (const method of grpcMethods) {
|
|
281
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
282
|
+
GrpcMethod("AboutService", method)(constructor.prototype[method], method, descriptor);
|
|
283
|
+
}
|
|
284
|
+
const grpcStreamMethods: string[] = [];
|
|
285
|
+
for (const method of grpcStreamMethods) {
|
|
286
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
287
|
+
GrpcStreamMethod("AboutService", method)(constructor.prototype[method], method, descriptor);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export const ABOUT_SERVICE_NAME = "AboutService";
|
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.95",
|
|
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
|
@@ -22,6 +22,11 @@ service PublicContentService {
|
|
|
22
22
|
rpc GetPublicFaqs (GetPublicFaqsRequest) returns (GetPublicFaqsResponse);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
service AboutService {
|
|
26
|
+
rpc GetAbout (GetAboutRequest) returns (GetAboutResponse);
|
|
27
|
+
rpc UpsertAbout (UpsertAboutRequest) returns (UpsertAboutResponse);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
// --- PUBLIC CONTENT MESSAGES ---
|
|
26
31
|
message GetPublicBannersRequest {}
|
|
27
32
|
|
|
@@ -103,6 +108,21 @@ message DeleteFaqItemRequest {
|
|
|
103
108
|
|
|
104
109
|
message DeleteFaqItemResponse {}
|
|
105
110
|
|
|
111
|
+
// --- ABOUT ---
|
|
112
|
+
message GetAboutRequest {}
|
|
113
|
+
|
|
114
|
+
message GetAboutResponse {
|
|
115
|
+
About about = 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message UpsertAboutRequest {
|
|
119
|
+
About about = 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message UpsertAboutResponse {
|
|
123
|
+
About about = 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
106
126
|
// --- MODELS ---
|
|
107
127
|
|
|
108
128
|
message Banner {
|
|
@@ -115,4 +135,13 @@ message FaqItem {
|
|
|
115
135
|
int32 id = 1;
|
|
116
136
|
string question = 2;
|
|
117
137
|
string answer = 3;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
message About {
|
|
141
|
+
int32 id = 1;
|
|
142
|
+
string image_url = 2;
|
|
143
|
+
optional string body = 3;
|
|
144
|
+
optional string address = 4;
|
|
145
|
+
optional double latitude = 5;
|
|
146
|
+
optional double longitude = 6;
|
|
118
147
|
}
|