@volontariapp/contracts-nest 3.1.4-snap-499474c → 3.1.4
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 +1 -1
- package/dist/post/post.command.d.ts +1 -1
- package/dist/post/post.command.d.ts.map +1 -1
- package/dist/post/post.d.ts.map +1 -1
- package/dist/post/post.responses.d.ts +2 -2
- package/dist/post/post.services.d.ts +4 -4
- package/dist/post/post.services.d.ts.map +1 -1
- package/dist/post/post.services.js +11 -11
- package/dist/post/post.services.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Auto-generated proto typings update for both pure contracts and NestJS integration.
|
|
8
8
|
|
|
9
9
|
## 3.1.3
|
|
10
10
|
|
|
@@ -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;
|
|
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"}
|
package/dist/post/post.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/post/post.ts"],"names":[],"mappings":"
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { AdminCreatePostCommand, CreatePostCommand, DeleteMyPostsCommand, DeletePostCommand, UpdatePostCommand } from
|
|
3
|
-
import { GetPostQuery, ListPostsQuery } from
|
|
4
|
-
import { AdminCreatePostResponse, CreatePostResponse, DeleteMyPostsResponse, DeletePostResponse, GetPostResponse, ListPostsResponse, UpdatePostResponse } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
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
6
|
getPost(request: GetPostQuery): Observable<GetPostResponse>;
|
|
7
7
|
listPosts(request: ListPostsQuery): Observable<ListPostsResponse>;
|
|
@@ -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,EACL,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE5D,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAElE,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEvE,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAEtF,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEvE,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEvE,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,UAAU,C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ACP,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,iBAAiB,CAAC,GAAG,UAAU,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;IAElF,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IAErF,eAAe,CACb,OAAO,EAAE,sBAAsB,GAE7B,OAAO,CAAC,uBAAuB,CAAC,GAChC,UAAU,CAAC,uBAAuB,CAAC,GACnC,uBAAuB,CAAC;IAE5B,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,25 +1,25 @@
|
|
|
1
|
-
import { GrpcMethod, GrpcStreamMethod } from
|
|
1
|
+
import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
|
|
2
2
|
export function PostServiceControllerMethods() {
|
|
3
3
|
return function (constructor) {
|
|
4
4
|
const grpcMethods = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
'getPost',
|
|
6
|
+
'listPosts',
|
|
7
|
+
'createPost',
|
|
8
|
+
'adminCreatePost',
|
|
9
|
+
'updatePost',
|
|
10
|
+
'deletePost',
|
|
11
|
+
'deleteMyPosts',
|
|
12
12
|
];
|
|
13
13
|
for (const method of grpcMethods) {
|
|
14
14
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
15
|
-
GrpcMethod(
|
|
15
|
+
GrpcMethod('PostService', method)(constructor.prototype[method], method, descriptor);
|
|
16
16
|
}
|
|
17
17
|
const grpcStreamMethods = [];
|
|
18
18
|
for (const method of grpcStreamMethods) {
|
|
19
19
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
-
GrpcStreamMethod(
|
|
20
|
+
GrpcStreamMethod('PostService', method)(constructor.prototype[method], method, descriptor);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export const POST_SERVICE_NAME =
|
|
24
|
+
export const POST_SERVICE_NAME = 'PostService';
|
|
25
25
|
//# sourceMappingURL=post.services.js.map
|
|
@@ -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,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"post.services.js","sourceRoot":"","sources":["../../src/post/post.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAqErE,MAAM,UAAU,4BAA4B;IAC1C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa;YAC5B,SAAS;YACT,WAAW;YACX,YAAY;YACZ,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,eAAe;SAChB,CAAC;QACF,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;YACjC,MAAM,UAAU,GAAQ,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"}
|