@mamindom/contracts 1.0.18 → 1.0.19

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.
@@ -0,0 +1,70 @@
1
+ import { Observable } from "rxjs";
2
+ export declare const protobufPackage = "account.v1";
3
+ export declare enum Role {
4
+ USER = 0,
5
+ ADMIN = 1,
6
+ MANAGER = 2,
7
+ COPYWRITER = 3,
8
+ SEO = 4,
9
+ UNRECOGNIZED = -1
10
+ }
11
+ export interface GetAccountRequest {
12
+ id: string;
13
+ }
14
+ export interface GetAccountResponse {
15
+ id: string;
16
+ phone: string;
17
+ email: string;
18
+ firstName: string;
19
+ lastName: string;
20
+ isEmailVerified: boolean;
21
+ isPhoneVerified: boolean;
22
+ role: Role;
23
+ }
24
+ export interface InitEmailChangeRequest {
25
+ email: string;
26
+ userId: string;
27
+ }
28
+ export interface InitEmailChangeResponse {
29
+ ok: boolean;
30
+ }
31
+ export interface ConfirmEmailChangeRequest {
32
+ email: string;
33
+ code: string;
34
+ userId: string;
35
+ }
36
+ export interface ConfirmEmailChangeResponse {
37
+ ok: boolean;
38
+ }
39
+ export interface InitPhoneChangeRequest {
40
+ phone: string;
41
+ userId: string;
42
+ }
43
+ export interface InitPhoneChangeResponse {
44
+ ok: boolean;
45
+ }
46
+ export interface ConfirmPhoneChangeRequest {
47
+ phone: string;
48
+ code: string;
49
+ userId: string;
50
+ }
51
+ export interface ConfirmPhoneChangeResponse {
52
+ ok: boolean;
53
+ }
54
+ export declare const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
55
+ export interface AccountServiceClient {
56
+ getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
57
+ initEmailChange(request: InitEmailChangeRequest): Observable<InitEmailChangeResponse>;
58
+ confirmEmailChange(request: ConfirmEmailChangeRequest): Observable<ConfirmEmailChangeResponse>;
59
+ initPhoneChange(request: InitPhoneChangeRequest): Observable<InitPhoneChangeResponse>;
60
+ confirmPhoneChange(request: ConfirmPhoneChangeRequest): Observable<ConfirmPhoneChangeResponse>;
61
+ }
62
+ export interface AccountServiceController {
63
+ getAccount(request: GetAccountRequest): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
64
+ initEmailChange(request: InitEmailChangeRequest): Promise<InitEmailChangeResponse> | Observable<InitEmailChangeResponse> | InitEmailChangeResponse;
65
+ confirmEmailChange(request: ConfirmEmailChangeRequest): Promise<ConfirmEmailChangeResponse> | Observable<ConfirmEmailChangeResponse> | ConfirmEmailChangeResponse;
66
+ initPhoneChange(request: InitPhoneChangeRequest): Promise<InitPhoneChangeResponse> | Observable<InitPhoneChangeResponse> | InitPhoneChangeResponse;
67
+ confirmPhoneChange(request: ConfirmPhoneChangeRequest): Promise<ConfirmPhoneChangeResponse> | Observable<ConfirmPhoneChangeResponse> | ConfirmPhoneChangeResponse;
68
+ }
69
+ export declare function AccountServiceControllerMethods(): (constructor: Function) => void;
70
+ export declare const ACCOUNT_SERVICE_NAME = "AccountService";
@@ -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 v7.34.0
6
+ // source: account.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ACCOUNT_SERVICE_NAME = exports.ACCOUNT_V1_PACKAGE_NAME = exports.Role = exports.protobufPackage = void 0;
9
+ exports.AccountServiceControllerMethods = AccountServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "account.v1";
13
+ var Role;
14
+ (function (Role) {
15
+ Role[Role["USER"] = 0] = "USER";
16
+ Role[Role["ADMIN"] = 1] = "ADMIN";
17
+ Role[Role["MANAGER"] = 2] = "MANAGER";
18
+ Role[Role["COPYWRITER"] = 3] = "COPYWRITER";
19
+ Role[Role["SEO"] = 4] = "SEO";
20
+ Role[Role["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
+ })(Role || (exports.Role = Role = {}));
22
+ exports.ACCOUNT_V1_PACKAGE_NAME = "account.v1";
23
+ function AccountServiceControllerMethods() {
24
+ return function (constructor) {
25
+ const grpcMethods = [
26
+ "getAccount",
27
+ "initEmailChange",
28
+ "confirmEmailChange",
29
+ "initPhoneChange",
30
+ "confirmPhoneChange",
31
+ ];
32
+ for (const method of grpcMethods) {
33
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
34
+ (0, microservices_1.GrpcMethod)("AccountService", 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)("AccountService", method)(constructor.prototype[method], method, descriptor);
40
+ }
41
+ };
42
+ }
43
+ exports.ACCOUNT_SERVICE_NAME = "AccountService";
@@ -0,0 +1,194 @@
1
+ import { Observable } from "rxjs";
2
+ import { DeleteResponse, PaginationMeta, PaginationRequest, SuccessResponse } from "./common";
3
+ export declare const protobufPackage = "catalog.v1";
4
+ export interface AttributeGroupResponse {
5
+ id: string;
6
+ name: {
7
+ [key: string]: string;
8
+ };
9
+ sortOrder: number;
10
+ }
11
+ export interface AttributeGroupResponse_NameEntry {
12
+ key: string;
13
+ value: string;
14
+ }
15
+ export interface GetAttributeGroupsRequest {
16
+ pagination: PaginationRequest | undefined;
17
+ }
18
+ export interface GetAttributeGroupsResponse {
19
+ items: AttributeGroupResponse[];
20
+ meta: PaginationMeta | undefined;
21
+ }
22
+ export interface GetAttributeGroupRequest {
23
+ id: string;
24
+ }
25
+ export interface CreateAttributeGroupRequest {
26
+ name: {
27
+ [key: string]: string;
28
+ };
29
+ sortOrder: number;
30
+ }
31
+ export interface CreateAttributeGroupRequest_NameEntry {
32
+ key: string;
33
+ value: string;
34
+ }
35
+ export interface UpdateAttributeGroupRequest {
36
+ id: string;
37
+ name: {
38
+ [key: string]: string;
39
+ };
40
+ sortOrder?: number | undefined;
41
+ }
42
+ export interface UpdateAttributeGroupRequest_NameEntry {
43
+ key: string;
44
+ value: string;
45
+ }
46
+ export interface DeleteAttributeGroupRequest {
47
+ id: string;
48
+ }
49
+ export interface AttributeResponse {
50
+ id: string;
51
+ groupId?: string | undefined;
52
+ slug: string;
53
+ name: {
54
+ [key: string]: string;
55
+ };
56
+ displayType: string;
57
+ sortOrder: number;
58
+ guid1c?: string | undefined;
59
+ }
60
+ export interface AttributeResponse_NameEntry {
61
+ key: string;
62
+ value: string;
63
+ }
64
+ export interface GetAttributesRequest {
65
+ pagination: PaginationRequest | undefined;
66
+ groupId?: string | undefined;
67
+ }
68
+ export interface GetAttributesResponse {
69
+ items: AttributeResponse[];
70
+ meta: PaginationMeta | undefined;
71
+ }
72
+ export interface GetAttributeRequest {
73
+ id: string;
74
+ slug?: string | undefined;
75
+ }
76
+ export interface CreateAttributeRequest {
77
+ groupId?: string | undefined;
78
+ slug: string;
79
+ name: {
80
+ [key: string]: string;
81
+ };
82
+ displayType: string;
83
+ sortOrder: number;
84
+ guid1c?: string | undefined;
85
+ }
86
+ export interface CreateAttributeRequest_NameEntry {
87
+ key: string;
88
+ value: string;
89
+ }
90
+ export interface UpdateAttributeRequest {
91
+ id: string;
92
+ groupId?: string | undefined;
93
+ slug?: string | undefined;
94
+ name: {
95
+ [key: string]: string;
96
+ };
97
+ displayType?: string | undefined;
98
+ sortOrder?: number | undefined;
99
+ }
100
+ export interface UpdateAttributeRequest_NameEntry {
101
+ key: string;
102
+ value: string;
103
+ }
104
+ export interface DeleteAttributeRequest {
105
+ id: string;
106
+ }
107
+ export interface AttributeValueResponse {
108
+ id: string;
109
+ attributeId: string;
110
+ value: {
111
+ [key: string]: string;
112
+ };
113
+ meta?: string | undefined;
114
+ guid1c?: string | undefined;
115
+ }
116
+ export interface AttributeValueResponse_ValueEntry {
117
+ key: string;
118
+ value: string;
119
+ }
120
+ export interface GetAttributeValuesRequest {
121
+ attributeId: string;
122
+ }
123
+ export interface GetAttributeValuesResponse {
124
+ items: AttributeValueResponse[];
125
+ }
126
+ export interface CreateAttributeValueRequest {
127
+ attributeId: string;
128
+ value: {
129
+ [key: string]: string;
130
+ };
131
+ meta?: string | undefined;
132
+ guid1c?: string | undefined;
133
+ }
134
+ export interface CreateAttributeValueRequest_ValueEntry {
135
+ key: string;
136
+ value: string;
137
+ }
138
+ export interface UpdateAttributeValueRequest {
139
+ id: string;
140
+ value: {
141
+ [key: string]: string;
142
+ };
143
+ meta?: string | undefined;
144
+ }
145
+ export interface UpdateAttributeValueRequest_ValueEntry {
146
+ key: string;
147
+ value: string;
148
+ }
149
+ export interface DeleteAttributeValueRequest {
150
+ id: string;
151
+ }
152
+ export interface BindAttributeRequest {
153
+ categoryId: string;
154
+ attributeId: string;
155
+ }
156
+ export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
157
+ export interface AttributeServiceClient {
158
+ getAttributeGroups(request: GetAttributeGroupsRequest): Observable<GetAttributeGroupsResponse>;
159
+ getAttributeGroup(request: GetAttributeGroupRequest): Observable<AttributeGroupResponse>;
160
+ createAttributeGroup(request: CreateAttributeGroupRequest): Observable<AttributeGroupResponse>;
161
+ updateAttributeGroup(request: UpdateAttributeGroupRequest): Observable<AttributeGroupResponse>;
162
+ deleteAttributeGroup(request: DeleteAttributeGroupRequest): Observable<DeleteResponse>;
163
+ getAttributes(request: GetAttributesRequest): Observable<GetAttributesResponse>;
164
+ getAttribute(request: GetAttributeRequest): Observable<AttributeResponse>;
165
+ createAttribute(request: CreateAttributeRequest): Observable<AttributeResponse>;
166
+ updateAttribute(request: UpdateAttributeRequest): Observable<AttributeResponse>;
167
+ deleteAttribute(request: DeleteAttributeRequest): Observable<DeleteResponse>;
168
+ getAttributeValues(request: GetAttributeValuesRequest): Observable<GetAttributeValuesResponse>;
169
+ createAttributeValue(request: CreateAttributeValueRequest): Observable<AttributeValueResponse>;
170
+ updateAttributeValue(request: UpdateAttributeValueRequest): Observable<AttributeValueResponse>;
171
+ deleteAttributeValue(request: DeleteAttributeValueRequest): Observable<DeleteResponse>;
172
+ bindAttributeToCategory(request: BindAttributeRequest): Observable<SuccessResponse>;
173
+ unbindAttributeFromCategory(request: BindAttributeRequest): Observable<SuccessResponse>;
174
+ }
175
+ export interface AttributeServiceController {
176
+ getAttributeGroups(request: GetAttributeGroupsRequest): Promise<GetAttributeGroupsResponse> | Observable<GetAttributeGroupsResponse> | GetAttributeGroupsResponse;
177
+ getAttributeGroup(request: GetAttributeGroupRequest): Promise<AttributeGroupResponse> | Observable<AttributeGroupResponse> | AttributeGroupResponse;
178
+ createAttributeGroup(request: CreateAttributeGroupRequest): Promise<AttributeGroupResponse> | Observable<AttributeGroupResponse> | AttributeGroupResponse;
179
+ updateAttributeGroup(request: UpdateAttributeGroupRequest): Promise<AttributeGroupResponse> | Observable<AttributeGroupResponse> | AttributeGroupResponse;
180
+ deleteAttributeGroup(request: DeleteAttributeGroupRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
181
+ getAttributes(request: GetAttributesRequest): Promise<GetAttributesResponse> | Observable<GetAttributesResponse> | GetAttributesResponse;
182
+ getAttribute(request: GetAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
183
+ createAttribute(request: CreateAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
184
+ updateAttribute(request: UpdateAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
185
+ deleteAttribute(request: DeleteAttributeRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
186
+ getAttributeValues(request: GetAttributeValuesRequest): Promise<GetAttributeValuesResponse> | Observable<GetAttributeValuesResponse> | GetAttributeValuesResponse;
187
+ createAttributeValue(request: CreateAttributeValueRequest): Promise<AttributeValueResponse> | Observable<AttributeValueResponse> | AttributeValueResponse;
188
+ updateAttributeValue(request: UpdateAttributeValueRequest): Promise<AttributeValueResponse> | Observable<AttributeValueResponse> | AttributeValueResponse;
189
+ deleteAttributeValue(request: DeleteAttributeValueRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
190
+ bindAttributeToCategory(request: BindAttributeRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
191
+ unbindAttributeFromCategory(request: BindAttributeRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
192
+ }
193
+ export declare function AttributeServiceControllerMethods(): (constructor: Function) => void;
194
+ export declare const ATTRIBUTE_SERVICE_NAME = "AttributeService";
@@ -0,0 +1,45 @@
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 v7.34.0
6
+ // source: attribute.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ATTRIBUTE_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.AttributeServiceControllerMethods = AttributeServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "catalog.v1";
13
+ exports.CATALOG_V1_PACKAGE_NAME = "catalog.v1";
14
+ function AttributeServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = [
17
+ "getAttributeGroups",
18
+ "getAttributeGroup",
19
+ "createAttributeGroup",
20
+ "updateAttributeGroup",
21
+ "deleteAttributeGroup",
22
+ "getAttributes",
23
+ "getAttribute",
24
+ "createAttribute",
25
+ "updateAttribute",
26
+ "deleteAttribute",
27
+ "getAttributeValues",
28
+ "createAttributeValue",
29
+ "updateAttributeValue",
30
+ "deleteAttributeValue",
31
+ "bindAttributeToCategory",
32
+ "unbindAttributeFromCategory",
33
+ ];
34
+ for (const method of grpcMethods) {
35
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
36
+ (0, microservices_1.GrpcMethod)("AttributeService", method)(constructor.prototype[method], method, descriptor);
37
+ }
38
+ const grpcStreamMethods = [];
39
+ for (const method of grpcStreamMethods) {
40
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
41
+ (0, microservices_1.GrpcStreamMethod)("AttributeService", method)(constructor.prototype[method], method, descriptor);
42
+ }
43
+ };
44
+ }
45
+ exports.ATTRIBUTE_SERVICE_NAME = "AttributeService";
@@ -0,0 +1,53 @@
1
+ import { Observable } from "rxjs";
2
+ export declare const protobufPackage = "auth.v1";
3
+ export interface SendOtpRequest {
4
+ identifier: string;
5
+ type: string;
6
+ }
7
+ export interface SendOtpResponse {
8
+ ok: boolean;
9
+ }
10
+ export interface VerifyOtpRequest {
11
+ identifier: string;
12
+ type: string;
13
+ code: string;
14
+ }
15
+ export interface LoginRequest {
16
+ identifier: string;
17
+ type: string;
18
+ password: string;
19
+ }
20
+ export interface RegisterRequest {
21
+ firstName: string;
22
+ lastName: string;
23
+ email: string;
24
+ password: string;
25
+ }
26
+ export interface AuthResponse {
27
+ accessToken: string;
28
+ refreshToken: string;
29
+ }
30
+ export interface RefreshRequest {
31
+ refreshToken: string;
32
+ }
33
+ export interface RefreshResponse {
34
+ accessToken: string;
35
+ refreshToken: string;
36
+ }
37
+ export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
38
+ export interface AuthServiceClient {
39
+ sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
40
+ verifyOtp(request: VerifyOtpRequest): Observable<AuthResponse>;
41
+ refresh(request: RefreshRequest): Observable<RefreshResponse>;
42
+ login(request: LoginRequest): Observable<AuthResponse>;
43
+ register(request: RegisterRequest): Observable<AuthResponse>;
44
+ }
45
+ export interface AuthServiceController {
46
+ sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
47
+ verifyOtp(request: VerifyOtpRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
48
+ refresh(request: RefreshRequest): Promise<RefreshResponse> | Observable<RefreshResponse> | RefreshResponse;
49
+ login(request: LoginRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
50
+ register(request: RegisterRequest): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
51
+ }
52
+ export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
53
+ export declare const AUTH_SERVICE_NAME = "AuthService";
@@ -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 v7.34.0
6
+ // source: auth.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "auth.v1";
13
+ exports.AUTH_V1_PACKAGE_NAME = "auth.v1";
14
+ function AuthServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["sendOtp", "verifyOtp", "refresh", "login", "register"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("AuthService", 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)("AuthService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.AUTH_SERVICE_NAME = "AuthService";
@@ -0,0 +1,116 @@
1
+ import { Observable } from "rxjs";
2
+ import { DeleteResponse, PaginationMeta, PaginationRequest } from "./common";
3
+ export declare const protobufPackage = "catalog.v1";
4
+ export interface BrandResponse {
5
+ id: string;
6
+ slug: string;
7
+ name: string;
8
+ image?: string | undefined;
9
+ description: {
10
+ [key: string]: string;
11
+ };
12
+ metaTitle: {
13
+ [key: string]: string;
14
+ };
15
+ metaDescription: {
16
+ [key: string]: string;
17
+ };
18
+ guid1c?: string | undefined;
19
+ }
20
+ export interface BrandResponse_DescriptionEntry {
21
+ key: string;
22
+ value: string;
23
+ }
24
+ export interface BrandResponse_MetaTitleEntry {
25
+ key: string;
26
+ value: string;
27
+ }
28
+ export interface BrandResponse_MetaDescriptionEntry {
29
+ key: string;
30
+ value: string;
31
+ }
32
+ export interface GetBrandsRequest {
33
+ pagination: PaginationRequest | undefined;
34
+ }
35
+ export interface GetBrandsResponse {
36
+ items: BrandResponse[];
37
+ meta: PaginationMeta | undefined;
38
+ }
39
+ export interface GetBrandRequest {
40
+ id: string;
41
+ slug?: string | undefined;
42
+ }
43
+ export interface CreateBrandRequest {
44
+ slug: string;
45
+ name: string;
46
+ image?: string | undefined;
47
+ description: {
48
+ [key: string]: string;
49
+ };
50
+ metaTitle: {
51
+ [key: string]: string;
52
+ };
53
+ metaDescription: {
54
+ [key: string]: string;
55
+ };
56
+ guid1c?: string | undefined;
57
+ }
58
+ export interface CreateBrandRequest_DescriptionEntry {
59
+ key: string;
60
+ value: string;
61
+ }
62
+ export interface CreateBrandRequest_MetaTitleEntry {
63
+ key: string;
64
+ value: string;
65
+ }
66
+ export interface CreateBrandRequest_MetaDescriptionEntry {
67
+ key: string;
68
+ value: string;
69
+ }
70
+ export interface UpdateBrandRequest {
71
+ id: string;
72
+ slug?: string | undefined;
73
+ name?: string | undefined;
74
+ image?: string | undefined;
75
+ description: {
76
+ [key: string]: string;
77
+ };
78
+ metaTitle: {
79
+ [key: string]: string;
80
+ };
81
+ metaDescription: {
82
+ [key: string]: string;
83
+ };
84
+ }
85
+ export interface UpdateBrandRequest_DescriptionEntry {
86
+ key: string;
87
+ value: string;
88
+ }
89
+ export interface UpdateBrandRequest_MetaTitleEntry {
90
+ key: string;
91
+ value: string;
92
+ }
93
+ export interface UpdateBrandRequest_MetaDescriptionEntry {
94
+ key: string;
95
+ value: string;
96
+ }
97
+ export interface DeleteBrandRequest {
98
+ id: string;
99
+ }
100
+ export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
101
+ export interface BrandServiceClient {
102
+ getBrands(request: GetBrandsRequest): Observable<GetBrandsResponse>;
103
+ getBrand(request: GetBrandRequest): Observable<BrandResponse>;
104
+ createBrand(request: CreateBrandRequest): Observable<BrandResponse>;
105
+ updateBrand(request: UpdateBrandRequest): Observable<BrandResponse>;
106
+ deleteBrand(request: DeleteBrandRequest): Observable<DeleteResponse>;
107
+ }
108
+ export interface BrandServiceController {
109
+ getBrands(request: GetBrandsRequest): Promise<GetBrandsResponse> | Observable<GetBrandsResponse> | GetBrandsResponse;
110
+ getBrand(request: GetBrandRequest): Promise<BrandResponse> | Observable<BrandResponse> | BrandResponse;
111
+ createBrand(request: CreateBrandRequest): Promise<BrandResponse> | Observable<BrandResponse> | BrandResponse;
112
+ updateBrand(request: UpdateBrandRequest): Promise<BrandResponse> | Observable<BrandResponse> | BrandResponse;
113
+ deleteBrand(request: DeleteBrandRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
114
+ }
115
+ export declare function BrandServiceControllerMethods(): (constructor: Function) => void;
116
+ export declare const BRAND_SERVICE_NAME = "BrandService";
@@ -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 v7.34.0
6
+ // source: brand.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.BRAND_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.BrandServiceControllerMethods = BrandServiceControllerMethods;
10
+ /* eslint-disable */
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = "catalog.v1";
13
+ exports.CATALOG_V1_PACKAGE_NAME = "catalog.v1";
14
+ function BrandServiceControllerMethods() {
15
+ return function (constructor) {
16
+ const grpcMethods = ["getBrands", "getBrand", "createBrand", "updateBrand", "deleteBrand"];
17
+ for (const method of grpcMethods) {
18
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
+ (0, microservices_1.GrpcMethod)("BrandService", 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)("BrandService", method)(constructor.prototype[method], method, descriptor);
25
+ }
26
+ };
27
+ }
28
+ exports.BRAND_SERVICE_NAME = "BrandService";