@mamindom/contracts 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/gen/account.d.ts +0 -70
- package/dist/gen/account.js +0 -43
- package/dist/gen/attribute.d.ts +0 -194
- package/dist/gen/attribute.js +0 -45
- package/dist/gen/auth.d.ts +0 -53
- package/dist/gen/auth.js +0 -28
- package/dist/gen/brand.d.ts +0 -116
- package/dist/gen/brand.js +0 -28
- package/dist/gen/catalog.d.ts +0 -266
- package/dist/gen/catalog.js +0 -41
- package/dist/gen/categorie.d.ts +0 -8
- package/dist/gen/categorie.js +0 -28
- package/dist/gen/category.d.ts +0 -202
- package/dist/gen/category.js +0 -35
- package/dist/gen/common.d.ts +0 -18
- package/dist/gen/common.js +0 -11
- package/dist/gen/product.d.ts +0 -301
- package/dist/gen/product.js +0 -46
- package/dist/gen/users.d.ts +0 -47
- package/dist/gen/users.js +0 -28
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/proto → proto}/index.d.ts +0 -0
- /package/dist/{src/proto → proto}/index.js +0 -0
- /package/dist/{src/proto → proto}/paths.d.ts +0 -0
- /package/dist/{src/proto → proto}/paths.js +0 -0
package/dist/gen/catalog.d.ts
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
export declare const protobufPackage = "catalog.v1";
|
|
3
|
-
export interface SuccessResponse {
|
|
4
|
-
success: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface DeleteResponse {
|
|
7
|
-
success: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface GetCategoryTreeRequest {
|
|
10
|
-
lang: string;
|
|
11
|
-
}
|
|
12
|
-
export interface CategoryTreeNode {
|
|
13
|
-
id: string;
|
|
14
|
-
parentId: string;
|
|
15
|
-
slug: string;
|
|
16
|
-
name: string;
|
|
17
|
-
image: string;
|
|
18
|
-
children: CategoryTreeNode[];
|
|
19
|
-
}
|
|
20
|
-
export interface GetCategoryTreeResponse {
|
|
21
|
-
items: CategoryTreeNode[];
|
|
22
|
-
}
|
|
23
|
-
export interface CategoryResponse {
|
|
24
|
-
id: string;
|
|
25
|
-
parentId?: string | undefined;
|
|
26
|
-
slug: string;
|
|
27
|
-
image?: string | undefined;
|
|
28
|
-
status: boolean;
|
|
29
|
-
sortOrder: number;
|
|
30
|
-
name: {
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
};
|
|
33
|
-
description: {
|
|
34
|
-
[key: string]: string;
|
|
35
|
-
};
|
|
36
|
-
metaTitle: {
|
|
37
|
-
[key: string]: string;
|
|
38
|
-
};
|
|
39
|
-
metaDescription: {
|
|
40
|
-
[key: string]: string;
|
|
41
|
-
};
|
|
42
|
-
metaKeywords: {
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
};
|
|
45
|
-
metaH1: {
|
|
46
|
-
[key: string]: string;
|
|
47
|
-
};
|
|
48
|
-
guid1c?: string | undefined;
|
|
49
|
-
}
|
|
50
|
-
export interface CategoryResponse_NameEntry {
|
|
51
|
-
key: string;
|
|
52
|
-
value: string;
|
|
53
|
-
}
|
|
54
|
-
export interface CategoryResponse_DescriptionEntry {
|
|
55
|
-
key: string;
|
|
56
|
-
value: string;
|
|
57
|
-
}
|
|
58
|
-
export interface CategoryResponse_MetaTitleEntry {
|
|
59
|
-
key: string;
|
|
60
|
-
value: string;
|
|
61
|
-
}
|
|
62
|
-
export interface CategoryResponse_MetaDescriptionEntry {
|
|
63
|
-
key: string;
|
|
64
|
-
value: string;
|
|
65
|
-
}
|
|
66
|
-
export interface CategoryResponse_MetaKeywordsEntry {
|
|
67
|
-
key: string;
|
|
68
|
-
value: string;
|
|
69
|
-
}
|
|
70
|
-
export interface CategoryResponse_MetaH1Entry {
|
|
71
|
-
key: string;
|
|
72
|
-
value: string;
|
|
73
|
-
}
|
|
74
|
-
export interface GetCategoryRequest {
|
|
75
|
-
id: string;
|
|
76
|
-
slug?: string | undefined;
|
|
77
|
-
}
|
|
78
|
-
export interface CreateCategoryRequest {
|
|
79
|
-
parentId?: string | undefined;
|
|
80
|
-
slug: string;
|
|
81
|
-
image?: string | undefined;
|
|
82
|
-
status: boolean;
|
|
83
|
-
sortOrder: number;
|
|
84
|
-
name: {
|
|
85
|
-
[key: string]: string;
|
|
86
|
-
};
|
|
87
|
-
description: {
|
|
88
|
-
[key: string]: string;
|
|
89
|
-
};
|
|
90
|
-
metaTitle: {
|
|
91
|
-
[key: string]: string;
|
|
92
|
-
};
|
|
93
|
-
metaDescription: {
|
|
94
|
-
[key: string]: string;
|
|
95
|
-
};
|
|
96
|
-
metaKeywords: {
|
|
97
|
-
[key: string]: string;
|
|
98
|
-
};
|
|
99
|
-
metaH1: {
|
|
100
|
-
[key: string]: string;
|
|
101
|
-
};
|
|
102
|
-
guid1c?: string | undefined;
|
|
103
|
-
}
|
|
104
|
-
export interface CreateCategoryRequest_NameEntry {
|
|
105
|
-
key: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}
|
|
108
|
-
export interface CreateCategoryRequest_DescriptionEntry {
|
|
109
|
-
key: string;
|
|
110
|
-
value: string;
|
|
111
|
-
}
|
|
112
|
-
export interface CreateCategoryRequest_MetaTitleEntry {
|
|
113
|
-
key: string;
|
|
114
|
-
value: string;
|
|
115
|
-
}
|
|
116
|
-
export interface CreateCategoryRequest_MetaDescriptionEntry {
|
|
117
|
-
key: string;
|
|
118
|
-
value: string;
|
|
119
|
-
}
|
|
120
|
-
export interface CreateCategoryRequest_MetaKeywordsEntry {
|
|
121
|
-
key: string;
|
|
122
|
-
value: string;
|
|
123
|
-
}
|
|
124
|
-
export interface CreateCategoryRequest_MetaH1Entry {
|
|
125
|
-
key: string;
|
|
126
|
-
value: string;
|
|
127
|
-
}
|
|
128
|
-
export interface UpdateCategoryRequest {
|
|
129
|
-
id: string;
|
|
130
|
-
parentId?: string | undefined;
|
|
131
|
-
slug?: string | undefined;
|
|
132
|
-
image?: string | undefined;
|
|
133
|
-
status?: boolean | undefined;
|
|
134
|
-
sortOrder?: number | undefined;
|
|
135
|
-
name: {
|
|
136
|
-
[key: string]: string;
|
|
137
|
-
};
|
|
138
|
-
description: {
|
|
139
|
-
[key: string]: string;
|
|
140
|
-
};
|
|
141
|
-
metaTitle: {
|
|
142
|
-
[key: string]: string;
|
|
143
|
-
};
|
|
144
|
-
metaDescription: {
|
|
145
|
-
[key: string]: string;
|
|
146
|
-
};
|
|
147
|
-
metaKeywords: {
|
|
148
|
-
[key: string]: string;
|
|
149
|
-
};
|
|
150
|
-
metaH1: {
|
|
151
|
-
[key: string]: string;
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
export interface UpdateCategoryRequest_NameEntry {
|
|
155
|
-
key: string;
|
|
156
|
-
value: string;
|
|
157
|
-
}
|
|
158
|
-
export interface UpdateCategoryRequest_DescriptionEntry {
|
|
159
|
-
key: string;
|
|
160
|
-
value: string;
|
|
161
|
-
}
|
|
162
|
-
export interface UpdateCategoryRequest_MetaTitleEntry {
|
|
163
|
-
key: string;
|
|
164
|
-
value: string;
|
|
165
|
-
}
|
|
166
|
-
export interface UpdateCategoryRequest_MetaDescriptionEntry {
|
|
167
|
-
key: string;
|
|
168
|
-
value: string;
|
|
169
|
-
}
|
|
170
|
-
export interface UpdateCategoryRequest_MetaKeywordsEntry {
|
|
171
|
-
key: string;
|
|
172
|
-
value: string;
|
|
173
|
-
}
|
|
174
|
-
export interface UpdateCategoryRequest_MetaH1Entry {
|
|
175
|
-
key: string;
|
|
176
|
-
value: string;
|
|
177
|
-
}
|
|
178
|
-
export interface DeleteCategoryRequest {
|
|
179
|
-
id: string;
|
|
180
|
-
}
|
|
181
|
-
export interface CategoryOrderItem {
|
|
182
|
-
id: string;
|
|
183
|
-
sortOrder: number;
|
|
184
|
-
parentId?: string | undefined;
|
|
185
|
-
}
|
|
186
|
-
export interface UpdateCategoryOrderRequest {
|
|
187
|
-
items: CategoryOrderItem[];
|
|
188
|
-
}
|
|
189
|
-
export interface AttributeResponse {
|
|
190
|
-
id: string;
|
|
191
|
-
slug: string;
|
|
192
|
-
name: {
|
|
193
|
-
[key: string]: string;
|
|
194
|
-
};
|
|
195
|
-
displayType: string;
|
|
196
|
-
guid1c?: string | undefined;
|
|
197
|
-
}
|
|
198
|
-
export interface AttributeResponse_NameEntry {
|
|
199
|
-
key: string;
|
|
200
|
-
value: string;
|
|
201
|
-
}
|
|
202
|
-
export interface GetAttributeRequest {
|
|
203
|
-
id: string;
|
|
204
|
-
}
|
|
205
|
-
export interface CreateAttributeRequest {
|
|
206
|
-
slug: string;
|
|
207
|
-
name: {
|
|
208
|
-
[key: string]: string;
|
|
209
|
-
};
|
|
210
|
-
displayType: string;
|
|
211
|
-
guid1c?: string | undefined;
|
|
212
|
-
}
|
|
213
|
-
export interface CreateAttributeRequest_NameEntry {
|
|
214
|
-
key: string;
|
|
215
|
-
value: string;
|
|
216
|
-
}
|
|
217
|
-
export interface UpdateAttributeRequest {
|
|
218
|
-
id: string;
|
|
219
|
-
slug?: string | undefined;
|
|
220
|
-
name: {
|
|
221
|
-
[key: string]: string;
|
|
222
|
-
};
|
|
223
|
-
displayType?: string | undefined;
|
|
224
|
-
}
|
|
225
|
-
export interface UpdateAttributeRequest_NameEntry {
|
|
226
|
-
key: string;
|
|
227
|
-
value: string;
|
|
228
|
-
}
|
|
229
|
-
export interface DeleteAttributeRequest {
|
|
230
|
-
id: string;
|
|
231
|
-
}
|
|
232
|
-
export interface BindAttributeRequest {
|
|
233
|
-
categoryId: string;
|
|
234
|
-
attributeId: string;
|
|
235
|
-
}
|
|
236
|
-
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
237
|
-
export interface CatalogServiceClient {
|
|
238
|
-
getCategoryTree(request: GetCategoryTreeRequest): Observable<GetCategoryTreeResponse>;
|
|
239
|
-
getCategory(request: GetCategoryRequest): Observable<CategoryResponse>;
|
|
240
|
-
createCategory(request: CreateCategoryRequest): Observable<CategoryResponse>;
|
|
241
|
-
updateCategory(request: UpdateCategoryRequest): Observable<CategoryResponse>;
|
|
242
|
-
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
|
|
243
|
-
updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
|
|
244
|
-
getAttribute(request: GetAttributeRequest): Observable<AttributeResponse>;
|
|
245
|
-
createAttribute(request: CreateAttributeRequest): Observable<AttributeResponse>;
|
|
246
|
-
updateAttribute(request: UpdateAttributeRequest): Observable<AttributeResponse>;
|
|
247
|
-
deleteAttribute(request: DeleteAttributeRequest): Observable<DeleteResponse>;
|
|
248
|
-
bindAttributeToCategory(request: BindAttributeRequest): Observable<SuccessResponse>;
|
|
249
|
-
unbindAttributeFromCategory(request: BindAttributeRequest): Observable<SuccessResponse>;
|
|
250
|
-
}
|
|
251
|
-
export interface CatalogServiceController {
|
|
252
|
-
getCategoryTree(request: GetCategoryTreeRequest): Promise<GetCategoryTreeResponse> | Observable<GetCategoryTreeResponse> | GetCategoryTreeResponse;
|
|
253
|
-
getCategory(request: GetCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
254
|
-
createCategory(request: CreateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
255
|
-
updateCategory(request: UpdateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
256
|
-
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
257
|
-
updateCategoryOrder(request: UpdateCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
258
|
-
getAttribute(request: GetAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
|
|
259
|
-
createAttribute(request: CreateAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
|
|
260
|
-
updateAttribute(request: UpdateAttributeRequest): Promise<AttributeResponse> | Observable<AttributeResponse> | AttributeResponse;
|
|
261
|
-
deleteAttribute(request: DeleteAttributeRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
262
|
-
bindAttributeToCategory(request: BindAttributeRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
263
|
-
unbindAttributeFromCategory(request: BindAttributeRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
264
|
-
}
|
|
265
|
-
export declare function CatalogServiceControllerMethods(): (constructor: Function) => void;
|
|
266
|
-
export declare const CATALOG_SERVICE_NAME = "CatalogService";
|
package/dist/gen/catalog.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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: catalog.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CATALOG_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
exports.CatalogServiceControllerMethods = CatalogServiceControllerMethods;
|
|
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 CatalogServiceControllerMethods() {
|
|
15
|
-
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
"getCategoryTree",
|
|
18
|
-
"getCategory",
|
|
19
|
-
"createCategory",
|
|
20
|
-
"updateCategory",
|
|
21
|
-
"deleteCategory",
|
|
22
|
-
"updateCategoryOrder",
|
|
23
|
-
"getAttribute",
|
|
24
|
-
"createAttribute",
|
|
25
|
-
"updateAttribute",
|
|
26
|
-
"deleteAttribute",
|
|
27
|
-
"bindAttributeToCategory",
|
|
28
|
-
"unbindAttributeFromCategory",
|
|
29
|
-
];
|
|
30
|
-
for (const method of grpcMethods) {
|
|
31
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
32
|
-
(0, microservices_1.GrpcMethod)("CatalogService", method)(constructor.prototype[method], method, descriptor);
|
|
33
|
-
}
|
|
34
|
-
const grpcStreamMethods = [];
|
|
35
|
-
for (const method of grpcStreamMethods) {
|
|
36
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
37
|
-
(0, microservices_1.GrpcStreamMethod)("CatalogService", method)(constructor.prototype[method], method, descriptor);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.CATALOG_SERVICE_NAME = "CatalogService";
|
package/dist/gen/categorie.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const protobufPackage = "categories.v1";
|
|
2
|
-
export declare const CATEGORIES_V1_PACKAGE_NAME = "categories.v1";
|
|
3
|
-
export interface CategoriesServiceClient {
|
|
4
|
-
}
|
|
5
|
-
export interface CategoriesServiceController {
|
|
6
|
-
}
|
|
7
|
-
export declare function CategoriesServiceControllerMethods(): (constructor: Function) => void;
|
|
8
|
-
export declare const CATEGORIES_SERVICE_NAME = "CategoriesService";
|
package/dist/gen/categorie.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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: categorie.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CATEGORIES_SERVICE_NAME = exports.CATEGORIES_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
exports.CategoriesServiceControllerMethods = CategoriesServiceControllerMethods;
|
|
10
|
-
/* eslint-disable */
|
|
11
|
-
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage = "categories.v1";
|
|
13
|
-
exports.CATEGORIES_V1_PACKAGE_NAME = "categories.v1";
|
|
14
|
-
function CategoriesServiceControllerMethods() {
|
|
15
|
-
return function (constructor) {
|
|
16
|
-
const grpcMethods = [];
|
|
17
|
-
for (const method of grpcMethods) {
|
|
18
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
-
(0, microservices_1.GrpcMethod)("CategoriesService", 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)("CategoriesService", method)(constructor.prototype[method], method, descriptor);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.CATEGORIES_SERVICE_NAME = "CategoriesService";
|
package/dist/gen/category.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { DeleteResponse, SuccessResponse } from "./common";
|
|
3
|
-
export declare const protobufPackage = "catalog.v1";
|
|
4
|
-
export interface GetCategoryTreeRequest {
|
|
5
|
-
lang: string;
|
|
6
|
-
}
|
|
7
|
-
export interface CategoryTreeNode {
|
|
8
|
-
id: string;
|
|
9
|
-
parentId: string;
|
|
10
|
-
slug: string;
|
|
11
|
-
name: string;
|
|
12
|
-
image: string;
|
|
13
|
-
children: CategoryTreeNode[];
|
|
14
|
-
}
|
|
15
|
-
export interface GetCategoryTreeResponse {
|
|
16
|
-
items: CategoryTreeNode[];
|
|
17
|
-
}
|
|
18
|
-
export interface CategoryResponse {
|
|
19
|
-
id: string;
|
|
20
|
-
parentId?: string | undefined;
|
|
21
|
-
slug: string;
|
|
22
|
-
image?: string | undefined;
|
|
23
|
-
status: boolean;
|
|
24
|
-
sortOrder: number;
|
|
25
|
-
name: {
|
|
26
|
-
[key: string]: string;
|
|
27
|
-
};
|
|
28
|
-
description: {
|
|
29
|
-
[key: string]: string;
|
|
30
|
-
};
|
|
31
|
-
metaTitle: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
metaDescription: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
37
|
-
metaKeywords: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
metaH1: {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
guid1c?: string | undefined;
|
|
44
|
-
}
|
|
45
|
-
export interface CategoryResponse_NameEntry {
|
|
46
|
-
key: string;
|
|
47
|
-
value: string;
|
|
48
|
-
}
|
|
49
|
-
export interface CategoryResponse_DescriptionEntry {
|
|
50
|
-
key: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}
|
|
53
|
-
export interface CategoryResponse_MetaTitleEntry {
|
|
54
|
-
key: string;
|
|
55
|
-
value: string;
|
|
56
|
-
}
|
|
57
|
-
export interface CategoryResponse_MetaDescriptionEntry {
|
|
58
|
-
key: string;
|
|
59
|
-
value: string;
|
|
60
|
-
}
|
|
61
|
-
export interface CategoryResponse_MetaKeywordsEntry {
|
|
62
|
-
key: string;
|
|
63
|
-
value: string;
|
|
64
|
-
}
|
|
65
|
-
export interface CategoryResponse_MetaH1Entry {
|
|
66
|
-
key: string;
|
|
67
|
-
value: string;
|
|
68
|
-
}
|
|
69
|
-
export interface GetCategoryRequest {
|
|
70
|
-
id: string;
|
|
71
|
-
slug?: string | undefined;
|
|
72
|
-
}
|
|
73
|
-
export interface CreateCategoryRequest {
|
|
74
|
-
parentId?: string | undefined;
|
|
75
|
-
slug: string;
|
|
76
|
-
image?: string | undefined;
|
|
77
|
-
status: boolean;
|
|
78
|
-
sortOrder: number;
|
|
79
|
-
name: {
|
|
80
|
-
[key: string]: string;
|
|
81
|
-
};
|
|
82
|
-
description: {
|
|
83
|
-
[key: string]: string;
|
|
84
|
-
};
|
|
85
|
-
metaTitle: {
|
|
86
|
-
[key: string]: string;
|
|
87
|
-
};
|
|
88
|
-
metaDescription: {
|
|
89
|
-
[key: string]: string;
|
|
90
|
-
};
|
|
91
|
-
metaKeywords: {
|
|
92
|
-
[key: string]: string;
|
|
93
|
-
};
|
|
94
|
-
metaH1: {
|
|
95
|
-
[key: string]: string;
|
|
96
|
-
};
|
|
97
|
-
guid1c?: string | undefined;
|
|
98
|
-
}
|
|
99
|
-
export interface CreateCategoryRequest_NameEntry {
|
|
100
|
-
key: string;
|
|
101
|
-
value: string;
|
|
102
|
-
}
|
|
103
|
-
export interface CreateCategoryRequest_DescriptionEntry {
|
|
104
|
-
key: string;
|
|
105
|
-
value: string;
|
|
106
|
-
}
|
|
107
|
-
export interface CreateCategoryRequest_MetaTitleEntry {
|
|
108
|
-
key: string;
|
|
109
|
-
value: string;
|
|
110
|
-
}
|
|
111
|
-
export interface CreateCategoryRequest_MetaDescriptionEntry {
|
|
112
|
-
key: string;
|
|
113
|
-
value: string;
|
|
114
|
-
}
|
|
115
|
-
export interface CreateCategoryRequest_MetaKeywordsEntry {
|
|
116
|
-
key: string;
|
|
117
|
-
value: string;
|
|
118
|
-
}
|
|
119
|
-
export interface CreateCategoryRequest_MetaH1Entry {
|
|
120
|
-
key: string;
|
|
121
|
-
value: string;
|
|
122
|
-
}
|
|
123
|
-
export interface UpdateCategoryRequest {
|
|
124
|
-
id: string;
|
|
125
|
-
parentId?: string | undefined;
|
|
126
|
-
slug?: string | undefined;
|
|
127
|
-
image?: string | undefined;
|
|
128
|
-
status?: boolean | undefined;
|
|
129
|
-
sortOrder?: number | undefined;
|
|
130
|
-
name: {
|
|
131
|
-
[key: string]: string;
|
|
132
|
-
};
|
|
133
|
-
description: {
|
|
134
|
-
[key: string]: string;
|
|
135
|
-
};
|
|
136
|
-
metaTitle: {
|
|
137
|
-
[key: string]: string;
|
|
138
|
-
};
|
|
139
|
-
metaDescription: {
|
|
140
|
-
[key: string]: string;
|
|
141
|
-
};
|
|
142
|
-
metaKeywords: {
|
|
143
|
-
[key: string]: string;
|
|
144
|
-
};
|
|
145
|
-
metaH1: {
|
|
146
|
-
[key: string]: string;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
export interface UpdateCategoryRequest_NameEntry {
|
|
150
|
-
key: string;
|
|
151
|
-
value: string;
|
|
152
|
-
}
|
|
153
|
-
export interface UpdateCategoryRequest_DescriptionEntry {
|
|
154
|
-
key: string;
|
|
155
|
-
value: string;
|
|
156
|
-
}
|
|
157
|
-
export interface UpdateCategoryRequest_MetaTitleEntry {
|
|
158
|
-
key: string;
|
|
159
|
-
value: string;
|
|
160
|
-
}
|
|
161
|
-
export interface UpdateCategoryRequest_MetaDescriptionEntry {
|
|
162
|
-
key: string;
|
|
163
|
-
value: string;
|
|
164
|
-
}
|
|
165
|
-
export interface UpdateCategoryRequest_MetaKeywordsEntry {
|
|
166
|
-
key: string;
|
|
167
|
-
value: string;
|
|
168
|
-
}
|
|
169
|
-
export interface UpdateCategoryRequest_MetaH1Entry {
|
|
170
|
-
key: string;
|
|
171
|
-
value: string;
|
|
172
|
-
}
|
|
173
|
-
export interface DeleteCategoryRequest {
|
|
174
|
-
id: string;
|
|
175
|
-
}
|
|
176
|
-
export interface CategoryOrderItem {
|
|
177
|
-
id: string;
|
|
178
|
-
sortOrder: number;
|
|
179
|
-
parentId?: string | undefined;
|
|
180
|
-
}
|
|
181
|
-
export interface UpdateCategoryOrderRequest {
|
|
182
|
-
items: CategoryOrderItem[];
|
|
183
|
-
}
|
|
184
|
-
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
185
|
-
export interface CategoryServiceClient {
|
|
186
|
-
getCategoryTree(request: GetCategoryTreeRequest): Observable<GetCategoryTreeResponse>;
|
|
187
|
-
getCategory(request: GetCategoryRequest): Observable<CategoryResponse>;
|
|
188
|
-
createCategory(request: CreateCategoryRequest): Observable<CategoryResponse>;
|
|
189
|
-
updateCategory(request: UpdateCategoryRequest): Observable<CategoryResponse>;
|
|
190
|
-
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
|
|
191
|
-
updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
|
|
192
|
-
}
|
|
193
|
-
export interface CategoryServiceController {
|
|
194
|
-
getCategoryTree(request: GetCategoryTreeRequest): Promise<GetCategoryTreeResponse> | Observable<GetCategoryTreeResponse> | GetCategoryTreeResponse;
|
|
195
|
-
getCategory(request: GetCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
196
|
-
createCategory(request: CreateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
197
|
-
updateCategory(request: UpdateCategoryRequest): Promise<CategoryResponse> | Observable<CategoryResponse> | CategoryResponse;
|
|
198
|
-
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
199
|
-
updateCategoryOrder(request: UpdateCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
200
|
-
}
|
|
201
|
-
export declare function CategoryServiceControllerMethods(): (constructor: Function) => void;
|
|
202
|
-
export declare const CATEGORY_SERVICE_NAME = "CategoryService";
|
package/dist/gen/category.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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: category.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CATEGORY_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
exports.CategoryServiceControllerMethods = CategoryServiceControllerMethods;
|
|
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 CategoryServiceControllerMethods() {
|
|
15
|
-
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
"getCategoryTree",
|
|
18
|
-
"getCategory",
|
|
19
|
-
"createCategory",
|
|
20
|
-
"updateCategory",
|
|
21
|
-
"deleteCategory",
|
|
22
|
-
"updateCategoryOrder",
|
|
23
|
-
];
|
|
24
|
-
for (const method of grpcMethods) {
|
|
25
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
-
(0, microservices_1.GrpcMethod)("CategoryService", method)(constructor.prototype[method], method, descriptor);
|
|
27
|
-
}
|
|
28
|
-
const grpcStreamMethods = [];
|
|
29
|
-
for (const method of grpcStreamMethods) {
|
|
30
|
-
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcStreamMethod)("CategoryService", method)(constructor.prototype[method], method, descriptor);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
exports.CATEGORY_SERVICE_NAME = "CategoryService";
|
package/dist/gen/common.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const protobufPackage = "catalog.v1";
|
|
2
|
-
export interface SuccessResponse {
|
|
3
|
-
success: boolean;
|
|
4
|
-
}
|
|
5
|
-
export interface DeleteResponse {
|
|
6
|
-
success: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface PaginationRequest {
|
|
9
|
-
page: number;
|
|
10
|
-
limit: number;
|
|
11
|
-
}
|
|
12
|
-
export interface PaginationMeta {
|
|
13
|
-
totalItems: number;
|
|
14
|
-
totalPages: number;
|
|
15
|
-
currentPage: number;
|
|
16
|
-
perPage: number;
|
|
17
|
-
}
|
|
18
|
-
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
package/dist/gen/common.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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: common.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
exports.protobufPackage = "catalog.v1";
|
|
11
|
-
exports.CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|