@volontariapp/contracts-nest 3.1.0 → 3.1.1-snap-871671f

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-generated proto typings update for both pure contracts and NestJS integration.
8
+
3
9
  ## 3.1.0
4
10
 
5
11
  ### Minor Changes
@@ -1,3 +1,4 @@
1
+ import { Post } from "./post.js";
1
2
  export interface CreatePostCommand {
2
3
  title: string;
3
4
  content: string;
@@ -8,11 +9,12 @@ export interface AdminCreatePostCommand {
8
9
  content: string;
9
10
  }
10
11
  export interface UpdatePostCommand {
11
- id: string;
12
- title?: string | undefined;
13
- content?: string | undefined;
12
+ post: Post | undefined;
13
+ updateMask: string[];
14
14
  }
15
15
  export interface DeletePostCommand {
16
16
  id: string;
17
17
  }
18
+ export interface DeleteMyPostsCommand {
19
+ }
18
20
  //# sourceMappingURL=post.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.command.d.ts","sourceRoot":"","sources":["../../src/post/post.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"post.command.d.ts","sourceRoot":"","sources":["../../src/post/post.command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;CACpC"}
@@ -1,5 +1,5 @@
1
1
  import { PaginationRequest } from "../common/pagination.js";
2
- export interface PostQuery {
2
+ export interface GetPostQuery {
3
3
  id: string;
4
4
  }
5
5
  export interface ListPostsQuery {
@@ -1 +1 @@
1
- {"version":3,"file":"post.query.d.ts","sourceRoot":"","sources":["../../src/post/post.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B"}
1
+ {"version":3,"file":"post.query.d.ts","sourceRoot":"","sources":["../../src/post/post.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B"}
@@ -19,4 +19,7 @@ export interface ListPostsResponse {
19
19
  export interface DeletePostResponse {
20
20
  success: boolean;
21
21
  }
22
+ export interface DeleteMyPostsResponse {
23
+ success: boolean;
24
+ }
22
25
  //# sourceMappingURL=post.responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.responses.d.ts","sourceRoot":"","sources":["../../src/post/post.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"post.responses.d.ts","sourceRoot":"","sources":["../../src/post/post.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1,22 +1,24 @@
1
1
  import { Observable } from "rxjs";
2
- import { AdminCreatePostCommand, CreatePostCommand, DeletePostCommand, UpdatePostCommand } from "./post.command.js";
3
- import { ListPostsQuery, PostQuery } from "./post.query.js";
4
- import { AdminCreatePostResponse, CreatePostResponse, DeletePostResponse, GetPostResponse, ListPostsResponse, UpdatePostResponse } from "./post.responses.js";
2
+ import { AdminCreatePostCommand, CreatePostCommand, DeleteMyPostsCommand, DeletePostCommand, UpdatePostCommand } from "./post.command.js";
3
+ import { GetPostQuery, ListPostsQuery } from "./post.query.js";
4
+ import { AdminCreatePostResponse, CreatePostResponse, DeleteMyPostsResponse, DeletePostResponse, GetPostResponse, ListPostsResponse, UpdatePostResponse } from "./post.responses.js";
5
5
  export interface PostServiceClient {
6
- getPost(request: PostQuery): Observable<GetPostResponse>;
6
+ getPost(request: GetPostQuery): Observable<GetPostResponse>;
7
7
  listPosts(request: ListPostsQuery): Observable<ListPostsResponse>;
8
8
  createPost(request: CreatePostCommand): Observable<CreatePostResponse>;
9
9
  adminCreatePost(request: AdminCreatePostCommand): Observable<AdminCreatePostResponse>;
10
10
  updatePost(request: UpdatePostCommand): Observable<UpdatePostResponse>;
11
11
  deletePost(request: DeletePostCommand): Observable<DeletePostResponse>;
12
+ deleteMyPosts(request: DeleteMyPostsCommand): Observable<DeleteMyPostsResponse>;
12
13
  }
13
14
  export interface PostServiceController {
14
- getPost(request: PostQuery): Promise<GetPostResponse> | Observable<GetPostResponse> | GetPostResponse;
15
+ getPost(request: GetPostQuery): Promise<GetPostResponse> | Observable<GetPostResponse> | GetPostResponse;
15
16
  listPosts(request: ListPostsQuery): Promise<ListPostsResponse> | Observable<ListPostsResponse> | ListPostsResponse;
16
17
  createPost(request: CreatePostCommand): Promise<CreatePostResponse> | Observable<CreatePostResponse> | CreatePostResponse;
17
18
  adminCreatePost(request: AdminCreatePostCommand): Promise<AdminCreatePostResponse> | Observable<AdminCreatePostResponse> | AdminCreatePostResponse;
18
19
  updatePost(request: UpdatePostCommand): Promise<UpdatePostResponse> | Observable<UpdatePostResponse> | UpdatePostResponse;
19
20
  deletePost(request: DeletePostCommand): Promise<DeletePostResponse> | Observable<DeletePostResponse> | DeletePostResponse;
21
+ deleteMyPosts(request: DeleteMyPostsCommand): Promise<DeleteMyPostsResponse> | Observable<DeleteMyPostsResponse> | DeleteMyPostsResponse;
20
22
  }
21
23
  export declare function PostServiceControllerMethods(): (constructor: Function) => void;
22
24
  export declare const POST_SERVICE_NAME = "PostService";
@@ -1 +1 @@
1
- {"version":3,"file":"post.services.d.ts","sourceRoot":"","sources":["../../src/post/post.services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAEzD,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CA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EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IAErF,eAAe,CACb,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,GAAG,UAAU,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAC;IAEpG,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IAErF,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IAErF,aAAa,CACX,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,CAAC;CAC/F;AAED,wBAAgB,4BAA4B,kBACZ,QAAQ,UAoBvC;AAED,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
@@ -1,7 +1,15 @@
1
1
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
2
2
  export function PostServiceControllerMethods() {
3
3
  return function (constructor) {
4
- const grpcMethods = ["getPost", "listPosts", "createPost", "adminCreatePost", "updatePost", "deletePost"];
4
+ const grpcMethods = [
5
+ "getPost",
6
+ "listPosts",
7
+ "createPost",
8
+ "adminCreatePost",
9
+ "updatePost",
10
+ "deletePost",
11
+ "deleteMyPosts",
12
+ ];
5
13
  for (const method of grpcMethods) {
6
14
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
7
15
  GrpcMethod("PostService", method)(constructor.prototype[method], method, descriptor);
@@ -1 +1 @@
1
- {"version":3,"file":"post.services.js","sourceRoot":"","sources":["../../src/post/post.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM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AAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACvF,CAAC;QACD,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,KAAK,MAAM,MAAM,IAAI,iBAAiB,EAAE,CAAC;YACvC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,gBAAgB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7F,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts-nest",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-snap-871671f",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -2,6 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package volontariapp.post;
4
4
 
5
+ import "volontariapp/post/post.proto";
6
+
5
7
  message CreatePostCommand {
6
8
  string title = 1;
7
9
  string content = 2;
@@ -14,11 +16,13 @@ message AdminCreatePostCommand {
14
16
  }
15
17
 
16
18
  message UpdatePostCommand {
17
- string id = 1;
18
- optional string title = 2;
19
- optional string content = 3;
19
+ Post post = 2;
20
+ repeated string update_mask = 3;
20
21
  }
21
22
 
22
23
  message DeletePostCommand {
23
24
  string id = 1;
24
25
  }
26
+
27
+ message DeleteMyPostsCommand {
28
+ }
@@ -5,7 +5,7 @@ package volontariapp.post;
5
5
  import "volontariapp/common/pagination.proto";
6
6
 
7
7
 
8
- message PostQuery {
8
+ message GetPostQuery {
9
9
  string id = 1;
10
10
  }
11
11
 
@@ -30,3 +30,7 @@ message ListPostsResponse {
30
30
  message DeletePostResponse {
31
31
  bool success = 1;
32
32
  }
33
+
34
+ message DeleteMyPostsResponse {
35
+ bool success = 1;
36
+ }
@@ -9,10 +9,11 @@ import "volontariapp/post/post.responses.proto";
9
9
 
10
10
 
11
11
  service PostService {
12
- rpc GetPost (PostQuery) returns (GetPostResponse) {}
12
+ rpc GetPost (GetPostQuery) returns (GetPostResponse) {}
13
13
  rpc ListPosts (ListPostsQuery) returns (ListPostsResponse) {}
14
14
  rpc CreatePost (CreatePostCommand) returns (CreatePostResponse) {}
15
15
  rpc AdminCreatePost (AdminCreatePostCommand) returns (AdminCreatePostResponse) {}
16
16
  rpc UpdatePost (UpdatePostCommand) returns (UpdatePostResponse) {}
17
17
  rpc DeletePost (DeletePostCommand) returns (DeletePostResponse) {}
18
+ rpc DeleteMyPosts (DeleteMyPostsCommand) returns (DeleteMyPostsResponse) {}
18
19
  }