@volontariapp/contracts 4.1.0 → 4.1.1-snap-3dde44a

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.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Auto-generated proto typings update for both pure contracts and NestJS integration.
8
+
3
9
  ## 4.1.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,9 @@
1
+ export interface CreateCommentCommand {
2
+ postId: string;
3
+ content: string;
4
+ }
5
+ export interface DeleteCommentCommand {
6
+ id: string;
7
+ postId: string;
8
+ }
9
+ //# sourceMappingURL=comment.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.command.d.ts","sourceRoot":"","sources":["../../src/post/comment.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.command.js","sourceRoot":"","sources":["../../src/post/comment.command.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { Timestamp } from "../google/protobuf/timestamp.js";
2
+ export interface Comment {
3
+ id: string;
4
+ postId: string;
5
+ authorId: string;
6
+ content: string;
7
+ createdAt: Timestamp | undefined;
8
+ updatedAt: Timestamp | undefined;
9
+ }
10
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/post/comment.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;CAClC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../src/post/comment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { PaginationRequest } from "../common/pagination.js";
2
+ export interface ListCommentsQuery {
3
+ postId: string;
4
+ pagination: PaginationRequest | undefined;
5
+ }
6
+ //# sourceMappingURL=comment.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.query.d.ts","sourceRoot":"","sources":["../../src/post/comment.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.query.js","sourceRoot":"","sources":["../../src/post/comment.query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { PaginationResponse } from "../common/pagination.js";
2
+ import { Comment } from "./comment.js";
3
+ export interface CreateCommentResponse {
4
+ comment: Comment | undefined;
5
+ }
6
+ export interface ListCommentsResponse {
7
+ comments: Comment[];
8
+ pagination: PaginationResponse | undefined;
9
+ }
10
+ export interface DeleteCommentResponse {
11
+ success: boolean;
12
+ }
13
+ //# sourceMappingURL=comment.responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.responses.d.ts","sourceRoot":"","sources":["../../src/post/comment.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=comment.responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.responses.js","sourceRoot":"","sources":["../../src/post/comment.responses.ts"],"names":[],"mappings":""}
@@ -1,5 +1,9 @@
1
1
  export * from './post.query.js';
2
+ export * from './comment.responses.js';
3
+ export * from './comment.command.js';
2
4
  export * from './post.js';
3
5
  export * from './post.command.js';
6
+ export * from './comment.js';
7
+ export * from './comment.query.js';
4
8
  export * from './post.responses.js';
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/post/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/post/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -1,5 +1,9 @@
1
1
  export * from './post.query.js';
2
+ export * from './comment.responses.js';
3
+ export * from './comment.command.js';
2
4
  export * from './post.js';
3
5
  export * from './post.command.js';
6
+ export * from './comment.js';
7
+ export * from './comment.query.js';
4
8
  export * from './post.responses.js';
5
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/post/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/post/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Post } from './post.js';
1
+ import { Post } from "./post.js";
2
2
  export interface CreatePostCommand {
3
3
  title: string;
4
4
  content: string;
@@ -1 +1 @@
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;CAAG"}
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,7 +1,10 @@
1
+ import { Timestamp } from "../google/protobuf/timestamp.js";
1
2
  export interface Post {
2
3
  id: string;
3
4
  authorId: string;
4
5
  title: string;
5
6
  content: string;
7
+ createdAt: Timestamp | undefined;
8
+ updatedAt: Timestamp | undefined;
6
9
  }
7
10
  //# sourceMappingURL=post.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/post/post.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/post/post.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;CAClC"}
@@ -1,5 +1,5 @@
1
- import { PaginationResponse } from '../common/pagination.js';
2
- import { Post } from './post.js';
1
+ import { PaginationResponse } from "../common/pagination.js";
2
+ import { Post } from "./post.js";
3
3
  export interface GetPostResponse {
4
4
  post: Post | undefined;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts",
3
- "version": "4.1.0",
3
+ "version": "4.1.1-snap-3dde44a",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true