@arbiwallet/contracts 1.0.113 → 1.0.115
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 +18 -27
- package/package.json +1 -1
- package/proto/content.proto +12 -12
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
|
+
code: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export interface
|
|
46
|
+
export interface GetPublicDocumentResponse {
|
|
47
47
|
document: Document | undefined;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -282,8 +282,8 @@ export interface ReorderBlogsResponse {
|
|
|
282
282
|
|
|
283
283
|
export interface CreateDocumentRequest {
|
|
284
284
|
title: string;
|
|
285
|
-
slug: string;
|
|
286
285
|
body: string;
|
|
286
|
+
code: string;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
export interface CreateDocumentResponse {
|
|
@@ -297,11 +297,11 @@ export interface GetDocumentsResponse {
|
|
|
297
297
|
documents: Document[];
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
export interface
|
|
301
|
-
|
|
300
|
+
export interface GetDocumentRequest {
|
|
301
|
+
id: number;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export interface
|
|
304
|
+
export interface GetDocumentResponse {
|
|
305
305
|
document: Document | undefined;
|
|
306
306
|
}
|
|
307
307
|
|
|
@@ -411,8 +411,8 @@ export interface Blog {
|
|
|
411
411
|
|
|
412
412
|
export interface Document {
|
|
413
413
|
id: number;
|
|
414
|
+
code: string;
|
|
414
415
|
title: string;
|
|
415
|
-
slug: string;
|
|
416
416
|
body: string;
|
|
417
417
|
createdAt: string;
|
|
418
418
|
updatedAt: string;
|
|
@@ -542,7 +542,7 @@ export interface PublicContentServiceClient {
|
|
|
542
542
|
|
|
543
543
|
getPublicDocuments(request: GetPublicDocumentsRequest): Observable<GetPublicDocumentsResponse>;
|
|
544
544
|
|
|
545
|
-
|
|
545
|
+
getPublicDocument(request: GetPublicDocumentRequest): Observable<GetPublicDocumentResponse>;
|
|
546
546
|
|
|
547
547
|
getPublicStories(request: GetPublicStoriesRequest): Observable<GetPublicStoriesResponse>;
|
|
548
548
|
}
|
|
@@ -572,12 +572,9 @@ export interface PublicContentServiceController {
|
|
|
572
572
|
request: GetPublicDocumentsRequest,
|
|
573
573
|
): Promise<GetPublicDocumentsResponse> | Observable<GetPublicDocumentsResponse> | GetPublicDocumentsResponse;
|
|
574
574
|
|
|
575
|
-
|
|
576
|
-
request:
|
|
577
|
-
):
|
|
578
|
-
| Promise<GetPublicDocumentBySlugResponse>
|
|
579
|
-
| Observable<GetPublicDocumentBySlugResponse>
|
|
580
|
-
| GetPublicDocumentBySlugResponse;
|
|
575
|
+
getPublicDocument(
|
|
576
|
+
request: GetPublicDocumentRequest,
|
|
577
|
+
): Promise<GetPublicDocumentResponse> | Observable<GetPublicDocumentResponse> | GetPublicDocumentResponse;
|
|
581
578
|
|
|
582
579
|
getPublicStories(
|
|
583
580
|
request: GetPublicStoriesRequest,
|
|
@@ -593,7 +590,7 @@ export function PublicContentServiceControllerMethods() {
|
|
|
593
590
|
"getPublicPartners",
|
|
594
591
|
"getPublicBlogs",
|
|
595
592
|
"getPublicDocuments",
|
|
596
|
-
"
|
|
593
|
+
"getPublicDocument",
|
|
597
594
|
"getPublicStories",
|
|
598
595
|
];
|
|
599
596
|
for (const method of grpcMethods) {
|
|
@@ -797,7 +794,7 @@ export interface DocumentServiceClient {
|
|
|
797
794
|
|
|
798
795
|
getDocuments(request: GetDocumentsRequest): Observable<GetDocumentsResponse>;
|
|
799
796
|
|
|
800
|
-
|
|
797
|
+
getDocument(request: GetDocumentRequest): Observable<GetDocumentResponse>;
|
|
801
798
|
|
|
802
799
|
updateDocument(request: UpdateDocumentRequest): Observable<UpdateDocumentResponse>;
|
|
803
800
|
|
|
@@ -813,9 +810,9 @@ export interface DocumentServiceController {
|
|
|
813
810
|
request: GetDocumentsRequest,
|
|
814
811
|
): Promise<GetDocumentsResponse> | Observable<GetDocumentsResponse> | GetDocumentsResponse;
|
|
815
812
|
|
|
816
|
-
|
|
817
|
-
request:
|
|
818
|
-
): Promise<
|
|
813
|
+
getDocument(
|
|
814
|
+
request: GetDocumentRequest,
|
|
815
|
+
): Promise<GetDocumentResponse> | Observable<GetDocumentResponse> | GetDocumentResponse;
|
|
819
816
|
|
|
820
817
|
updateDocument(
|
|
821
818
|
request: UpdateDocumentRequest,
|
|
@@ -828,13 +825,7 @@ export interface DocumentServiceController {
|
|
|
828
825
|
|
|
829
826
|
export function DocumentServiceControllerMethods() {
|
|
830
827
|
return function (constructor: Function) {
|
|
831
|
-
const grpcMethods: string[] = [
|
|
832
|
-
"createDocument",
|
|
833
|
-
"getDocuments",
|
|
834
|
-
"getDocumentBySlug",
|
|
835
|
-
"updateDocument",
|
|
836
|
-
"deleteDocument",
|
|
837
|
-
];
|
|
828
|
+
const grpcMethods: string[] = ["createDocument", "getDocuments", "getDocument", "updateDocument", "deleteDocument"];
|
|
838
829
|
for (const method of grpcMethods) {
|
|
839
830
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
840
831
|
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.115",
|
|
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
|
-
string
|
|
101
|
+
message GetPublicDocumentRequest {
|
|
102
|
+
string code = 1;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
message
|
|
105
|
+
message GetPublicDocumentResponse {
|
|
106
106
|
Document document = 1;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -333,8 +333,8 @@ message ReorderBlogsResponse {}
|
|
|
333
333
|
|
|
334
334
|
message CreateDocumentRequest {
|
|
335
335
|
string title = 1;
|
|
336
|
-
string
|
|
337
|
-
string
|
|
336
|
+
string body = 2;
|
|
337
|
+
string code = 3;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
message CreateDocumentResponse {
|
|
@@ -347,11 +347,11 @@ message GetDocumentsResponse {
|
|
|
347
347
|
repeated Document documents = 1;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
message
|
|
351
|
-
|
|
350
|
+
message GetDocumentRequest {
|
|
351
|
+
int32 id = 1;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
message
|
|
354
|
+
message GetDocumentResponse {
|
|
355
355
|
Document document = 1;
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -461,8 +461,8 @@ message Blog {
|
|
|
461
461
|
|
|
462
462
|
message Document {
|
|
463
463
|
int32 id = 1;
|
|
464
|
-
string
|
|
465
|
-
string
|
|
464
|
+
string code = 2;
|
|
465
|
+
string title = 3;
|
|
466
466
|
string body = 4;
|
|
467
467
|
string created_at = 5;
|
|
468
468
|
string updated_at = 6;
|