@volontariapp/contracts 4.2.0 → 4.2.2

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - rename: comment request
8
+
9
+ ## 4.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - fix: add comment request
14
+
3
15
  ## 4.2.0
4
16
 
5
17
  ### Minor Changes
@@ -1,4 +1,8 @@
1
+ import type { PaginationRequest } from '../../../index.js';
1
2
  export interface CreateCommentRequest {
2
3
  content: string;
3
4
  }
5
+ export interface ListCommentsRequest extends PaginationRequest {
6
+ postId: string;
7
+ }
4
8
  //# sourceMappingURL=comment.request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comment.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/request/comment.request.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"comment.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/request/comment.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,10 +1,17 @@
1
- import type { Post } from '../../../post/post.js';
2
1
  import type { CreatePostResponse, AdminCreatePostResponse } from '../../../post/post.responses.js';
2
+ export interface PostWeb {
3
+ id: string;
4
+ authorId: string;
5
+ title: string;
6
+ content: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ }
3
10
  export interface PostWebResponse {
4
- post: Post;
11
+ post: PostWeb;
5
12
  }
6
13
  export interface ListPostsWebResponse {
7
- posts: Post[];
14
+ posts: PostWeb[];
8
15
  totalCount: number;
9
16
  }
10
17
  export interface CreatePostWebResponse extends CreatePostResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"post.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/post.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAEnG,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG;AAGpE,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;CAAG"}
1
+ {"version":3,"file":"post.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/post.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAEnG,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG;AAGpE,MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true