@volontariapp/contracts 4.1.1 → 4.2.0

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
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - feat: add comments schemas and pagination to posts
8
+
3
9
  ## 4.1.1
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,4 @@
1
+ export interface CreateCommentRequest {
2
+ content: string;
3
+ }
4
+ //# sourceMappingURL=comment.request.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.request.js","sourceRoot":"","sources":["../../../../src/gateway/post/request/comment.request.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from './post.request.js';
2
2
  export * from './admin-post.request.js';
3
+ export * from './comment.request.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './post.request.js';
2
2
  export * from './admin-post.request.js';
3
+ export * from './comment.request.js';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/post/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/post/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { PaginationResponse } from '../../../common/index.js';
2
+ export interface CommentWebResponse {
3
+ id: string;
4
+ postId: string;
5
+ authorId: string;
6
+ content: string;
7
+ createdAt: string;
8
+ updatedAt: string;
9
+ }
10
+ export interface ListCommentsWebResponse extends PaginationResponse {
11
+ comments: CommentWebResponse[];
12
+ totalCount: number;
13
+ }
14
+ //# sourceMappingURL=comment.response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/comment.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.response.js","sourceRoot":"","sources":["../../../../src/gateway/post/response/comment.response.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  export * from './post.response.js';
2
+ export * from './comment.response.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './post.response.js';
2
+ export * from './comment.response.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/post/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gateway/post/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true