@volontariapp/contracts-nest 2.2.9 → 3.0.0-snap-cf24bfa

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/social/index.d.ts +6 -0
  7. package/dist/social/index.d.ts.map +1 -0
  8. package/dist/social/index.js +6 -0
  9. package/dist/social/index.js.map +1 -0
  10. package/dist/social/social.command.d.ts +75 -0
  11. package/dist/social/social.command.d.ts.map +1 -0
  12. package/dist/social/social.command.js +2 -0
  13. package/dist/social/social.command.js.map +1 -0
  14. package/dist/social/social.d.ts +10 -0
  15. package/dist/social/social.d.ts.map +1 -0
  16. package/dist/social/social.js +2 -0
  17. package/dist/social/social.js.map +1 -0
  18. package/dist/social/social.query.d.ts +59 -0
  19. package/dist/social/social.query.d.ts.map +1 -0
  20. package/dist/social/social.query.js +2 -0
  21. package/dist/social/social.query.js.map +1 -0
  22. package/dist/social/social.responses.d.ts +99 -0
  23. package/dist/social/social.responses.d.ts.map +1 -0
  24. package/dist/social/social.responses.js +2 -0
  25. package/dist/social/social.responses.js.map +1 -0
  26. package/dist/social/social.services.d.ts +147 -0
  27. package/dist/social/social.services.d.ts.map +1 -0
  28. package/dist/social/social.services.js +189 -0
  29. package/dist/social/social.services.js.map +1 -0
  30. package/package.json +1 -1
  31. package/proto/volontariapp/social/social.command.proto +97 -0
  32. package/proto/volontariapp/social/social.proto +15 -0
  33. package/proto/volontariapp/social/social.query.proto +77 -0
  34. package/proto/volontariapp/social/social.responses.proto +93 -0
  35. package/proto/volontariapp/social/social.services.proto +78 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Contract social added
8
+
3
9
  ## 2.2.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -7,4 +7,5 @@ export * from './post/grpc-helpers.js';
7
7
  export * from './user/grpc-helpers.js';
8
8
  export * from './date.mapper.js';
9
9
  export * from './google/protobuf/timestamp.js';
10
+ export * from './social/index.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -7,4 +7,5 @@ export * from './post/grpc-helpers.js';
7
7
  export * from './user/grpc-helpers.js';
8
8
  export * from './date.mapper.js';
9
9
  export * from './google/protobuf/timestamp.js';
10
+ export * from './social/index.js';
10
11
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './social.responses.js';
2
+ export * from './social.js';
3
+ export * from './social.command.js';
4
+ export * from './social.services.js';
5
+ export * from './social.query.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './social.responses.js';
2
+ export * from './social.js';
3
+ export * from './social.command.js';
4
+ export * from './social.services.js';
5
+ export * from './social.query.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,75 @@
1
+ export interface CreateSocialUserCommand {
2
+ userId: string;
3
+ }
4
+ export interface DeleteSocialUserCommand {
5
+ userId: string;
6
+ }
7
+ export interface PostFollowUserCommand {
8
+ followerId: string;
9
+ followedId: string;
10
+ }
11
+ export interface DeleteFollowUserCommand {
12
+ followerId: string;
13
+ followedId: string;
14
+ }
15
+ export interface PostBlockUserCommand {
16
+ blockerId: string;
17
+ blockedId: string;
18
+ }
19
+ export interface DeleteBlockUserCommand {
20
+ blockerId: string;
21
+ blockedId: string;
22
+ }
23
+ export interface CreateSocialPostCommand {
24
+ postId: string;
25
+ }
26
+ export interface DeleteSocialPostCommand {
27
+ postId: string;
28
+ }
29
+ export interface PostUserOwnCommand {
30
+ userId: string;
31
+ postId: string;
32
+ }
33
+ export interface DeleteUserOwnCommand {
34
+ userId: string;
35
+ postId: string;
36
+ }
37
+ export interface PostLikePostCommand {
38
+ userId: string;
39
+ postId: string;
40
+ }
41
+ export interface DeleteLikePostCommand {
42
+ userId: string;
43
+ postId: string;
44
+ }
45
+ export interface CreateSocialEventCommand {
46
+ eventId: string;
47
+ }
48
+ export interface DeleteSocialEventCommand {
49
+ eventId: string;
50
+ }
51
+ export interface PostUserEventCommand {
52
+ userId: string;
53
+ eventId: string;
54
+ }
55
+ export interface DeleteUserEventCommand {
56
+ userId: string;
57
+ eventId: string;
58
+ }
59
+ export interface PostUserParticipateEventCommand {
60
+ userId: string;
61
+ eventId: string;
62
+ }
63
+ export interface DeleteUserParticipateEventCommand {
64
+ userId: string;
65
+ eventId: string;
66
+ }
67
+ export interface LinkPostToEventCommand {
68
+ postId: string;
69
+ eventId: string;
70
+ }
71
+ export interface UnlinkPostFromEventCommand {
72
+ postId: string;
73
+ eventId: string;
74
+ }
75
+ //# sourceMappingURL=social.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.command.d.ts","sourceRoot":"","sources":["../../src/social/social.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,M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;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.command.js","sourceRoot":"","sources":["../../src/social/social.command.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export interface SocialUser {
2
+ userId: string;
3
+ }
4
+ export interface SocialPost {
5
+ postId: string;
6
+ }
7
+ export interface SocialEvent {
8
+ eventId: string;
9
+ }
10
+ //# sourceMappingURL=social.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/social/social.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/social/social.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ import { PaginationRequest } from "../common/pagination.js";
2
+ export interface GetSocialUserQuery {
3
+ userId: string;
4
+ }
5
+ export interface GetMyFollowsQuery {
6
+ userId: string;
7
+ pagination: PaginationRequest | undefined;
8
+ }
9
+ export interface GetMyFollowersQuery {
10
+ userId: string;
11
+ pagination: PaginationRequest | undefined;
12
+ }
13
+ export interface GetMyBlocksQuery {
14
+ userId: string;
15
+ pagination: PaginationRequest | undefined;
16
+ }
17
+ export interface GetWhoBlockedMeQuery {
18
+ userId: string;
19
+ pagination: PaginationRequest | undefined;
20
+ }
21
+ export interface GetSocialPostQuery {
22
+ postId: string;
23
+ }
24
+ export interface GetUserPostsQuery {
25
+ userId: string;
26
+ pagination: PaginationRequest | undefined;
27
+ }
28
+ export interface GetFeedQuery {
29
+ userId: string;
30
+ pagination: PaginationRequest | undefined;
31
+ }
32
+ export interface GetUserLikesQuery {
33
+ userId: string;
34
+ pagination: PaginationRequest | undefined;
35
+ }
36
+ export interface GetPostLikersQuery {
37
+ postId: string;
38
+ pagination: PaginationRequest | undefined;
39
+ }
40
+ export interface GetUserEventQuery {
41
+ userId: string;
42
+ pagination: PaginationRequest | undefined;
43
+ }
44
+ export interface GetUserParticipateEventQuery {
45
+ userId: string;
46
+ pagination: PaginationRequest | undefined;
47
+ }
48
+ export interface GetEventParticipantsQuery {
49
+ eventId: string;
50
+ pagination: PaginationRequest | undefined;
51
+ }
52
+ export interface GetEventRelatedToPostQuery {
53
+ postId: string;
54
+ }
55
+ export interface GetEventPostsQuery {
56
+ eventId: string;
57
+ pagination: PaginationRequest | undefined;
58
+ }
59
+ //# sourceMappingURL=social.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.query.d.ts","sourceRoot":"","sources":["../../src/social/social.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,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0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.query.js","sourceRoot":"","sources":["../../src/social/social.query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,99 @@
1
+ import { PaginationResponse } from "../common/pagination.js";
2
+ export interface CreateUserNodeResponse {
3
+ }
4
+ export interface DeleteUserNodeResponse {
5
+ }
6
+ export interface GetUserNodeResponse {
7
+ exists: boolean;
8
+ }
9
+ export interface PostFollowUserResponse {
10
+ }
11
+ export interface DeleteFollowUserResponse {
12
+ }
13
+ export interface PostBlockUserResponse {
14
+ }
15
+ export interface DeleteBlockUserResponse {
16
+ }
17
+ export interface GetMyFollowsResponse {
18
+ ids: string[];
19
+ pagination: PaginationResponse | undefined;
20
+ }
21
+ export interface GetMyFollowersResponse {
22
+ ids: string[];
23
+ pagination: PaginationResponse | undefined;
24
+ }
25
+ export interface GetMyBlocksResponse {
26
+ ids: string[];
27
+ pagination: PaginationResponse | undefined;
28
+ }
29
+ export interface GetWhoBlockedMeResponse {
30
+ ids: string[];
31
+ pagination: PaginationResponse | undefined;
32
+ }
33
+ export interface CreatePostNodeResponse {
34
+ }
35
+ export interface DeletePostNodeResponse {
36
+ }
37
+ export interface PostUserOwnResponse {
38
+ }
39
+ export interface DeleteUserOwnResponse {
40
+ }
41
+ export interface GetPostNodeResponse {
42
+ exists: boolean;
43
+ }
44
+ export interface GetUserPostsResponse {
45
+ ids: string[];
46
+ pagination: PaginationResponse | undefined;
47
+ }
48
+ export interface GetFeedResponse {
49
+ ids: string[];
50
+ pagination: PaginationResponse | undefined;
51
+ }
52
+ export interface PostLikePostResponse {
53
+ }
54
+ export interface DeleteLikePostResponse {
55
+ }
56
+ export interface GetUserLikesResponse {
57
+ ids: string[];
58
+ pagination: PaginationResponse | undefined;
59
+ }
60
+ export interface GetPostLikersResponse {
61
+ ids: string[];
62
+ pagination: PaginationResponse | undefined;
63
+ }
64
+ export interface CreateEventNodeResponse {
65
+ }
66
+ export interface DeleteEventNodeResponse {
67
+ }
68
+ export interface PostUserEventResponse {
69
+ }
70
+ export interface DeleteUserEventResponse {
71
+ }
72
+ export interface PostUserParticipateEventResponse {
73
+ }
74
+ export interface DeleteUserParticipateEventResponse {
75
+ }
76
+ export interface GetUserEventResponse {
77
+ ids: string[];
78
+ pagination: PaginationResponse | undefined;
79
+ }
80
+ export interface GetUserParticipateEventResponse {
81
+ ids: string[];
82
+ pagination: PaginationResponse | undefined;
83
+ }
84
+ export interface GetEventParticipantsResponse {
85
+ ids: string[];
86
+ pagination: PaginationResponse | undefined;
87
+ }
88
+ export interface LinkPostToEventResponse {
89
+ }
90
+ export interface UnlinkPostFromEventResponse {
91
+ }
92
+ export interface GetEventRelatedToPostResponse {
93
+ eventId: string;
94
+ }
95
+ export interface GetEventPostsResponse {
96
+ ids: string[];
97
+ pagination: PaginationResponse | undefined;
98
+ }
99
+ //# sourceMappingURL=social.responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.responses.d.ts","sourceRoot":"","sources":["../../src/social/social.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,sBAAsB;CACtC;AAED,MAAM,WAAW,sBAAsB;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;CACtC;AAED,MAAM,WAAW,wBAAwB;CACxC;AAED,MAAM,WAAW,qBAAqB;CACrC;AAED,MAAM,WAAW,uBAAuB;CACvC;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAA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C9C,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,uBAAuB;CACvC;AAED,MAAM,WAAW,2BAA2B;CAC3C;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social.responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.responses.js","sourceRoot":"","sources":["../../src/social/social.responses.ts"],"names":[],"mappings":""}
@@ -0,0 +1,147 @@
1
+ import { Observable } from "rxjs";
2
+ import { CreateSocialEventCommand, CreateSocialPostCommand, CreateSocialUserCommand, DeleteBlockUserCommand, DeleteFollowUserCommand, DeleteLikePostCommand, DeleteSocialEventCommand, DeleteSocialPostCommand, DeleteSocialUserCommand, DeleteUserEventCommand, DeleteUserOwnCommand, DeleteUserParticipateEventCommand, LinkPostToEventCommand, PostBlockUserCommand, PostFollowUserCommand, PostLikePostCommand, PostUserEventCommand, PostUserOwnCommand, PostUserParticipateEventCommand, UnlinkPostFromEventCommand } from "./social.command.js";
3
+ import { GetEventParticipantsQuery, GetEventPostsQuery, GetEventRelatedToPostQuery, GetFeedQuery, GetMyBlocksQuery, GetMyFollowersQuery, GetMyFollowsQuery, GetPostLikersQuery, GetSocialPostQuery, GetSocialUserQuery, GetUserEventQuery, GetUserLikesQuery, GetUserParticipateEventQuery, GetUserPostsQuery, GetWhoBlockedMeQuery } from "./social.query.js";
4
+ import { CreateEventNodeResponse, CreatePostNodeResponse, CreateUserNodeResponse, DeleteBlockUserResponse, DeleteEventNodeResponse, DeleteFollowUserResponse, DeleteLikePostResponse, DeletePostNodeResponse, DeleteUserEventResponse, DeleteUserNodeResponse, DeleteUserOwnResponse, DeleteUserParticipateEventResponse, GetEventParticipantsResponse, GetEventPostsResponse, GetEventRelatedToPostResponse, GetFeedResponse, GetMyBlocksResponse, GetMyFollowersResponse, GetMyFollowsResponse, GetPostLikersResponse, GetPostNodeResponse, GetUserEventResponse, GetUserLikesResponse, GetUserNodeResponse, GetUserParticipateEventResponse, GetUserPostsResponse, GetWhoBlockedMeResponse, LinkPostToEventResponse, PostBlockUserResponse, PostFollowUserResponse, PostLikePostResponse, PostUserEventResponse, PostUserOwnResponse, PostUserParticipateEventResponse, UnlinkPostFromEventResponse } from "./social.responses.js";
5
+ export interface SocialUserNodeCommandServiceClient {
6
+ createUserNode(request: CreateSocialUserCommand): Observable<CreateUserNodeResponse>;
7
+ deleteUserNode(request: DeleteSocialUserCommand): Observable<DeleteUserNodeResponse>;
8
+ }
9
+ export interface SocialUserNodeCommandServiceController {
10
+ createUserNode(request: CreateSocialUserCommand): Promise<CreateUserNodeResponse> | Observable<CreateUserNodeResponse> | CreateUserNodeResponse;
11
+ deleteUserNode(request: DeleteSocialUserCommand): Promise<DeleteUserNodeResponse> | Observable<DeleteUserNodeResponse> | DeleteUserNodeResponse;
12
+ }
13
+ export declare function SocialUserNodeCommandServiceControllerMethods(): (constructor: Function) => void;
14
+ export declare const SOCIAL_USER_NODE_COMMAND_SERVICE_NAME = "SocialUserNodeCommandService";
15
+ export interface SocialUserNodeQueryServiceClient {
16
+ getUserNode(request: GetSocialUserQuery): Observable<GetUserNodeResponse>;
17
+ }
18
+ export interface SocialUserNodeQueryServiceController {
19
+ getUserNode(request: GetSocialUserQuery): Promise<GetUserNodeResponse> | Observable<GetUserNodeResponse> | GetUserNodeResponse;
20
+ }
21
+ export declare function SocialUserNodeQueryServiceControllerMethods(): (constructor: Function) => void;
22
+ export declare const SOCIAL_USER_NODE_QUERY_SERVICE_NAME = "SocialUserNodeQueryService";
23
+ export interface RelationshipCommandServiceClient {
24
+ postFollowUser(request: PostFollowUserCommand): Observable<PostFollowUserResponse>;
25
+ deleteFollowUser(request: DeleteFollowUserCommand): Observable<DeleteFollowUserResponse>;
26
+ postBlockUser(request: PostBlockUserCommand): Observable<PostBlockUserResponse>;
27
+ deleteBlockUser(request: DeleteBlockUserCommand): Observable<DeleteBlockUserResponse>;
28
+ }
29
+ export interface RelationshipCommandServiceController {
30
+ postFollowUser(request: PostFollowUserCommand): Promise<PostFollowUserResponse> | Observable<PostFollowUserResponse> | PostFollowUserResponse;
31
+ deleteFollowUser(request: DeleteFollowUserCommand): Promise<DeleteFollowUserResponse> | Observable<DeleteFollowUserResponse> | DeleteFollowUserResponse;
32
+ postBlockUser(request: PostBlockUserCommand): Promise<PostBlockUserResponse> | Observable<PostBlockUserResponse> | PostBlockUserResponse;
33
+ deleteBlockUser(request: DeleteBlockUserCommand): Promise<DeleteBlockUserResponse> | Observable<DeleteBlockUserResponse> | DeleteBlockUserResponse;
34
+ }
35
+ export declare function RelationshipCommandServiceControllerMethods(): (constructor: Function) => void;
36
+ export declare const RELATIONSHIP_COMMAND_SERVICE_NAME = "RelationshipCommandService";
37
+ export interface RelationshipQueryServiceClient {
38
+ getMyFollows(request: GetMyFollowsQuery): Observable<GetMyFollowsResponse>;
39
+ getMyFollowers(request: GetMyFollowersQuery): Observable<GetMyFollowersResponse>;
40
+ getMyBlocks(request: GetMyBlocksQuery): Observable<GetMyBlocksResponse>;
41
+ getWhoBlockedMe(request: GetWhoBlockedMeQuery): Observable<GetWhoBlockedMeResponse>;
42
+ }
43
+ export interface RelationshipQueryServiceController {
44
+ getMyFollows(request: GetMyFollowsQuery): Promise<GetMyFollowsResponse> | Observable<GetMyFollowsResponse> | GetMyFollowsResponse;
45
+ getMyFollowers(request: GetMyFollowersQuery): Promise<GetMyFollowersResponse> | Observable<GetMyFollowersResponse> | GetMyFollowersResponse;
46
+ getMyBlocks(request: GetMyBlocksQuery): Promise<GetMyBlocksResponse> | Observable<GetMyBlocksResponse> | GetMyBlocksResponse;
47
+ getWhoBlockedMe(request: GetWhoBlockedMeQuery): Promise<GetWhoBlockedMeResponse> | Observable<GetWhoBlockedMeResponse> | GetWhoBlockedMeResponse;
48
+ }
49
+ export declare function RelationshipQueryServiceControllerMethods(): (constructor: Function) => void;
50
+ export declare const RELATIONSHIP_QUERY_SERVICE_NAME = "RelationshipQueryService";
51
+ export interface PublicationCommandServiceClient {
52
+ createPostNode(request: CreateSocialPostCommand): Observable<CreatePostNodeResponse>;
53
+ deletePostNode(request: DeleteSocialPostCommand): Observable<DeletePostNodeResponse>;
54
+ postUserOwn(request: PostUserOwnCommand): Observable<PostUserOwnResponse>;
55
+ deleteUserOwn(request: DeleteUserOwnCommand): Observable<DeleteUserOwnResponse>;
56
+ }
57
+ export interface PublicationCommandServiceController {
58
+ createPostNode(request: CreateSocialPostCommand): Promise<CreatePostNodeResponse> | Observable<CreatePostNodeResponse> | CreatePostNodeResponse;
59
+ deletePostNode(request: DeleteSocialPostCommand): Promise<DeletePostNodeResponse> | Observable<DeletePostNodeResponse> | DeletePostNodeResponse;
60
+ postUserOwn(request: PostUserOwnCommand): Promise<PostUserOwnResponse> | Observable<PostUserOwnResponse> | PostUserOwnResponse;
61
+ deleteUserOwn(request: DeleteUserOwnCommand): Promise<DeleteUserOwnResponse> | Observable<DeleteUserOwnResponse> | DeleteUserOwnResponse;
62
+ }
63
+ export declare function PublicationCommandServiceControllerMethods(): (constructor: Function) => void;
64
+ export declare const PUBLICATION_COMMAND_SERVICE_NAME = "PublicationCommandService";
65
+ export interface PublicationQueryServiceClient {
66
+ getPostNode(request: GetSocialPostQuery): Observable<GetPostNodeResponse>;
67
+ getUserPosts(request: GetUserPostsQuery): Observable<GetUserPostsResponse>;
68
+ getFeed(request: GetFeedQuery): Observable<GetFeedResponse>;
69
+ }
70
+ export interface PublicationQueryServiceController {
71
+ getPostNode(request: GetSocialPostQuery): Promise<GetPostNodeResponse> | Observable<GetPostNodeResponse> | GetPostNodeResponse;
72
+ getUserPosts(request: GetUserPostsQuery): Promise<GetUserPostsResponse> | Observable<GetUserPostsResponse> | GetUserPostsResponse;
73
+ getFeed(request: GetFeedQuery): Promise<GetFeedResponse> | Observable<GetFeedResponse> | GetFeedResponse;
74
+ }
75
+ export declare function PublicationQueryServiceControllerMethods(): (constructor: Function) => void;
76
+ export declare const PUBLICATION_QUERY_SERVICE_NAME = "PublicationQueryService";
77
+ export interface InteractionCommandServiceClient {
78
+ postLikePost(request: PostLikePostCommand): Observable<PostLikePostResponse>;
79
+ deleteLikePost(request: DeleteLikePostCommand): Observable<DeleteLikePostResponse>;
80
+ }
81
+ export interface InteractionCommandServiceController {
82
+ postLikePost(request: PostLikePostCommand): Promise<PostLikePostResponse> | Observable<PostLikePostResponse> | PostLikePostResponse;
83
+ deleteLikePost(request: DeleteLikePostCommand): Promise<DeleteLikePostResponse> | Observable<DeleteLikePostResponse> | DeleteLikePostResponse;
84
+ }
85
+ export declare function InteractionCommandServiceControllerMethods(): (constructor: Function) => void;
86
+ export declare const INTERACTION_COMMAND_SERVICE_NAME = "InteractionCommandService";
87
+ export interface InteractionQueryServiceClient {
88
+ getUserLikes(request: GetUserLikesQuery): Observable<GetUserLikesResponse>;
89
+ getPostLikers(request: GetPostLikersQuery): Observable<GetPostLikersResponse>;
90
+ }
91
+ export interface InteractionQueryServiceController {
92
+ getUserLikes(request: GetUserLikesQuery): Promise<GetUserLikesResponse> | Observable<GetUserLikesResponse> | GetUserLikesResponse;
93
+ getPostLikers(request: GetPostLikersQuery): Promise<GetPostLikersResponse> | Observable<GetPostLikersResponse> | GetPostLikersResponse;
94
+ }
95
+ export declare function InteractionQueryServiceControllerMethods(): (constructor: Function) => void;
96
+ export declare const INTERACTION_QUERY_SERVICE_NAME = "InteractionQueryService";
97
+ export interface ParticipationCommandServiceClient {
98
+ createEventNode(request: CreateSocialEventCommand): Observable<CreateEventNodeResponse>;
99
+ deleteEventNode(request: DeleteSocialEventCommand): Observable<DeleteEventNodeResponse>;
100
+ postUserEvent(request: PostUserEventCommand): Observable<PostUserEventResponse>;
101
+ deleteUserEvent(request: DeleteUserEventCommand): Observable<DeleteUserEventResponse>;
102
+ postUserParticipateEvent(request: PostUserParticipateEventCommand): Observable<PostUserParticipateEventResponse>;
103
+ deleteUserParticipateEvent(request: DeleteUserParticipateEventCommand): Observable<DeleteUserParticipateEventResponse>;
104
+ }
105
+ export interface ParticipationCommandServiceController {
106
+ createEventNode(request: CreateSocialEventCommand): Promise<CreateEventNodeResponse> | Observable<CreateEventNodeResponse> | CreateEventNodeResponse;
107
+ deleteEventNode(request: DeleteSocialEventCommand): Promise<DeleteEventNodeResponse> | Observable<DeleteEventNodeResponse> | DeleteEventNodeResponse;
108
+ postUserEvent(request: PostUserEventCommand): Promise<PostUserEventResponse> | Observable<PostUserEventResponse> | PostUserEventResponse;
109
+ deleteUserEvent(request: DeleteUserEventCommand): Promise<DeleteUserEventResponse> | Observable<DeleteUserEventResponse> | DeleteUserEventResponse;
110
+ postUserParticipateEvent(request: PostUserParticipateEventCommand): Promise<PostUserParticipateEventResponse> | Observable<PostUserParticipateEventResponse> | PostUserParticipateEventResponse;
111
+ deleteUserParticipateEvent(request: DeleteUserParticipateEventCommand): Promise<DeleteUserParticipateEventResponse> | Observable<DeleteUserParticipateEventResponse> | DeleteUserParticipateEventResponse;
112
+ }
113
+ export declare function ParticipationCommandServiceControllerMethods(): (constructor: Function) => void;
114
+ export declare const PARTICIPATION_COMMAND_SERVICE_NAME = "ParticipationCommandService";
115
+ export interface ParticipationQueryServiceClient {
116
+ getUserEvent(request: GetUserEventQuery): Observable<GetUserEventResponse>;
117
+ getUserParticipateEvent(request: GetUserParticipateEventQuery): Observable<GetUserParticipateEventResponse>;
118
+ getEventParticipants(request: GetEventParticipantsQuery): Observable<GetEventParticipantsResponse>;
119
+ }
120
+ export interface ParticipationQueryServiceController {
121
+ getUserEvent(request: GetUserEventQuery): Promise<GetUserEventResponse> | Observable<GetUserEventResponse> | GetUserEventResponse;
122
+ getUserParticipateEvent(request: GetUserParticipateEventQuery): Promise<GetUserParticipateEventResponse> | Observable<GetUserParticipateEventResponse> | GetUserParticipateEventResponse;
123
+ getEventParticipants(request: GetEventParticipantsQuery): Promise<GetEventParticipantsResponse> | Observable<GetEventParticipantsResponse> | GetEventParticipantsResponse;
124
+ }
125
+ export declare function ParticipationQueryServiceControllerMethods(): (constructor: Function) => void;
126
+ export declare const PARTICIPATION_QUERY_SERVICE_NAME = "ParticipationQueryService";
127
+ export interface EventPostLinkCommandServiceClient {
128
+ linkPostToEvent(request: LinkPostToEventCommand): Observable<LinkPostToEventResponse>;
129
+ unlinkPostFromEvent(request: UnlinkPostFromEventCommand): Observable<UnlinkPostFromEventResponse>;
130
+ }
131
+ export interface EventPostLinkCommandServiceController {
132
+ linkPostToEvent(request: LinkPostToEventCommand): Promise<LinkPostToEventResponse> | Observable<LinkPostToEventResponse> | LinkPostToEventResponse;
133
+ unlinkPostFromEvent(request: UnlinkPostFromEventCommand): Promise<UnlinkPostFromEventResponse> | Observable<UnlinkPostFromEventResponse> | UnlinkPostFromEventResponse;
134
+ }
135
+ export declare function EventPostLinkCommandServiceControllerMethods(): (constructor: Function) => void;
136
+ export declare const EVENT_POST_LINK_COMMAND_SERVICE_NAME = "EventPostLinkCommandService";
137
+ export interface EventPostLinkQueryServiceClient {
138
+ getEventRelatedToPost(request: GetEventRelatedToPostQuery): Observable<GetEventRelatedToPostResponse>;
139
+ getEventPosts(request: GetEventPostsQuery): Observable<GetEventPostsResponse>;
140
+ }
141
+ export interface EventPostLinkQueryServiceController {
142
+ getEventRelatedToPost(request: GetEventRelatedToPostQuery): Promise<GetEventRelatedToPostResponse> | Observable<GetEventRelatedToPostResponse> | GetEventRelatedToPostResponse;
143
+ getEventPosts(request: GetEventPostsQuery): Promise<GetEventPostsResponse> | Observable<GetEventPostsResponse> | GetEventPostsResponse;
144
+ }
145
+ export declare function EventPostLinkQueryServiceControllerMethods(): (constructor: Function) => void;
146
+ export declare const EVENT_POST_LINK_QUERY_SERVICE_NAME = "EventPostLinkQueryService";
147
+ //# sourceMappingURL=social.services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.services.d.ts","sourceRoot":"","sources":["../../src/social/social.services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,iCAAiC,EACjC,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,+BAA+B,EAC/B,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,kCAAkC,EAClC,4BAA4B,EAC5B,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,oBA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AAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,mCAAmC;IAClD,qBAAqB,CACnB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,6BAA6B,CAAC,GAAG,UAAU,CAAC,6BAA6B,CAAC,GAAG,6BAA6B,CAAC;IAEtH,aAAa,CACX,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,qBAAqB,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,CAAC;CAC/F;AAED,wBAAgB,0CAA0C,kBAC1B,QAAQ,UAYvC;AAED,eAAO,MAAM,kCAAkC,8BAA8B,CAAC"}
@@ -0,0 +1,189 @@
1
+ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
2
+ export function SocialUserNodeCommandServiceControllerMethods() {
3
+ return function (constructor) {
4
+ const grpcMethods = ["createUserNode", "deleteUserNode"];
5
+ for (const method of grpcMethods) {
6
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
7
+ GrpcMethod("SocialUserNodeCommandService", method)(constructor.prototype[method], method, descriptor);
8
+ }
9
+ const grpcStreamMethods = [];
10
+ for (const method of grpcStreamMethods) {
11
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
12
+ GrpcStreamMethod("SocialUserNodeCommandService", method)(constructor.prototype[method], method, descriptor);
13
+ }
14
+ };
15
+ }
16
+ export const SOCIAL_USER_NODE_COMMAND_SERVICE_NAME = "SocialUserNodeCommandService";
17
+ export function SocialUserNodeQueryServiceControllerMethods() {
18
+ return function (constructor) {
19
+ const grpcMethods = ["getUserNode"];
20
+ for (const method of grpcMethods) {
21
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
22
+ GrpcMethod("SocialUserNodeQueryService", method)(constructor.prototype[method], method, descriptor);
23
+ }
24
+ const grpcStreamMethods = [];
25
+ for (const method of grpcStreamMethods) {
26
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
+ GrpcStreamMethod("SocialUserNodeQueryService", method)(constructor.prototype[method], method, descriptor);
28
+ }
29
+ };
30
+ }
31
+ export const SOCIAL_USER_NODE_QUERY_SERVICE_NAME = "SocialUserNodeQueryService";
32
+ export function RelationshipCommandServiceControllerMethods() {
33
+ return function (constructor) {
34
+ const grpcMethods = ["postFollowUser", "deleteFollowUser", "postBlockUser", "deleteBlockUser"];
35
+ for (const method of grpcMethods) {
36
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
37
+ GrpcMethod("RelationshipCommandService", method)(constructor.prototype[method], method, descriptor);
38
+ }
39
+ const grpcStreamMethods = [];
40
+ for (const method of grpcStreamMethods) {
41
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
42
+ GrpcStreamMethod("RelationshipCommandService", method)(constructor.prototype[method], method, descriptor);
43
+ }
44
+ };
45
+ }
46
+ export const RELATIONSHIP_COMMAND_SERVICE_NAME = "RelationshipCommandService";
47
+ export function RelationshipQueryServiceControllerMethods() {
48
+ return function (constructor) {
49
+ const grpcMethods = ["getMyFollows", "getMyFollowers", "getMyBlocks", "getWhoBlockedMe"];
50
+ for (const method of grpcMethods) {
51
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
52
+ GrpcMethod("RelationshipQueryService", method)(constructor.prototype[method], method, descriptor);
53
+ }
54
+ const grpcStreamMethods = [];
55
+ for (const method of grpcStreamMethods) {
56
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
57
+ GrpcStreamMethod("RelationshipQueryService", method)(constructor.prototype[method], method, descriptor);
58
+ }
59
+ };
60
+ }
61
+ export const RELATIONSHIP_QUERY_SERVICE_NAME = "RelationshipQueryService";
62
+ export function PublicationCommandServiceControllerMethods() {
63
+ return function (constructor) {
64
+ const grpcMethods = ["createPostNode", "deletePostNode", "postUserOwn", "deleteUserOwn"];
65
+ for (const method of grpcMethods) {
66
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
67
+ GrpcMethod("PublicationCommandService", method)(constructor.prototype[method], method, descriptor);
68
+ }
69
+ const grpcStreamMethods = [];
70
+ for (const method of grpcStreamMethods) {
71
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
72
+ GrpcStreamMethod("PublicationCommandService", method)(constructor.prototype[method], method, descriptor);
73
+ }
74
+ };
75
+ }
76
+ export const PUBLICATION_COMMAND_SERVICE_NAME = "PublicationCommandService";
77
+ export function PublicationQueryServiceControllerMethods() {
78
+ return function (constructor) {
79
+ const grpcMethods = ["getPostNode", "getUserPosts", "getFeed"];
80
+ for (const method of grpcMethods) {
81
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
82
+ GrpcMethod("PublicationQueryService", method)(constructor.prototype[method], method, descriptor);
83
+ }
84
+ const grpcStreamMethods = [];
85
+ for (const method of grpcStreamMethods) {
86
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
87
+ GrpcStreamMethod("PublicationQueryService", method)(constructor.prototype[method], method, descriptor);
88
+ }
89
+ };
90
+ }
91
+ export const PUBLICATION_QUERY_SERVICE_NAME = "PublicationQueryService";
92
+ export function InteractionCommandServiceControllerMethods() {
93
+ return function (constructor) {
94
+ const grpcMethods = ["postLikePost", "deleteLikePost"];
95
+ for (const method of grpcMethods) {
96
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
97
+ GrpcMethod("InteractionCommandService", method)(constructor.prototype[method], method, descriptor);
98
+ }
99
+ const grpcStreamMethods = [];
100
+ for (const method of grpcStreamMethods) {
101
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
102
+ GrpcStreamMethod("InteractionCommandService", method)(constructor.prototype[method], method, descriptor);
103
+ }
104
+ };
105
+ }
106
+ export const INTERACTION_COMMAND_SERVICE_NAME = "InteractionCommandService";
107
+ export function InteractionQueryServiceControllerMethods() {
108
+ return function (constructor) {
109
+ const grpcMethods = ["getUserLikes", "getPostLikers"];
110
+ for (const method of grpcMethods) {
111
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
112
+ GrpcMethod("InteractionQueryService", method)(constructor.prototype[method], method, descriptor);
113
+ }
114
+ const grpcStreamMethods = [];
115
+ for (const method of grpcStreamMethods) {
116
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
117
+ GrpcStreamMethod("InteractionQueryService", method)(constructor.prototype[method], method, descriptor);
118
+ }
119
+ };
120
+ }
121
+ export const INTERACTION_QUERY_SERVICE_NAME = "InteractionQueryService";
122
+ export function ParticipationCommandServiceControllerMethods() {
123
+ return function (constructor) {
124
+ const grpcMethods = [
125
+ "createEventNode",
126
+ "deleteEventNode",
127
+ "postUserEvent",
128
+ "deleteUserEvent",
129
+ "postUserParticipateEvent",
130
+ "deleteUserParticipateEvent",
131
+ ];
132
+ for (const method of grpcMethods) {
133
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
134
+ GrpcMethod("ParticipationCommandService", method)(constructor.prototype[method], method, descriptor);
135
+ }
136
+ const grpcStreamMethods = [];
137
+ for (const method of grpcStreamMethods) {
138
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
139
+ GrpcStreamMethod("ParticipationCommandService", method)(constructor.prototype[method], method, descriptor);
140
+ }
141
+ };
142
+ }
143
+ export const PARTICIPATION_COMMAND_SERVICE_NAME = "ParticipationCommandService";
144
+ export function ParticipationQueryServiceControllerMethods() {
145
+ return function (constructor) {
146
+ const grpcMethods = ["getUserEvent", "getUserParticipateEvent", "getEventParticipants"];
147
+ for (const method of grpcMethods) {
148
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
149
+ GrpcMethod("ParticipationQueryService", method)(constructor.prototype[method], method, descriptor);
150
+ }
151
+ const grpcStreamMethods = [];
152
+ for (const method of grpcStreamMethods) {
153
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
154
+ GrpcStreamMethod("ParticipationQueryService", method)(constructor.prototype[method], method, descriptor);
155
+ }
156
+ };
157
+ }
158
+ export const PARTICIPATION_QUERY_SERVICE_NAME = "ParticipationQueryService";
159
+ export function EventPostLinkCommandServiceControllerMethods() {
160
+ return function (constructor) {
161
+ const grpcMethods = ["linkPostToEvent", "unlinkPostFromEvent"];
162
+ for (const method of grpcMethods) {
163
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
164
+ GrpcMethod("EventPostLinkCommandService", method)(constructor.prototype[method], method, descriptor);
165
+ }
166
+ const grpcStreamMethods = [];
167
+ for (const method of grpcStreamMethods) {
168
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
169
+ GrpcStreamMethod("EventPostLinkCommandService", method)(constructor.prototype[method], method, descriptor);
170
+ }
171
+ };
172
+ }
173
+ export const EVENT_POST_LINK_COMMAND_SERVICE_NAME = "EventPostLinkCommandService";
174
+ export function EventPostLinkQueryServiceControllerMethods() {
175
+ return function (constructor) {
176
+ const grpcMethods = ["getEventRelatedToPost", "getEventPosts"];
177
+ for (const method of grpcMethods) {
178
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
179
+ GrpcMethod("EventPostLinkQueryService", method)(constructor.prototype[method], method, descriptor);
180
+ }
181
+ const grpcStreamMethods = [];
182
+ for (const method of grpcStreamMethods) {
183
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
184
+ GrpcStreamMethod("EventPostLinkQueryService", method)(constructor.prototype[method], method, descriptor);
185
+ }
186
+ };
187
+ }
188
+ export const EVENT_POST_LINK_QUERY_SERVICE_NAME = "EventPostLinkQueryService";
189
+ //# sourceMappingURL=social.services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social.services.js","sourceRoot":"","sources":["../../src/social/social.services.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;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AC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,gBAAgB,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7G,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,6BAA6B,CAAC;AAkBlF,MAAM,UAAU,0CAA0C;IACxD,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAC;QACzE,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,2BAA2B,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACrG,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,2BAA2B,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC3G,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts-nest",
3
- "version": "2.2.9",
3
+ "version": "3.0.0-snap-cf24bfa",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -0,0 +1,97 @@
1
+ syntax = "proto3";
2
+
3
+ package volontariapp.social;
4
+
5
+ message CreateSocialUserCommand {
6
+ string user_id = 1;
7
+ }
8
+
9
+ message DeleteSocialUserCommand {
10
+ string user_id = 1;
11
+ }
12
+
13
+ message PostFollowUserCommand {
14
+ string follower_id = 1;
15
+ string followed_id = 2;
16
+ }
17
+
18
+ message DeleteFollowUserCommand {
19
+ string follower_id = 1;
20
+ string followed_id = 2;
21
+ }
22
+
23
+ message PostBlockUserCommand {
24
+ string blocker_id = 1;
25
+ string blocked_id = 2;
26
+ }
27
+
28
+ message DeleteBlockUserCommand {
29
+ string blocker_id = 1;
30
+ string blocked_id = 2;
31
+ }
32
+
33
+ message CreateSocialPostCommand {
34
+ string post_id = 1;
35
+ }
36
+
37
+ message DeleteSocialPostCommand {
38
+ string post_id = 1;
39
+ }
40
+
41
+ message PostUserOwnCommand {
42
+ string user_id = 1;
43
+ string post_id = 2;
44
+ }
45
+
46
+ message DeleteUserOwnCommand {
47
+ string user_id = 1;
48
+ string post_id = 2;
49
+ }
50
+
51
+ message PostLikePostCommand {
52
+ string user_id = 1;
53
+ string post_id = 2;
54
+ }
55
+
56
+ message DeleteLikePostCommand {
57
+ string user_id = 1;
58
+ string post_id = 2;
59
+ }
60
+
61
+ message CreateSocialEventCommand {
62
+ string event_id = 1;
63
+ }
64
+
65
+ message DeleteSocialEventCommand {
66
+ string event_id = 1;
67
+ }
68
+
69
+ message PostUserEventCommand {
70
+ string user_id = 1;
71
+ string event_id = 2;
72
+ }
73
+
74
+ message DeleteUserEventCommand {
75
+ string user_id = 1;
76
+ string event_id = 2;
77
+ }
78
+
79
+ message PostUserParticipateEventCommand {
80
+ string user_id = 1;
81
+ string event_id = 2;
82
+ }
83
+
84
+ message DeleteUserParticipateEventCommand {
85
+ string user_id = 1;
86
+ string event_id = 2;
87
+ }
88
+
89
+ message LinkPostToEventCommand {
90
+ string post_id = 1;
91
+ string event_id = 2;
92
+ }
93
+
94
+ message UnlinkPostFromEventCommand {
95
+ string post_id = 1;
96
+ string event_id = 2;
97
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package volontariapp.social;
4
+
5
+ message SocialUser {
6
+ string user_id = 1;
7
+ }
8
+
9
+ message SocialPost {
10
+ string post_id = 1;
11
+ }
12
+
13
+ message SocialEvent {
14
+ string event_id = 1;
15
+ }
@@ -0,0 +1,77 @@
1
+ syntax = "proto3";
2
+
3
+ package volontariapp.social;
4
+
5
+ import "volontariapp/common/pagination.proto";
6
+
7
+ message GetSocialUserQuery {
8
+ string user_id = 1;
9
+ }
10
+
11
+ message GetMyFollowsQuery {
12
+ string user_id = 1;
13
+ volontariapp.common.PaginationRequest pagination = 2;
14
+ }
15
+
16
+ message GetMyFollowersQuery {
17
+ string user_id = 1;
18
+ volontariapp.common.PaginationRequest pagination = 2;
19
+ }
20
+
21
+ message GetMyBlocksQuery {
22
+ string user_id = 1;
23
+ volontariapp.common.PaginationRequest pagination = 2;
24
+ }
25
+
26
+ message GetWhoBlockedMeQuery {
27
+ string user_id = 1;
28
+ volontariapp.common.PaginationRequest pagination = 2;
29
+ }
30
+
31
+ message GetSocialPostQuery {
32
+ string post_id = 1;
33
+ }
34
+
35
+ message GetUserPostsQuery {
36
+ string user_id = 1;
37
+ volontariapp.common.PaginationRequest pagination = 2;
38
+ }
39
+
40
+ message GetFeedQuery {
41
+ string user_id = 1;
42
+ volontariapp.common.PaginationRequest pagination = 2;
43
+ }
44
+
45
+ message GetUserLikesQuery {
46
+ string user_id = 1;
47
+ volontariapp.common.PaginationRequest pagination = 2;
48
+ }
49
+
50
+ message GetPostLikersQuery {
51
+ string post_id = 1;
52
+ volontariapp.common.PaginationRequest pagination = 2;
53
+ }
54
+
55
+ message GetUserEventQuery {
56
+ string user_id = 1;
57
+ volontariapp.common.PaginationRequest pagination = 2;
58
+ }
59
+
60
+ message GetUserParticipateEventQuery {
61
+ string user_id = 1;
62
+ volontariapp.common.PaginationRequest pagination = 2;
63
+ }
64
+
65
+ message GetEventParticipantsQuery {
66
+ string event_id = 1;
67
+ volontariapp.common.PaginationRequest pagination = 2;
68
+ }
69
+
70
+ message GetEventRelatedToPostQuery {
71
+ string post_id = 1;
72
+ }
73
+
74
+ message GetEventPostsQuery {
75
+ string event_id = 1;
76
+ volontariapp.common.PaginationRequest pagination = 2;
77
+ }
@@ -0,0 +1,93 @@
1
+ syntax = "proto3";
2
+
3
+ package volontariapp.social;
4
+
5
+ import "volontariapp/common/pagination.proto";
6
+
7
+ message CreateUserNodeResponse {}
8
+ message DeleteUserNodeResponse {}
9
+ message GetUserNodeResponse {
10
+ bool exists = 1;
11
+ }
12
+
13
+ message PostFollowUserResponse {}
14
+ message DeleteFollowUserResponse {}
15
+ message PostBlockUserResponse {}
16
+ message DeleteBlockUserResponse {}
17
+
18
+ message GetMyFollowsResponse {
19
+ repeated string ids = 1;
20
+ volontariapp.common.PaginationResponse pagination = 2;
21
+ }
22
+ message GetMyFollowersResponse {
23
+ repeated string ids = 1;
24
+ volontariapp.common.PaginationResponse pagination = 2;
25
+ }
26
+ message GetMyBlocksResponse {
27
+ repeated string ids = 1;
28
+ volontariapp.common.PaginationResponse pagination = 2;
29
+ }
30
+ message GetWhoBlockedMeResponse {
31
+ repeated string ids = 1;
32
+ volontariapp.common.PaginationResponse pagination = 2;
33
+ }
34
+
35
+ message CreatePostNodeResponse {}
36
+ message DeletePostNodeResponse {}
37
+ message PostUserOwnResponse {}
38
+ message DeleteUserOwnResponse {}
39
+
40
+ message GetPostNodeResponse {
41
+ bool exists = 1;
42
+ }
43
+ message GetUserPostsResponse {
44
+ repeated string ids = 1;
45
+ volontariapp.common.PaginationResponse pagination = 2;
46
+ }
47
+ message GetFeedResponse {
48
+ repeated string ids = 1;
49
+ volontariapp.common.PaginationResponse pagination = 2;
50
+ }
51
+
52
+ message PostLikePostResponse {}
53
+ message DeleteLikePostResponse {}
54
+
55
+ message GetUserLikesResponse {
56
+ repeated string ids = 1;
57
+ volontariapp.common.PaginationResponse pagination = 2;
58
+ }
59
+ message GetPostLikersResponse {
60
+ repeated string ids = 1;
61
+ volontariapp.common.PaginationResponse pagination = 2;
62
+ }
63
+
64
+ message CreateEventNodeResponse {}
65
+ message DeleteEventNodeResponse {}
66
+ message PostUserEventResponse {}
67
+ message DeleteUserEventResponse {}
68
+ message PostUserParticipateEventResponse {}
69
+ message DeleteUserParticipateEventResponse {}
70
+
71
+ message GetUserEventResponse {
72
+ repeated string ids = 1;
73
+ volontariapp.common.PaginationResponse pagination = 2;
74
+ }
75
+ message GetUserParticipateEventResponse {
76
+ repeated string ids = 1;
77
+ volontariapp.common.PaginationResponse pagination = 2;
78
+ }
79
+ message GetEventParticipantsResponse {
80
+ repeated string ids = 1;
81
+ volontariapp.common.PaginationResponse pagination = 2;
82
+ }
83
+
84
+ message LinkPostToEventResponse {}
85
+ message UnlinkPostFromEventResponse {}
86
+
87
+ message GetEventRelatedToPostResponse {
88
+ string event_id = 1;
89
+ }
90
+ message GetEventPostsResponse {
91
+ repeated string ids = 1;
92
+ volontariapp.common.PaginationResponse pagination = 2;
93
+ }
@@ -0,0 +1,78 @@
1
+ syntax = "proto3";
2
+
3
+ package volontariapp.social;
4
+
5
+ import "volontariapp/social/social.command.proto";
6
+ import "volontariapp/social/social.query.proto";
7
+ import "volontariapp/social/social.responses.proto";
8
+
9
+ service SocialUserNodeCommandService {
10
+ rpc CreateUserNode(CreateSocialUserCommand) returns (CreateUserNodeResponse);
11
+ rpc DeleteUserNode(DeleteSocialUserCommand) returns (DeleteUserNodeResponse);
12
+ }
13
+
14
+ service SocialUserNodeQueryService {
15
+ rpc GetUserNode(GetSocialUserQuery) returns (GetUserNodeResponse);
16
+ }
17
+
18
+ service RelationshipCommandService {
19
+ rpc PostFollowUser(PostFollowUserCommand) returns (PostFollowUserResponse);
20
+ rpc DeleteFollowUser(DeleteFollowUserCommand) returns (DeleteFollowUserResponse);
21
+ rpc PostBlockUser(PostBlockUserCommand) returns (PostBlockUserResponse);
22
+ rpc DeleteBlockUser(DeleteBlockUserCommand) returns (DeleteBlockUserResponse);
23
+ }
24
+
25
+ service RelationshipQueryService {
26
+ rpc GetMyFollows(GetMyFollowsQuery) returns (GetMyFollowsResponse);
27
+ rpc GetMyFollowers(GetMyFollowersQuery) returns (GetMyFollowersResponse);
28
+ rpc GetMyBlocks(GetMyBlocksQuery) returns (GetMyBlocksResponse);
29
+ rpc GetWhoBlockedMe(GetWhoBlockedMeQuery) returns (GetWhoBlockedMeResponse);
30
+ }
31
+
32
+ service PublicationCommandService {
33
+ rpc CreatePostNode(CreateSocialPostCommand) returns (CreatePostNodeResponse);
34
+ rpc DeletePostNode(DeleteSocialPostCommand) returns (DeletePostNodeResponse);
35
+ rpc PostUserOwn(PostUserOwnCommand) returns (PostUserOwnResponse);
36
+ rpc DeleteUserOwn(DeleteUserOwnCommand) returns (DeleteUserOwnResponse);
37
+ }
38
+
39
+ service PublicationQueryService {
40
+ rpc GetPostNode(GetSocialPostQuery) returns (GetPostNodeResponse);
41
+ rpc GetUserPosts(GetUserPostsQuery) returns (GetUserPostsResponse);
42
+ rpc GetFeed(GetFeedQuery) returns (GetFeedResponse);
43
+ }
44
+
45
+ service InteractionCommandService {
46
+ rpc PostLikePost(PostLikePostCommand) returns (PostLikePostResponse);
47
+ rpc DeleteLikePost(DeleteLikePostCommand) returns (DeleteLikePostResponse);
48
+ }
49
+
50
+ service InteractionQueryService {
51
+ rpc GetUserLikes(GetUserLikesQuery) returns (GetUserLikesResponse);
52
+ rpc GetPostLikers(GetPostLikersQuery) returns (GetPostLikersResponse);
53
+ }
54
+
55
+ service ParticipationCommandService {
56
+ rpc CreateEventNode(CreateSocialEventCommand) returns (CreateEventNodeResponse);
57
+ rpc DeleteEventNode(DeleteSocialEventCommand) returns (DeleteEventNodeResponse);
58
+ rpc PostUserEvent(PostUserEventCommand) returns (PostUserEventResponse);
59
+ rpc DeleteUserEvent(DeleteUserEventCommand) returns (DeleteUserEventResponse);
60
+ rpc PostUserParticipateEvent(PostUserParticipateEventCommand) returns (PostUserParticipateEventResponse);
61
+ rpc DeleteUserParticipateEvent(DeleteUserParticipateEventCommand) returns (DeleteUserParticipateEventResponse);
62
+ }
63
+
64
+ service ParticipationQueryService {
65
+ rpc GetUserEvent(GetUserEventQuery) returns (GetUserEventResponse);
66
+ rpc GetUserParticipateEvent(GetUserParticipateEventQuery) returns (GetUserParticipateEventResponse);
67
+ rpc GetEventParticipants(GetEventParticipantsQuery) returns (GetEventParticipantsResponse);
68
+ }
69
+
70
+ service EventPostLinkCommandService {
71
+ rpc LinkPostToEvent(LinkPostToEventCommand) returns (LinkPostToEventResponse);
72
+ rpc UnlinkPostFromEvent(UnlinkPostFromEventCommand) returns (UnlinkPostFromEventResponse);
73
+ }
74
+
75
+ service EventPostLinkQueryService {
76
+ rpc GetEventRelatedToPost(GetEventRelatedToPostQuery) returns (GetEventRelatedToPostResponse);
77
+ rpc GetEventPosts(GetEventPostsQuery) returns (GetEventPostsResponse);
78
+ }