@arbiwallet/contracts 1.0.113 → 1.0.114
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 +16 -27
- package/package.json +1 -1
- package/proto/content.proto +12 -14
package/gen/content.ts
CHANGED
|
@@ -39,11 +39,11 @@ export interface GetPublicDocumentsResponse {
|
|
|
39
39
|
documents: Document[];
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export interface
|
|
43
|
-
|
|
42
|
+
export interface GetPublicDocumentRequest {
|
|
43
|
+
id: number;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export interface
|
|
46
|
+
export interface GetPublicDocumentResponse {
|
|
47
47
|
document: Document | undefined;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -282,7 +282,6 @@ export interface ReorderBlogsResponse {
|
|
|
282
282
|
|
|
283
283
|
export interface CreateDocumentRequest {
|
|
284
284
|
title: string;
|
|
285
|
-
slug: string;
|
|
286
285
|
body: string;
|
|
287
286
|
}
|
|
288
287
|
|
|
@@ -297,11 +296,11 @@ export interface GetDocumentsResponse {
|
|
|
297
296
|
documents: Document[];
|
|
298
297
|
}
|
|
299
298
|
|
|
300
|
-
export interface
|
|
301
|
-
|
|
299
|
+
export interface GetDocumentRequest {
|
|
300
|
+
id: number;
|
|
302
301
|
}
|
|
303
302
|
|
|
304
|
-
export interface
|
|
303
|
+
export interface GetDocumentResponse {
|
|
305
304
|
document: Document | undefined;
|
|
306
305
|
}
|
|
307
306
|
|
|
@@ -412,7 +411,6 @@ export interface Blog {
|
|
|
412
411
|
export interface Document {
|
|
413
412
|
id: number;
|
|
414
413
|
title: string;
|
|
415
|
-
slug: string;
|
|
416
414
|
body: string;
|
|
417
415
|
createdAt: string;
|
|
418
416
|
updatedAt: string;
|
|
@@ -542,7 +540,7 @@ export interface PublicContentServiceClient {
|
|
|
542
540
|
|
|
543
541
|
getPublicDocuments(request: GetPublicDocumentsRequest): Observable<GetPublicDocumentsResponse>;
|
|
544
542
|
|
|
545
|
-
|
|
543
|
+
getPublicDocument(request: GetPublicDocumentRequest): Observable<GetPublicDocumentResponse>;
|
|
546
544
|
|
|
547
545
|
getPublicStories(request: GetPublicStoriesRequest): Observable<GetPublicStoriesResponse>;
|
|
548
546
|
}
|
|
@@ -572,12 +570,9 @@ export interface PublicContentServiceController {
|
|
|
572
570
|
request: GetPublicDocumentsRequest,
|
|
573
571
|
): Promise<GetPublicDocumentsResponse> | Observable<GetPublicDocumentsResponse> | GetPublicDocumentsResponse;
|
|
574
572
|
|
|
575
|
-
|
|
576
|
-
request:
|
|
577
|
-
):
|
|
578
|
-
| Promise<GetPublicDocumentBySlugResponse>
|
|
579
|
-
| Observable<GetPublicDocumentBySlugResponse>
|
|
580
|
-
| GetPublicDocumentBySlugResponse;
|
|
573
|
+
getPublicDocument(
|
|
574
|
+
request: GetPublicDocumentRequest,
|
|
575
|
+
): Promise<GetPublicDocumentResponse> | Observable<GetPublicDocumentResponse> | GetPublicDocumentResponse;
|
|
581
576
|
|
|
582
577
|
getPublicStories(
|
|
583
578
|
request: GetPublicStoriesRequest,
|
|
@@ -593,7 +588,7 @@ export function PublicContentServiceControllerMethods() {
|
|
|
593
588
|
"getPublicPartners",
|
|
594
589
|
"getPublicBlogs",
|
|
595
590
|
"getPublicDocuments",
|
|
596
|
-
"
|
|
591
|
+
"getPublicDocument",
|
|
597
592
|
"getPublicStories",
|
|
598
593
|
];
|
|
599
594
|
for (const method of grpcMethods) {
|
|
@@ -797,7 +792,7 @@ export interface DocumentServiceClient {
|
|
|
797
792
|
|
|
798
793
|
getDocuments(request: GetDocumentsRequest): Observable<GetDocumentsResponse>;
|
|
799
794
|
|
|
800
|
-
|
|
795
|
+
getDocument(request: GetDocumentRequest): Observable<GetDocumentResponse>;
|
|
801
796
|
|
|
802
797
|
updateDocument(request: UpdateDocumentRequest): Observable<UpdateDocumentResponse>;
|
|
803
798
|
|
|
@@ -813,9 +808,9 @@ export interface DocumentServiceController {
|
|
|
813
808
|
request: GetDocumentsRequest,
|
|
814
809
|
): Promise<GetDocumentsResponse> | Observable<GetDocumentsResponse> | GetDocumentsResponse;
|
|
815
810
|
|
|
816
|
-
|
|
817
|
-
request:
|
|
818
|
-
): Promise<
|
|
811
|
+
getDocument(
|
|
812
|
+
request: GetDocumentRequest,
|
|
813
|
+
): Promise<GetDocumentResponse> | Observable<GetDocumentResponse> | GetDocumentResponse;
|
|
819
814
|
|
|
820
815
|
updateDocument(
|
|
821
816
|
request: UpdateDocumentRequest,
|
|
@@ -828,13 +823,7 @@ export interface DocumentServiceController {
|
|
|
828
823
|
|
|
829
824
|
export function DocumentServiceControllerMethods() {
|
|
830
825
|
return function (constructor: Function) {
|
|
831
|
-
const grpcMethods: string[] = [
|
|
832
|
-
"createDocument",
|
|
833
|
-
"getDocuments",
|
|
834
|
-
"getDocumentBySlug",
|
|
835
|
-
"updateDocument",
|
|
836
|
-
"deleteDocument",
|
|
837
|
-
];
|
|
826
|
+
const grpcMethods: string[] = ["createDocument", "getDocuments", "getDocument", "updateDocument", "deleteDocument"];
|
|
838
827
|
for (const method of grpcMethods) {
|
|
839
828
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
840
829
|
GrpcMethod("DocumentService", 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.114",
|
|
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
|
@@ -24,7 +24,7 @@ service PublicContentService {
|
|
|
24
24
|
rpc GetPublicPartners (GetPublicPartnersRequest) returns (GetPublicPartnersResponse);
|
|
25
25
|
rpc GetPublicBlogs (GetPublicBlogsRequest) returns (GetPublicBlogsResponse);
|
|
26
26
|
rpc GetPublicDocuments (GetPublicDocumentsRequest) returns (GetPublicDocumentsResponse);
|
|
27
|
-
rpc
|
|
27
|
+
rpc GetPublicDocument (GetPublicDocumentRequest) returns (GetPublicDocumentResponse);
|
|
28
28
|
rpc GetPublicStories (GetPublicStoriesRequest) returns (GetPublicStoriesResponse);
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -60,7 +60,7 @@ service BlogService {
|
|
|
60
60
|
service DocumentService {
|
|
61
61
|
rpc CreateDocument (CreateDocumentRequest) returns (CreateDocumentResponse);
|
|
62
62
|
rpc GetDocuments (GetDocumentsRequest) returns (GetDocumentsResponse);
|
|
63
|
-
rpc
|
|
63
|
+
rpc GetDocument (GetDocumentRequest) returns (GetDocumentResponse);
|
|
64
64
|
rpc UpdateDocument (UpdateDocumentRequest) returns (UpdateDocumentResponse);
|
|
65
65
|
rpc DeleteDocument (DeleteDocumentRequest) returns (DeleteDocumentResponse);
|
|
66
66
|
}
|
|
@@ -98,11 +98,11 @@ message GetPublicDocumentsResponse {
|
|
|
98
98
|
repeated Document documents = 1;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
message
|
|
102
|
-
|
|
101
|
+
message GetPublicDocumentRequest {
|
|
102
|
+
int32 id = 1;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
message
|
|
105
|
+
message GetPublicDocumentResponse {
|
|
106
106
|
Document document = 1;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -333,8 +333,7 @@ message ReorderBlogsResponse {}
|
|
|
333
333
|
|
|
334
334
|
message CreateDocumentRequest {
|
|
335
335
|
string title = 1;
|
|
336
|
-
string
|
|
337
|
-
string body = 3;
|
|
336
|
+
string body = 2;
|
|
338
337
|
}
|
|
339
338
|
|
|
340
339
|
message CreateDocumentResponse {
|
|
@@ -347,11 +346,11 @@ message GetDocumentsResponse {
|
|
|
347
346
|
repeated Document documents = 1;
|
|
348
347
|
}
|
|
349
348
|
|
|
350
|
-
message
|
|
351
|
-
|
|
349
|
+
message GetDocumentRequest {
|
|
350
|
+
int32 id = 1;
|
|
352
351
|
}
|
|
353
352
|
|
|
354
|
-
message
|
|
353
|
+
message GetDocumentResponse {
|
|
355
354
|
Document document = 1;
|
|
356
355
|
}
|
|
357
356
|
|
|
@@ -462,10 +461,9 @@ message Blog {
|
|
|
462
461
|
message Document {
|
|
463
462
|
int32 id = 1;
|
|
464
463
|
string title = 2;
|
|
465
|
-
string
|
|
466
|
-
string
|
|
467
|
-
string
|
|
468
|
-
string updated_at = 6;
|
|
464
|
+
string body = 3;
|
|
465
|
+
string created_at = 4;
|
|
466
|
+
string updated_at = 5;
|
|
469
467
|
}
|
|
470
468
|
|
|
471
469
|
message Story {
|