@mamindom/contracts 1.0.50 → 1.0.52

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 (55) hide show
  1. package/dist/gen/calculation.d.ts +55 -0
  2. package/dist/gen/calculation.js +28 -0
  3. package/dist/gen/common_post.d.ts +18 -0
  4. package/dist/gen/common_post.js +11 -0
  5. package/dist/gen/coupon.d.ts +96 -0
  6. package/dist/gen/coupon.js +37 -0
  7. package/dist/gen/post.d.ts +304 -0
  8. package/dist/gen/post.js +55 -0
  9. package/dist/gen/post_category.d.ts +104 -0
  10. package/dist/gen/post_category.js +43 -0
  11. package/dist/gen/post_comment.d.ts +54 -0
  12. package/dist/gen/post_comment.js +36 -0
  13. package/dist/gen/post_tag.d.ts +68 -0
  14. package/dist/gen/post_tag.js +28 -0
  15. package/dist/gen/post_version.d.ts +73 -0
  16. package/dist/gen/post_version.js +28 -0
  17. package/dist/gen/promotion.d.ts +284 -0
  18. package/dist/gen/promotion.js +91 -0
  19. package/dist/proto/calculation.proto +66 -0
  20. package/dist/proto/common_post.proto +23 -0
  21. package/dist/proto/common_promo.proto +6 -7
  22. package/dist/proto/coupon.proto +121 -0
  23. package/dist/proto/post.proto +193 -0
  24. package/dist/proto/post_category.proto +84 -0
  25. package/dist/proto/post_comment.proto +66 -0
  26. package/dist/proto/post_tag.proto +57 -0
  27. package/dist/proto/post_version.proto +61 -0
  28. package/dist/proto/promotion.proto +257 -0
  29. package/dist/src/proto/paths.d.ts +8 -1
  30. package/dist/src/proto/paths.js +8 -1
  31. package/gen/calculation.ts +94 -0
  32. package/gen/common_post.ts +31 -0
  33. package/gen/coupon.ts +169 -0
  34. package/gen/post.ts +346 -0
  35. package/gen/post_category.ts +157 -0
  36. package/gen/post_comment.ts +99 -0
  37. package/gen/post_tag.ts +113 -0
  38. package/gen/post_version.ts +112 -0
  39. package/gen/promotion.ts +353 -0
  40. package/package.json +1 -1
  41. package/proto/calculation.proto +66 -0
  42. package/proto/common_post.proto +23 -0
  43. package/proto/common_promo.proto +6 -7
  44. package/proto/coupon.proto +121 -0
  45. package/proto/post.proto +193 -0
  46. package/proto/post_category.proto +84 -0
  47. package/proto/post_comment.proto +66 -0
  48. package/proto/post_tag.proto +57 -0
  49. package/proto/post_version.proto +61 -0
  50. package/proto/promotion.proto +257 -0
  51. package/dist/gen/promo.d.ts +0 -293
  52. package/dist/gen/promo.js +0 -73
  53. package/dist/proto/promo.proto +0 -238
  54. package/gen/promo.ts +0 -390
  55. package/proto/promo.proto +0 -238
@@ -0,0 +1,104 @@
1
+ import { Observable } from "rxjs";
2
+ import { DeleteResponse, PaginationMeta, PaginationRequest } from "./common_post";
3
+ export declare const protobufPackage = "content.v1";
4
+ export declare enum PostCategoryType {
5
+ POST_CATEGORY_TYPE_UNSPECIFIED = 0,
6
+ POST_CATEGORY_TYPE_ARTICLE = 1,
7
+ POST_CATEGORY_TYPE_NEWS = 2,
8
+ POST_CATEGORY_TYPE_PAGE = 3,
9
+ POST_CATEGORY_TYPE_ALL = 4,
10
+ UNRECOGNIZED = -1
11
+ }
12
+ export interface PostCategoryResponse {
13
+ id: string;
14
+ slug: string;
15
+ name: {
16
+ [key: string]: string;
17
+ };
18
+ description: {
19
+ [key: string]: string;
20
+ };
21
+ sortOrder: number;
22
+ postType: PostCategoryType;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }
26
+ export interface PostCategoryResponse_NameEntry {
27
+ key: string;
28
+ value: string;
29
+ }
30
+ export interface PostCategoryResponse_DescriptionEntry {
31
+ key: string;
32
+ value: string;
33
+ }
34
+ export interface GetPostCategoriesRequest {
35
+ pagination: PaginationRequest | undefined;
36
+ postType?: PostCategoryType | undefined;
37
+ }
38
+ export interface GetPostCategoriesResponse {
39
+ items: PostCategoryResponse[];
40
+ meta: PaginationMeta | undefined;
41
+ }
42
+ export interface GetPostCategoryRequest {
43
+ id: string;
44
+ slug?: string | undefined;
45
+ }
46
+ export interface CreatePostCategoryRequest {
47
+ slug: string;
48
+ name: {
49
+ [key: string]: string;
50
+ };
51
+ description: {
52
+ [key: string]: string;
53
+ };
54
+ sortOrder: number;
55
+ postType: PostCategoryType;
56
+ }
57
+ export interface CreatePostCategoryRequest_NameEntry {
58
+ key: string;
59
+ value: string;
60
+ }
61
+ export interface CreatePostCategoryRequest_DescriptionEntry {
62
+ key: string;
63
+ value: string;
64
+ }
65
+ export interface UpdatePostCategoryRequest {
66
+ id: string;
67
+ slug?: string | undefined;
68
+ name: {
69
+ [key: string]: string;
70
+ };
71
+ description: {
72
+ [key: string]: string;
73
+ };
74
+ sortOrder?: number | undefined;
75
+ postType?: PostCategoryType | undefined;
76
+ }
77
+ export interface UpdatePostCategoryRequest_NameEntry {
78
+ key: string;
79
+ value: string;
80
+ }
81
+ export interface UpdatePostCategoryRequest_DescriptionEntry {
82
+ key: string;
83
+ value: string;
84
+ }
85
+ export interface DeletePostCategoryRequest {
86
+ id: string;
87
+ }
88
+ export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
89
+ export interface PostCategoryServiceClient {
90
+ getPostCategories(request: GetPostCategoriesRequest): Observable<GetPostCategoriesResponse>;
91
+ getPostCategory(request: GetPostCategoryRequest): Observable<PostCategoryResponse>;
92
+ createPostCategory(request: CreatePostCategoryRequest): Observable<PostCategoryResponse>;
93
+ updatePostCategory(request: UpdatePostCategoryRequest): Observable<PostCategoryResponse>;
94
+ deletePostCategory(request: DeletePostCategoryRequest): Observable<DeleteResponse>;
95
+ }
96
+ export interface PostCategoryServiceController {
97
+ getPostCategories(request: GetPostCategoriesRequest): Promise<GetPostCategoriesResponse> | Observable<GetPostCategoriesResponse> | GetPostCategoriesResponse;
98
+ getPostCategory(request: GetPostCategoryRequest): Promise<PostCategoryResponse> | Observable<PostCategoryResponse> | PostCategoryResponse;
99
+ createPostCategory(request: CreatePostCategoryRequest): Promise<PostCategoryResponse> | Observable<PostCategoryResponse> | PostCategoryResponse;
100
+ updatePostCategory(request: UpdatePostCategoryRequest): Promise<PostCategoryResponse> | Observable<PostCategoryResponse> | PostCategoryResponse;
101
+ deletePostCategory(request: DeletePostCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
102
+ }
103
+ export declare function PostCategoryServiceControllerMethods(): (constructor: Function) => void;
104
+ export declare const POST_CATEGORY_SERVICE_NAME = "PostCategoryService";
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.4
5
+ // protoc v3.21.12
6
+ // source: post_category.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.POST_CATEGORY_SERVICE_NAME = exports.CONTENT_V1_PACKAGE_NAME = exports.PostCategoryType = exports.protobufPackage = void 0;
9
+ exports.PostCategoryServiceControllerMethods = PostCategoryServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "content.v1";
13
+ var PostCategoryType;
14
+ (function (PostCategoryType) {
15
+ PostCategoryType[PostCategoryType["POST_CATEGORY_TYPE_UNSPECIFIED"] = 0] = "POST_CATEGORY_TYPE_UNSPECIFIED";
16
+ PostCategoryType[PostCategoryType["POST_CATEGORY_TYPE_ARTICLE"] = 1] = "POST_CATEGORY_TYPE_ARTICLE";
17
+ PostCategoryType[PostCategoryType["POST_CATEGORY_TYPE_NEWS"] = 2] = "POST_CATEGORY_TYPE_NEWS";
18
+ PostCategoryType[PostCategoryType["POST_CATEGORY_TYPE_PAGE"] = 3] = "POST_CATEGORY_TYPE_PAGE";
19
+ PostCategoryType[PostCategoryType["POST_CATEGORY_TYPE_ALL"] = 4] = "POST_CATEGORY_TYPE_ALL";
20
+ PostCategoryType[PostCategoryType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
+ })(PostCategoryType || (exports.PostCategoryType = PostCategoryType = {}));
22
+ exports.CONTENT_V1_PACKAGE_NAME = "content.v1";
23
+ function PostCategoryServiceControllerMethods() {
24
+ return function (constructor) {
25
+ const grpcMethods = [
26
+ "getPostCategories",
27
+ "getPostCategory",
28
+ "createPostCategory",
29
+ "updatePostCategory",
30
+ "deletePostCategory",
31
+ ];
32
+ for (const method of grpcMethods) {
33
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
34
+ (0, microservices_1.GrpcMethod)("PostCategoryService", method)(constructor.prototype[method], method, descriptor);
35
+ }
36
+ const grpcStreamMethods = [];
37
+ for (const method of grpcStreamMethods) {
38
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
39
+ (0, microservices_1.GrpcStreamMethod)("PostCategoryService", method)(constructor.prototype[method], method, descriptor);
40
+ }
41
+ };
42
+ }
43
+ exports.POST_CATEGORY_SERVICE_NAME = "PostCategoryService";
@@ -0,0 +1,54 @@
1
+ import { Observable } from "rxjs";
2
+ import { DeleteResponse, PaginationMeta, PaginationRequest } from "./common_post";
3
+ export declare const protobufPackage = "content.v1";
4
+ export declare enum CommentStatus {
5
+ COMMENT_STATUS_UNSPECIFIED = 0,
6
+ COMMENT_STATUS_PENDING = 1,
7
+ COMMENT_STATUS_APPROVED = 2,
8
+ COMMENT_STATUS_REJECTED = 3,
9
+ UNRECOGNIZED = -1
10
+ }
11
+ export interface CommentResponse {
12
+ id: string;
13
+ postId: string;
14
+ authorName: string;
15
+ authorEmail: string;
16
+ body: string;
17
+ status: CommentStatus;
18
+ createdAt: string;
19
+ }
20
+ export interface GetCommentsRequest {
21
+ pagination: PaginationRequest | undefined;
22
+ postId?: string | undefined;
23
+ status?: CommentStatus | undefined;
24
+ }
25
+ export interface GetCommentsResponse {
26
+ items: CommentResponse[];
27
+ meta: PaginationMeta | undefined;
28
+ }
29
+ export interface CreateCommentRequest {
30
+ postId: string;
31
+ authorName: string;
32
+ authorEmail: string;
33
+ body: string;
34
+ }
35
+ export interface CommentIdRequest {
36
+ id: string;
37
+ }
38
+ export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
39
+ export interface PostCommentServiceClient {
40
+ getComments(request: GetCommentsRequest): Observable<GetCommentsResponse>;
41
+ createComment(request: CreateCommentRequest): Observable<CommentResponse>;
42
+ approveComment(request: CommentIdRequest): Observable<CommentResponse>;
43
+ rejectComment(request: CommentIdRequest): Observable<CommentResponse>;
44
+ deleteComment(request: CommentIdRequest): Observable<DeleteResponse>;
45
+ }
46
+ export interface PostCommentServiceController {
47
+ getComments(request: GetCommentsRequest): Promise<GetCommentsResponse> | Observable<GetCommentsResponse> | GetCommentsResponse;
48
+ createComment(request: CreateCommentRequest): Promise<CommentResponse> | Observable<CommentResponse> | CommentResponse;
49
+ approveComment(request: CommentIdRequest): Promise<CommentResponse> | Observable<CommentResponse> | CommentResponse;
50
+ rejectComment(request: CommentIdRequest): Promise<CommentResponse> | Observable<CommentResponse> | CommentResponse;
51
+ deleteComment(request: CommentIdRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
52
+ }
53
+ export declare function PostCommentServiceControllerMethods(): (constructor: Function) => void;
54
+ export declare const POST_COMMENT_SERVICE_NAME = "PostCommentService";
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.4
5
+ // protoc v3.21.12
6
+ // source: post_comment.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.POST_COMMENT_SERVICE_NAME = exports.CONTENT_V1_PACKAGE_NAME = exports.CommentStatus = exports.protobufPackage = void 0;
9
+ exports.PostCommentServiceControllerMethods = PostCommentServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "content.v1";
13
+ var CommentStatus;
14
+ (function (CommentStatus) {
15
+ CommentStatus[CommentStatus["COMMENT_STATUS_UNSPECIFIED"] = 0] = "COMMENT_STATUS_UNSPECIFIED";
16
+ CommentStatus[CommentStatus["COMMENT_STATUS_PENDING"] = 1] = "COMMENT_STATUS_PENDING";
17
+ CommentStatus[CommentStatus["COMMENT_STATUS_APPROVED"] = 2] = "COMMENT_STATUS_APPROVED";
18
+ CommentStatus[CommentStatus["COMMENT_STATUS_REJECTED"] = 3] = "COMMENT_STATUS_REJECTED";
19
+ CommentStatus[CommentStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
20
+ })(CommentStatus || (exports.CommentStatus = CommentStatus = {}));
21
+ exports.CONTENT_V1_PACKAGE_NAME = "content.v1";
22
+ function PostCommentServiceControllerMethods() {
23
+ return function (constructor) {
24
+ const grpcMethods = ["getComments", "createComment", "approveComment", "rejectComment", "deleteComment"];
25
+ for (const method of grpcMethods) {
26
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
+ (0, microservices_1.GrpcMethod)("PostCommentService", method)(constructor.prototype[method], method, descriptor);
28
+ }
29
+ const grpcStreamMethods = [];
30
+ for (const method of grpcStreamMethods) {
31
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
+ (0, microservices_1.GrpcStreamMethod)("PostCommentService", method)(constructor.prototype[method], method, descriptor);
33
+ }
34
+ };
35
+ }
36
+ exports.POST_COMMENT_SERVICE_NAME = "PostCommentService";
@@ -0,0 +1,68 @@
1
+ import { Observable } from "rxjs";
2
+ import { DeleteResponse, PaginationMeta, PaginationRequest } from "./common_post";
3
+ export declare const protobufPackage = "content.v1";
4
+ export interface PostTagResponse {
5
+ id: string;
6
+ slug: string;
7
+ name: {
8
+ [key: string]: string;
9
+ };
10
+ createdAt: string;
11
+ }
12
+ export interface PostTagResponse_NameEntry {
13
+ key: string;
14
+ value: string;
15
+ }
16
+ export interface GetPostTagsRequest {
17
+ pagination: PaginationRequest | undefined;
18
+ search?: string | undefined;
19
+ }
20
+ export interface GetPostTagsResponse {
21
+ items: PostTagResponse[];
22
+ meta: PaginationMeta | undefined;
23
+ }
24
+ export interface GetPostTagRequest {
25
+ id: string;
26
+ slug?: string | undefined;
27
+ }
28
+ export interface CreatePostTagRequest {
29
+ slug: string;
30
+ name: {
31
+ [key: string]: string;
32
+ };
33
+ }
34
+ export interface CreatePostTagRequest_NameEntry {
35
+ key: string;
36
+ value: string;
37
+ }
38
+ export interface UpdatePostTagRequest {
39
+ id: string;
40
+ slug?: string | undefined;
41
+ name: {
42
+ [key: string]: string;
43
+ };
44
+ }
45
+ export interface UpdatePostTagRequest_NameEntry {
46
+ key: string;
47
+ value: string;
48
+ }
49
+ export interface DeletePostTagRequest {
50
+ id: string;
51
+ }
52
+ export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
53
+ export interface PostTagServiceClient {
54
+ getPostTags(request: GetPostTagsRequest): Observable<GetPostTagsResponse>;
55
+ getPostTag(request: GetPostTagRequest): Observable<PostTagResponse>;
56
+ createPostTag(request: CreatePostTagRequest): Observable<PostTagResponse>;
57
+ updatePostTag(request: UpdatePostTagRequest): Observable<PostTagResponse>;
58
+ deletePostTag(request: DeletePostTagRequest): Observable<DeleteResponse>;
59
+ }
60
+ export interface PostTagServiceController {
61
+ getPostTags(request: GetPostTagsRequest): Promise<GetPostTagsResponse> | Observable<GetPostTagsResponse> | GetPostTagsResponse;
62
+ getPostTag(request: GetPostTagRequest): Promise<PostTagResponse> | Observable<PostTagResponse> | PostTagResponse;
63
+ createPostTag(request: CreatePostTagRequest): Promise<PostTagResponse> | Observable<PostTagResponse> | PostTagResponse;
64
+ updatePostTag(request: UpdatePostTagRequest): Promise<PostTagResponse> | Observable<PostTagResponse> | PostTagResponse;
65
+ deletePostTag(request: DeletePostTagRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
66
+ }
67
+ export declare function PostTagServiceControllerMethods(): (constructor: Function) => void;
68
+ export declare const POST_TAG_SERVICE_NAME = "PostTagService";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.4
5
+ // protoc v3.21.12
6
+ // source: post_tag.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.POST_TAG_SERVICE_NAME = exports.CONTENT_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.PostTagServiceControllerMethods = PostTagServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "content.v1";
13
+ exports.CONTENT_V1_PACKAGE_NAME = "content.v1";
14
+ function PostTagServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["getPostTags", "getPostTag", "createPostTag", "updatePostTag", "deletePostTag"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("PostTagService", method)(constructor.prototype[method], method, descriptor);
20
+ }
21
+ const grpcStreamMethods = [];
22
+ for (const method of grpcStreamMethods) {
23
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
+ (0, microservices_1.GrpcStreamMethod)("PostTagService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.POST_TAG_SERVICE_NAME = "PostTagService";
@@ -0,0 +1,73 @@
1
+ import { Observable } from "rxjs";
2
+ import { PaginationMeta, PaginationRequest, SuccessResponse } from "./common_post";
3
+ export declare const protobufPackage = "content.v1";
4
+ export interface PostVersionResponse {
5
+ id: string;
6
+ postId: string;
7
+ title: {
8
+ [key: string]: string;
9
+ };
10
+ excerpt: {
11
+ [key: string]: string;
12
+ };
13
+ content: {
14
+ [key: string]: string;
15
+ };
16
+ version: number;
17
+ savedById: string;
18
+ createdAt: string;
19
+ }
20
+ export interface PostVersionResponse_TitleEntry {
21
+ key: string;
22
+ value: string;
23
+ }
24
+ export interface PostVersionResponse_ExcerptEntry {
25
+ key: string;
26
+ value: string;
27
+ }
28
+ export interface PostVersionResponse_ContentEntry {
29
+ key: string;
30
+ value: string;
31
+ }
32
+ export interface PostVersionListItem {
33
+ id: string;
34
+ postId: string;
35
+ version: number;
36
+ savedById: string;
37
+ createdAt: string;
38
+ title: {
39
+ [key: string]: string;
40
+ };
41
+ }
42
+ export interface PostVersionListItem_TitleEntry {
43
+ key: string;
44
+ value: string;
45
+ }
46
+ export interface GetPostVersionsRequest {
47
+ postId: string;
48
+ pagination: PaginationRequest | undefined;
49
+ }
50
+ export interface GetPostVersionsResponse {
51
+ items: PostVersionListItem[];
52
+ meta: PaginationMeta | undefined;
53
+ }
54
+ export interface GetPostVersionRequest {
55
+ id: string;
56
+ }
57
+ export interface RestorePostVersionRequest {
58
+ versionId: string;
59
+ restoredById: string;
60
+ }
61
+ export declare const CONTENT_V1_PACKAGE_NAME = "content.v1";
62
+ export interface PostVersionServiceClient {
63
+ getPostVersions(request: GetPostVersionsRequest): Observable<GetPostVersionsResponse>;
64
+ getPostVersion(request: GetPostVersionRequest): Observable<PostVersionResponse>;
65
+ restorePostVersion(request: RestorePostVersionRequest): Observable<SuccessResponse>;
66
+ }
67
+ export interface PostVersionServiceController {
68
+ getPostVersions(request: GetPostVersionsRequest): Promise<GetPostVersionsResponse> | Observable<GetPostVersionsResponse> | GetPostVersionsResponse;
69
+ getPostVersion(request: GetPostVersionRequest): Promise<PostVersionResponse> | Observable<PostVersionResponse> | PostVersionResponse;
70
+ restorePostVersion(request: RestorePostVersionRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
71
+ }
72
+ export declare function PostVersionServiceControllerMethods(): (constructor: Function) => void;
73
+ export declare const POST_VERSION_SERVICE_NAME = "PostVersionService";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.4
5
+ // protoc v3.21.12
6
+ // source: post_version.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.POST_VERSION_SERVICE_NAME = exports.CONTENT_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.PostVersionServiceControllerMethods = PostVersionServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "content.v1";
13
+ exports.CONTENT_V1_PACKAGE_NAME = "content.v1";
14
+ function PostVersionServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["getPostVersions", "getPostVersion", "restorePostVersion"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("PostVersionService", method)(constructor.prototype[method], method, descriptor);
20
+ }
21
+ const grpcStreamMethods = [];
22
+ for (const method of grpcStreamMethods) {
23
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
+ (0, microservices_1.GrpcStreamMethod)("PostVersionService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.POST_VERSION_SERVICE_NAME = "PostVersionService";