@volontariapp/contracts-nest 2.0.0 → 2.0.1
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/dist/common/pagination.d.ts.map +1 -1
- package/dist/common/timestamp.d.ts.map +1 -1
- package/dist/common/timestamp.js +2 -2
- package/dist/common/timestamp.js.map +1 -1
- package/dist/event/event.command.d.ts.map +1 -1
- package/dist/event/event.command.js +2 -2
- package/dist/event/event.command.js.map +1 -1
- package/dist/event/event.d.ts.map +1 -1
- package/dist/event/event.js +2 -2
- package/dist/event/event.js.map +1 -1
- package/dist/event/event.query.d.ts +1 -1
- package/dist/event/event.responses.d.ts +2 -2
- package/dist/event/event.services.d.ts +4 -4
- package/dist/event/event.services.d.ts.map +1 -1
- package/dist/event/event.services.js +5 -11
- package/dist/event/event.services.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts.map +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.query.d.ts +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 +5 -11
- package/dist/post/post.services.js.map +1 -1
- package/dist/user/user.command.d.ts.map +1 -1
- package/dist/user/user.d.ts.map +1 -1
- package/dist/user/user.query.d.ts +1 -1
- package/dist/user/user.responses.d.ts +2 -2
- package/dist/user/user.services.d.ts +4 -4
- package/dist/user/user.services.d.ts.map +1 -1
- package/dist/user/user.services.js +5 -11
- package/dist/user/user.services.js.map +1 -1
- package/package.json +1 -1
- package/proto/volontariapp/common/pagination.proto +16 -0
- package/proto/volontariapp/common/timestamp.proto +11 -0
- package/proto/volontariapp/event/event.command.proto +27 -0
- package/proto/volontariapp/event/event.proto +15 -0
- package/proto/volontariapp/event/event.query.proto +13 -0
- package/proto/volontariapp/event/event.responses.proto +30 -0
- package/proto/volontariapp/event/event.services.proto +16 -0
- package/proto/volontariapp/post/post.command.proto +19 -0
- package/proto/volontariapp/post/post.proto +11 -0
- package/proto/volontariapp/post/post.query.proto +15 -0
- package/proto/volontariapp/post/post.responses.proto +28 -0
- package/proto/volontariapp/post/post.services.proto +17 -0
- package/proto/volontariapp/user/user.command.proto +23 -0
- package/proto/volontariapp/user/user.proto +11 -0
- package/proto/volontariapp/user/user.query.proto +13 -0
- package/proto/volontariapp/user/user.responses.proto +27 -0
- package/proto/volontariapp/user/user.services.proto +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/common/pagination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/common/pagination.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../src/common/timestamp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../src/common/timestamp.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,GAAG,EAAE,IAAI,GAAG,SAAS,CAAC;CACvB"}
|
package/dist/common/timestamp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _m0 from
|
|
1
|
+
import _m0 from "protobufjs";
|
|
2
2
|
const { wrappers } = _m0;
|
|
3
|
-
wrappers[
|
|
3
|
+
wrappers[".google.protobuf.Timestamp"] = {
|
|
4
4
|
fromObject(value) {
|
|
5
5
|
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
6
6
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../src/common/timestamp.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../src/common/timestamp.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;AAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;AAOvD,QAAQ,CAAC,4BAA4B,CAAC,GAAG;IACvC,UAAU,CAAC,KAAW;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IACpF,CAAC;IACD,QAAQ,CAAC,OAA2C;QAClD,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAChE,CAAC;CACK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.command.d.ts","sourceRoot":"","sources":["../../src/event/event.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.command.d.ts","sourceRoot":"","sources":["../../src/event/event.command.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _m0 from
|
|
1
|
+
import _m0 from "protobufjs";
|
|
2
2
|
const { wrappers } = _m0;
|
|
3
|
-
wrappers[
|
|
3
|
+
wrappers[".google.protobuf.Timestamp"] = {
|
|
4
4
|
fromObject(value) {
|
|
5
5
|
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
6
6
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.command.js","sourceRoot":"","sources":["../../src/event/event.command.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"event.command.js","sourceRoot":"","sources":["../../src/event/event.command.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;AAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;AAwBvD,QAAQ,CAAC,4BAA4B,CAAC,GAAG;IACvC,UAAU,CAAC,KAAW;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IACpF,CAAC;IACD,QAAQ,CAAC,OAA2C;QAClD,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAChE,CAAC;CACK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/event/event.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import _m0 from
|
|
1
|
+
import _m0 from "protobufjs";
|
|
2
2
|
const { wrappers } = _m0;
|
|
3
|
-
wrappers[
|
|
3
|
+
wrappers[".google.protobuf.Timestamp"] = {
|
|
4
4
|
fromObject(value) {
|
|
5
5
|
return { seconds: value.getTime() / 1000, nanos: (value.getTime() % 1000) * 1e6 };
|
|
6
6
|
},
|
package/dist/event/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,YAAY,CAAC;AAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;AAYvD,QAAQ,CAAC,4BAA4B,CAAC,GAAG;IACvC,UAAU,CAAC,KAAW;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IACpF,CAAC;IACD,QAAQ,CAAC,OAA2C;QAClD,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IAChE,CAAC;CACK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaginationResponse } from
|
|
2
|
-
import { Event } from
|
|
1
|
+
import { PaginationResponse } from "../common/pagination.js";
|
|
2
|
+
import { Event } from "./event.js";
|
|
3
3
|
export interface GetEventResponse {
|
|
4
4
|
event: Event | undefined;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { CreateEventCommand, DeleteEventCommand, UpdateEventCommand } from
|
|
3
|
-
import { EventQuery, ListEventsQuery } from
|
|
4
|
-
import { CreateEventResponse, DeleteEventResponse, GetEventResponse, ListEventsResponse, UpdateEventResponse } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CreateEventCommand, DeleteEventCommand, UpdateEventCommand } from "./event.command.js";
|
|
3
|
+
import { EventQuery, ListEventsQuery } from "./event.query.js";
|
|
4
|
+
import { CreateEventResponse, DeleteEventResponse, GetEventResponse, ListEventsResponse, UpdateEventResponse } from "./event.responses.js";
|
|
5
5
|
export interface EventServiceClient {
|
|
6
6
|
getEvent(request: EventQuery): Observable<GetEventResponse>;
|
|
7
7
|
listEvents(request: ListEventsQuery): Observable<ListEventsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.services.d.ts","sourceRoot":"","sources":["../../src/event/event.services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,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kBAAkB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAE1E,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAE1E,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC;IAE3G,UAAU,CACR,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;IAErF,WAAW,CACT,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;IAExF,WAAW,CACT,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;IAExF,WAAW,CACT,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;CACzF;AAED,wBAAgB,6BAA6B,kBACb,QAAQ,UAYvC;AAED,eAAO,MAAM,kBAAkB,iBAAiB,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { GrpcMethod, GrpcStreamMethod } from
|
|
1
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
2
2
|
export function EventServiceControllerMethods() {
|
|
3
3
|
return function (constructor) {
|
|
4
|
-
const grpcMethods = [
|
|
5
|
-
'getEvent',
|
|
6
|
-
'listEvents',
|
|
7
|
-
'createEvent',
|
|
8
|
-
'updateEvent',
|
|
9
|
-
'deleteEvent',
|
|
10
|
-
];
|
|
4
|
+
const grpcMethods = ["getEvent", "listEvents", "createEvent", "updateEvent", "deleteEvent"];
|
|
11
5
|
for (const method of grpcMethods) {
|
|
12
6
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
13
|
-
GrpcMethod(
|
|
7
|
+
GrpcMethod("EventService", method)(constructor.prototype[method], method, descriptor);
|
|
14
8
|
}
|
|
15
9
|
const grpcStreamMethods = [];
|
|
16
10
|
for (const method of grpcStreamMethods) {
|
|
17
11
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
-
GrpcStreamMethod(
|
|
12
|
+
GrpcStreamMethod("EventService", method)(constructor.prototype[method], method, descriptor);
|
|
19
13
|
}
|
|
20
14
|
};
|
|
21
15
|
}
|
|
22
|
-
export const EVENT_SERVICE_NAME =
|
|
16
|
+
export const EVENT_SERVICE_NAME = "EventService";
|
|
23
17
|
//# sourceMappingURL=event.services.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.services.js","sourceRoot":"","sources":["../../src/event/event.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"event.services.js","sourceRoot":"","sources":["../../src/event/event.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA4CrE,MAAM,UAAU,6BAA6B;IAC3C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa,CAAC,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;QACtG,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,cAAc,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACxF,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,cAAc,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC9F,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/google/protobuf/timestamp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/google/protobuf/timestamp.ts"],"names":[],"mappings":"AAmGA,MAAM,WAAW,SAAS;IAMxB,OAAO,EAAE,MAAM,CAAC;IAQhB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.command.d.ts","sourceRoot":"","sources":["../../src/post/post.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post.command.d.ts","sourceRoot":"","sources":["../../src/post/post.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,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"}
|
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":"AAQA,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 { CreatePostCommand, DeletePostCommand, UpdatePostCommand } from
|
|
3
|
-
import { ListPostsQuery, PostQuery } from
|
|
4
|
-
import { CreatePostResponse, DeletePostResponse, GetPostResponse, ListPostsResponse, UpdatePostResponse } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CreatePostCommand, DeletePostCommand, UpdatePostCommand } from "./post.command.js";
|
|
3
|
+
import { ListPostsQuery, PostQuery } from "./post.query.js";
|
|
4
|
+
import { CreatePostResponse, DeletePostResponse, GetPostResponse, ListPostsResponse, UpdatePostResponse } from "./post.responses.js";
|
|
5
5
|
export interface PostServiceClient {
|
|
6
6
|
getPost(request: PostQuery): 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,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAA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U,CAAC,kBAAkB,CAAC,CAAC;IAEvE,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEvE,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC;IAEtG,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAAG,UAAU,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;IAEnH,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,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;CACtF;AAED,wBAAgB,4BAA4B,kBACZ,QAAQ,UAYvC;AAED,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { GrpcMethod, GrpcStreamMethod } from
|
|
1
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
2
2
|
export function PostServiceControllerMethods() {
|
|
3
3
|
return function (constructor) {
|
|
4
|
-
const grpcMethods = [
|
|
5
|
-
'getPost',
|
|
6
|
-
'listPosts',
|
|
7
|
-
'createPost',
|
|
8
|
-
'updatePost',
|
|
9
|
-
'deletePost',
|
|
10
|
-
];
|
|
4
|
+
const grpcMethods = ["getPost", "listPosts", "createPost", "updatePost", "deletePost"];
|
|
11
5
|
for (const method of grpcMethods) {
|
|
12
6
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
13
|
-
GrpcMethod(
|
|
7
|
+
GrpcMethod("PostService", method)(constructor.prototype[method], method, descriptor);
|
|
14
8
|
}
|
|
15
9
|
const grpcStreamMethods = [];
|
|
16
10
|
for (const method of grpcStreamMethods) {
|
|
17
11
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
-
GrpcStreamMethod(
|
|
12
|
+
GrpcStreamMethod("PostService", method)(constructor.prototype[method], method, descriptor);
|
|
19
13
|
}
|
|
20
14
|
};
|
|
21
15
|
}
|
|
22
|
-
export const POST_SERVICE_NAME =
|
|
16
|
+
export const POST_SERVICE_NAME = "PostService";
|
|
23
17
|
//# 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;AA0CrE,MAAM,UAAU,4BAA4B;IAC1C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QACjG,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.command.d.ts","sourceRoot":"","sources":["../../src/user/user.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.command.d.ts","sourceRoot":"","sources":["../../src/user/user.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
package/dist/user/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { CreateUserCommand, DeleteUserCommand, UpdateUserCommand } from
|
|
3
|
-
import { ListUsersQuery, UserQuery } from
|
|
4
|
-
import { CreateUserResponse, DeleteUserResponse, GetUserResponse, ListUsersResponse, UpdateUserResponse } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CreateUserCommand, DeleteUserCommand, UpdateUserCommand } from "./user.command.js";
|
|
3
|
+
import { ListUsersQuery, UserQuery } from "./user.query.js";
|
|
4
|
+
import { CreateUserResponse, DeleteUserResponse, GetUserResponse, ListUsersResponse, UpdateUserResponse } from "./user.responses.js";
|
|
5
5
|
export interface UserServiceClient {
|
|
6
6
|
getUser(request: UserQuery): Observable<GetUserResponse>;
|
|
7
7
|
listUsers(request: ListUsersQuery): Observable<ListUsersResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.services.d.ts","sourceRoot":"","sources":["../../src/user/user.services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAC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AG,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACxE;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC;IAEtG,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAAG,UAAU,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC;IAEnH,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,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;CACtF;AAED,wBAAgB,4BAA4B,kBACZ,QAAQ,UAYvC;AAED,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { GrpcMethod, GrpcStreamMethod } from
|
|
1
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
2
2
|
export function UserServiceControllerMethods() {
|
|
3
3
|
return function (constructor) {
|
|
4
|
-
const grpcMethods = [
|
|
5
|
-
'getUser',
|
|
6
|
-
'listUsers',
|
|
7
|
-
'createUser',
|
|
8
|
-
'updateUser',
|
|
9
|
-
'deleteUser',
|
|
10
|
-
];
|
|
4
|
+
const grpcMethods = ["getUser", "listUsers", "createUser", "updateUser", "deleteUser"];
|
|
11
5
|
for (const method of grpcMethods) {
|
|
12
6
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
13
|
-
GrpcMethod(
|
|
7
|
+
GrpcMethod("UserService", method)(constructor.prototype[method], method, descriptor);
|
|
14
8
|
}
|
|
15
9
|
const grpcStreamMethods = [];
|
|
16
10
|
for (const method of grpcStreamMethods) {
|
|
17
11
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
18
|
-
GrpcStreamMethod(
|
|
12
|
+
GrpcStreamMethod("UserService", method)(constructor.prototype[method], method, descriptor);
|
|
19
13
|
}
|
|
20
14
|
};
|
|
21
15
|
}
|
|
22
|
-
export const USER_SERVICE_NAME =
|
|
16
|
+
export const USER_SERVICE_NAME = "UserService";
|
|
23
17
|
//# sourceMappingURL=user.services.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.services.js","sourceRoot":"","sources":["../../src/user/user.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.services.js","sourceRoot":"","sources":["../../src/user/user.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA0CrE,MAAM,UAAU,4BAA4B;IAC1C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QACjG,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"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.common;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
message PaginationRequest {
|
|
7
|
+
int32 page = 1;
|
|
8
|
+
int32 limit = 2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message PaginationResponse {
|
|
12
|
+
int32 total = 1;
|
|
13
|
+
int32 page = 2;
|
|
14
|
+
int32 limit = 3;
|
|
15
|
+
int32 total_pages = 4;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.event;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
|
|
7
|
+
message CreateEventCommand {
|
|
8
|
+
string title = 1;
|
|
9
|
+
string description = 2;
|
|
10
|
+
google.protobuf.Timestamp start_date = 3;
|
|
11
|
+
google.protobuf.Timestamp end_date = 4;
|
|
12
|
+
string location = 5;
|
|
13
|
+
string organizer_id = 6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message UpdateEventCommand {
|
|
17
|
+
string id = 1;
|
|
18
|
+
optional string title = 2;
|
|
19
|
+
optional string description = 3;
|
|
20
|
+
optional google.protobuf.Timestamp start_date = 4;
|
|
21
|
+
optional google.protobuf.Timestamp end_date = 5;
|
|
22
|
+
optional string location = 6;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message DeleteEventCommand {
|
|
26
|
+
string id = 1;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.event;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
|
|
7
|
+
message Event {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string title = 2;
|
|
10
|
+
string description = 3;
|
|
11
|
+
google.protobuf.Timestamp start_date = 4;
|
|
12
|
+
google.protobuf.Timestamp end_date = 5;
|
|
13
|
+
string location = 6;
|
|
14
|
+
string organizer_id = 7;
|
|
15
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.event;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/common/pagination.proto";
|
|
6
|
+
import "volontariapp/event/event.proto";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
message GetEventResponse {
|
|
12
|
+
Event event = 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message CreateEventResponse {
|
|
16
|
+
Event event = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message UpdateEventResponse {
|
|
20
|
+
Event event = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message ListEventsResponse {
|
|
24
|
+
repeated Event events = 1;
|
|
25
|
+
volontariapp.common.PaginationResponse pagination = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message DeleteEventResponse {
|
|
29
|
+
bool success = 1;
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.event;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/event/event.query.proto";
|
|
6
|
+
import "volontariapp/event/event.command.proto";
|
|
7
|
+
import "volontariapp/event/event.responses.proto";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
service EventService {
|
|
11
|
+
rpc GetEvent (EventQuery) returns (GetEventResponse) {}
|
|
12
|
+
rpc ListEvents (ListEventsQuery) returns (ListEventsResponse) {}
|
|
13
|
+
rpc CreateEvent (CreateEventCommand) returns (CreateEventResponse) {}
|
|
14
|
+
rpc UpdateEvent (UpdateEventCommand) returns (UpdateEventResponse) {}
|
|
15
|
+
rpc DeleteEvent (DeleteEventCommand) returns (DeleteEventResponse) {}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.post;
|
|
4
|
+
|
|
5
|
+
message CreatePostCommand {
|
|
6
|
+
string author_id = 1;
|
|
7
|
+
string title = 2;
|
|
8
|
+
string content = 3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message UpdatePostCommand {
|
|
12
|
+
string id = 1;
|
|
13
|
+
optional string title = 2;
|
|
14
|
+
optional string content = 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message DeletePostCommand {
|
|
18
|
+
string id = 1;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.post;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/common/pagination.proto";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
message PostQuery {
|
|
9
|
+
string id = 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message ListPostsQuery {
|
|
13
|
+
volontariapp.common.PaginationRequest pagination = 1;
|
|
14
|
+
optional string author_id = 2;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.post;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/common/pagination.proto";
|
|
6
|
+
import "volontariapp/post/post.proto";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
message GetPostResponse {
|
|
10
|
+
Post post = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message CreatePostResponse {
|
|
14
|
+
Post post = 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message UpdatePostResponse {
|
|
18
|
+
Post post = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message ListPostsResponse {
|
|
22
|
+
repeated Post posts = 1;
|
|
23
|
+
volontariapp.common.PaginationResponse pagination = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message DeletePostResponse {
|
|
27
|
+
bool success = 1;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.post;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/post/post.query.proto";
|
|
6
|
+
import "volontariapp/post/post.command.proto";
|
|
7
|
+
import "volontariapp/post/post.responses.proto";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
service PostService {
|
|
12
|
+
rpc GetPost (PostQuery) returns (GetPostResponse) {}
|
|
13
|
+
rpc ListPosts (ListPostsQuery) returns (ListPostsResponse) {}
|
|
14
|
+
rpc CreatePost (CreatePostCommand) returns (CreatePostResponse) {}
|
|
15
|
+
rpc UpdatePost (UpdatePostCommand) returns (UpdatePostResponse) {}
|
|
16
|
+
rpc DeletePost (DeletePostCommand) returns (DeletePostResponse) {}
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.user;
|
|
4
|
+
|
|
5
|
+
message CreateUserCommand {
|
|
6
|
+
string email = 1;
|
|
7
|
+
string first_name = 2;
|
|
8
|
+
string last_name = 3;
|
|
9
|
+
string password = 4;
|
|
10
|
+
string role = 5;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message UpdateUserCommand {
|
|
14
|
+
string id = 1;
|
|
15
|
+
optional string email = 2;
|
|
16
|
+
optional string first_name = 3;
|
|
17
|
+
optional string last_name = 4;
|
|
18
|
+
optional string role = 5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message DeleteUserCommand {
|
|
22
|
+
string id = 1;
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.user;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/common/pagination.proto";
|
|
6
|
+
import "volontariapp/user/user.proto";
|
|
7
|
+
|
|
8
|
+
message GetUserResponse {
|
|
9
|
+
User user = 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message CreateUserResponse {
|
|
13
|
+
User user = 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message UpdateUserResponse {
|
|
17
|
+
User user = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message ListUsersResponse {
|
|
21
|
+
repeated User users = 1;
|
|
22
|
+
volontariapp.common.PaginationResponse pagination = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message DeleteUserResponse {
|
|
26
|
+
bool success = 1;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package volontariapp.user;
|
|
4
|
+
|
|
5
|
+
import "volontariapp/user/user.query.proto";
|
|
6
|
+
import "volontariapp/user/user.command.proto";
|
|
7
|
+
import "volontariapp/user/user.responses.proto";
|
|
8
|
+
|
|
9
|
+
service UserService {
|
|
10
|
+
rpc GetUser (UserQuery) returns (GetUserResponse) {}
|
|
11
|
+
rpc ListUsers (ListUsersQuery) returns (ListUsersResponse) {}
|
|
12
|
+
rpc CreateUser (CreateUserCommand) returns (CreateUserResponse) {}
|
|
13
|
+
rpc UpdateUser (UpdateUserCommand) returns (UpdateUserResponse) {}
|
|
14
|
+
rpc DeleteUser (DeleteUserCommand) returns (DeleteUserResponse) {}
|
|
15
|
+
}
|