@mamindom/contracts 1.0.148 → 1.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/category.d.ts +22 -0
- package/dist/gen/category.js +1 -0
- package/dist/gen/pickup.d.ts +4 -0
- package/dist/proto/category.proto +19 -1
- package/dist/proto/pickup.proto +5 -1
- package/gen/category.ts +28 -0
- package/gen/pickup.ts +4 -0
- package/package.json +1 -1
- package/proto/category.proto +19 -1
- package/proto/pickup.proto +5 -1
package/dist/gen/category.d.ts
CHANGED
|
@@ -30,6 +30,26 @@ export interface GetAllCategoriesRequest {
|
|
|
30
30
|
export interface GetAllCategoriesResponse {
|
|
31
31
|
items: CategoryResponse[];
|
|
32
32
|
}
|
|
33
|
+
export interface CategoryLight {
|
|
34
|
+
id: string;
|
|
35
|
+
parentId?: string | undefined;
|
|
36
|
+
slug: string;
|
|
37
|
+
image?: string | undefined;
|
|
38
|
+
status: boolean;
|
|
39
|
+
sortOrder: number;
|
|
40
|
+
name: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
imageId?: string | undefined;
|
|
44
|
+
guid1c?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface CategoryLight_NameEntry {
|
|
47
|
+
key: string;
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetAllCategoriesLightResponse {
|
|
51
|
+
items: CategoryLight[];
|
|
52
|
+
}
|
|
33
53
|
export interface GetCategoryTreeRequest {
|
|
34
54
|
lang: string;
|
|
35
55
|
}
|
|
@@ -222,6 +242,7 @@ export interface CategoryAdminServiceClient {
|
|
|
222
242
|
deleteCategory(request: DeleteCategoryRequest): Observable<DeleteResponse>;
|
|
223
243
|
updateCategoryOrder(request: UpdateCategoryOrderRequest): Observable<SuccessResponse>;
|
|
224
244
|
getAllCategories(request: GetAllCategoriesRequest): Observable<GetAllCategoriesResponse>;
|
|
245
|
+
getAllCategoriesLight(request: GetAllCategoriesRequest): Observable<GetAllCategoriesLightResponse>;
|
|
225
246
|
upsertCategories(request: UpsertCategoriesRequest): Observable<UpsertCategoriesResponse>;
|
|
226
247
|
}
|
|
227
248
|
export interface CategoryAdminServiceController {
|
|
@@ -232,6 +253,7 @@ export interface CategoryAdminServiceController {
|
|
|
232
253
|
deleteCategory(request: DeleteCategoryRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
233
254
|
updateCategoryOrder(request: UpdateCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
234
255
|
getAllCategories(request: GetAllCategoriesRequest): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
|
|
256
|
+
getAllCategoriesLight(request: GetAllCategoriesRequest): Promise<GetAllCategoriesLightResponse> | Observable<GetAllCategoriesLightResponse> | GetAllCategoriesLightResponse;
|
|
235
257
|
upsertCategories(request: UpsertCategoriesRequest): Promise<UpsertCategoriesResponse> | Observable<UpsertCategoriesResponse> | UpsertCategoriesResponse;
|
|
236
258
|
}
|
|
237
259
|
export declare function CategoryAdminServiceControllerMethods(): (constructor: Function) => void;
|
package/dist/gen/category.js
CHANGED
package/dist/gen/pickup.d.ts
CHANGED
|
@@ -12,10 +12,12 @@ export interface PickupPointResponse {
|
|
|
12
12
|
isActive: boolean;
|
|
13
13
|
code1c?: string | undefined;
|
|
14
14
|
schedule?: string | undefined;
|
|
15
|
+
showOnContacts: boolean;
|
|
15
16
|
}
|
|
16
17
|
export interface GetPickupPointsRequest {
|
|
17
18
|
isActive?: boolean | undefined;
|
|
18
19
|
city?: string | undefined;
|
|
20
|
+
showOnContacts?: boolean | undefined;
|
|
19
21
|
}
|
|
20
22
|
export interface GetPickupPointsResponse {
|
|
21
23
|
items: PickupPointResponse[];
|
|
@@ -33,6 +35,7 @@ export interface CreatePickupPointRequest {
|
|
|
33
35
|
isActive?: boolean | undefined;
|
|
34
36
|
code1c?: string | undefined;
|
|
35
37
|
schedule?: string | undefined;
|
|
38
|
+
showOnContacts?: boolean | undefined;
|
|
36
39
|
}
|
|
37
40
|
export interface UpdatePickupPointRequest {
|
|
38
41
|
id: string;
|
|
@@ -45,6 +48,7 @@ export interface UpdatePickupPointRequest {
|
|
|
45
48
|
isActive?: boolean | undefined;
|
|
46
49
|
code1c?: string | undefined;
|
|
47
50
|
schedule?: string | undefined;
|
|
51
|
+
showOnContacts?: boolean | undefined;
|
|
48
52
|
}
|
|
49
53
|
export interface DeletePickupPointRequest {
|
|
50
54
|
id: string;
|
|
@@ -24,7 +24,9 @@ service CategoryAdminService {
|
|
|
24
24
|
|
|
25
25
|
rpc GetAllCategories (GetAllCategoriesRequest) returns (GetAllCategoriesResponse);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
rpc GetAllCategoriesLight (GetAllCategoriesRequest) returns (GetAllCategoriesLightResponse);
|
|
28
|
+
|
|
29
|
+
|
|
28
30
|
rpc UpsertCategories (UpsertCategoriesRequest) returns (UpsertCategoriesResponse);
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -56,6 +58,22 @@ message GetAllCategoriesRequest {}
|
|
|
56
58
|
message GetAllCategoriesResponse {
|
|
57
59
|
repeated CategoryResponse items = 1;
|
|
58
60
|
}
|
|
61
|
+
|
|
62
|
+
message CategoryLight {
|
|
63
|
+
string id = 1;
|
|
64
|
+
optional string parent_id = 2;
|
|
65
|
+
string slug = 3;
|
|
66
|
+
optional string image = 4;
|
|
67
|
+
bool status = 5;
|
|
68
|
+
int32 sort_order = 6;
|
|
69
|
+
map<string, string> name = 7;
|
|
70
|
+
optional string image_id = 8;
|
|
71
|
+
optional string guid_1c = 9;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message GetAllCategoriesLightResponse {
|
|
75
|
+
repeated CategoryLight items = 1;
|
|
76
|
+
}
|
|
59
77
|
message GetCategoryTreeRequest {
|
|
60
78
|
string lang = 1;
|
|
61
79
|
}
|
package/dist/proto/pickup.proto
CHANGED
|
@@ -31,12 +31,14 @@ message PickupPointResponse {
|
|
|
31
31
|
optional double lng = 7;
|
|
32
32
|
bool is_active = 8;
|
|
33
33
|
optional string code_1c = 9;
|
|
34
|
-
optional string schedule = 10;
|
|
34
|
+
optional string schedule = 10;
|
|
35
|
+
bool show_on_contacts = 11;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
message GetPickupPointsRequest {
|
|
38
39
|
optional bool is_active = 1;
|
|
39
40
|
optional string city = 2;
|
|
41
|
+
optional bool show_on_contacts = 3;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
message GetPickupPointsResponse {
|
|
@@ -57,6 +59,7 @@ message CreatePickupPointRequest {
|
|
|
57
59
|
optional bool is_active = 7;
|
|
58
60
|
optional string code_1c = 8;
|
|
59
61
|
optional string schedule = 9;
|
|
62
|
+
optional bool show_on_contacts = 10;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
message UpdatePickupPointRequest {
|
|
@@ -70,6 +73,7 @@ message UpdatePickupPointRequest {
|
|
|
70
73
|
optional bool is_active = 8;
|
|
71
74
|
optional string code_1c = 9;
|
|
72
75
|
optional string schedule = 10;
|
|
76
|
+
optional bool show_on_contacts = 11;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
message DeletePickupPointRequest {
|
package/gen/category.ts
CHANGED
|
@@ -45,6 +45,27 @@ export interface GetAllCategoriesResponse {
|
|
|
45
45
|
items: CategoryResponse[];
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
export interface CategoryLight {
|
|
49
|
+
id: string;
|
|
50
|
+
parentId?: string | undefined;
|
|
51
|
+
slug: string;
|
|
52
|
+
image?: string | undefined;
|
|
53
|
+
status: boolean;
|
|
54
|
+
sortOrder: number;
|
|
55
|
+
name: { [key: string]: string };
|
|
56
|
+
imageId?: string | undefined;
|
|
57
|
+
guid1c?: string | undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface CategoryLight_NameEntry {
|
|
61
|
+
key: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface GetAllCategoriesLightResponse {
|
|
66
|
+
items: CategoryLight[];
|
|
67
|
+
}
|
|
68
|
+
|
|
48
69
|
export interface GetCategoryTreeRequest {
|
|
49
70
|
lang: string;
|
|
50
71
|
}
|
|
@@ -237,6 +258,8 @@ export interface CategoryAdminServiceClient {
|
|
|
237
258
|
|
|
238
259
|
getAllCategories(request: GetAllCategoriesRequest): Observable<GetAllCategoriesResponse>;
|
|
239
260
|
|
|
261
|
+
getAllCategoriesLight(request: GetAllCategoriesRequest): Observable<GetAllCategoriesLightResponse>;
|
|
262
|
+
|
|
240
263
|
upsertCategories(request: UpsertCategoriesRequest): Observable<UpsertCategoriesResponse>;
|
|
241
264
|
}
|
|
242
265
|
|
|
@@ -265,6 +288,10 @@ export interface CategoryAdminServiceController {
|
|
|
265
288
|
request: GetAllCategoriesRequest,
|
|
266
289
|
): Promise<GetAllCategoriesResponse> | Observable<GetAllCategoriesResponse> | GetAllCategoriesResponse;
|
|
267
290
|
|
|
291
|
+
getAllCategoriesLight(
|
|
292
|
+
request: GetAllCategoriesRequest,
|
|
293
|
+
): Promise<GetAllCategoriesLightResponse> | Observable<GetAllCategoriesLightResponse> | GetAllCategoriesLightResponse;
|
|
294
|
+
|
|
268
295
|
upsertCategories(
|
|
269
296
|
request: UpsertCategoriesRequest,
|
|
270
297
|
): Promise<UpsertCategoriesResponse> | Observable<UpsertCategoriesResponse> | UpsertCategoriesResponse;
|
|
@@ -280,6 +307,7 @@ export function CategoryAdminServiceControllerMethods() {
|
|
|
280
307
|
"deleteCategory",
|
|
281
308
|
"updateCategoryOrder",
|
|
282
309
|
"getAllCategories",
|
|
310
|
+
"getAllCategoriesLight",
|
|
283
311
|
"upsertCategories",
|
|
284
312
|
];
|
|
285
313
|
for (const method of grpcMethods) {
|
package/gen/pickup.ts
CHANGED
|
@@ -22,11 +22,13 @@ export interface PickupPointResponse {
|
|
|
22
22
|
isActive: boolean;
|
|
23
23
|
code1c?: string | undefined;
|
|
24
24
|
schedule?: string | undefined;
|
|
25
|
+
showOnContacts: boolean;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export interface GetPickupPointsRequest {
|
|
28
29
|
isActive?: boolean | undefined;
|
|
29
30
|
city?: string | undefined;
|
|
31
|
+
showOnContacts?: boolean | undefined;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export interface GetPickupPointsResponse {
|
|
@@ -47,6 +49,7 @@ export interface CreatePickupPointRequest {
|
|
|
47
49
|
isActive?: boolean | undefined;
|
|
48
50
|
code1c?: string | undefined;
|
|
49
51
|
schedule?: string | undefined;
|
|
52
|
+
showOnContacts?: boolean | undefined;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export interface UpdatePickupPointRequest {
|
|
@@ -60,6 +63,7 @@ export interface UpdatePickupPointRequest {
|
|
|
60
63
|
isActive?: boolean | undefined;
|
|
61
64
|
code1c?: string | undefined;
|
|
62
65
|
schedule?: string | undefined;
|
|
66
|
+
showOnContacts?: boolean | undefined;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
export interface DeletePickupPointRequest {
|
package/package.json
CHANGED
package/proto/category.proto
CHANGED
|
@@ -24,7 +24,9 @@ service CategoryAdminService {
|
|
|
24
24
|
|
|
25
25
|
rpc GetAllCategories (GetAllCategoriesRequest) returns (GetAllCategoriesResponse);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
rpc GetAllCategoriesLight (GetAllCategoriesRequest) returns (GetAllCategoriesLightResponse);
|
|
28
|
+
|
|
29
|
+
|
|
28
30
|
rpc UpsertCategories (UpsertCategoriesRequest) returns (UpsertCategoriesResponse);
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -56,6 +58,22 @@ message GetAllCategoriesRequest {}
|
|
|
56
58
|
message GetAllCategoriesResponse {
|
|
57
59
|
repeated CategoryResponse items = 1;
|
|
58
60
|
}
|
|
61
|
+
|
|
62
|
+
message CategoryLight {
|
|
63
|
+
string id = 1;
|
|
64
|
+
optional string parent_id = 2;
|
|
65
|
+
string slug = 3;
|
|
66
|
+
optional string image = 4;
|
|
67
|
+
bool status = 5;
|
|
68
|
+
int32 sort_order = 6;
|
|
69
|
+
map<string, string> name = 7;
|
|
70
|
+
optional string image_id = 8;
|
|
71
|
+
optional string guid_1c = 9;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message GetAllCategoriesLightResponse {
|
|
75
|
+
repeated CategoryLight items = 1;
|
|
76
|
+
}
|
|
59
77
|
message GetCategoryTreeRequest {
|
|
60
78
|
string lang = 1;
|
|
61
79
|
}
|
package/proto/pickup.proto
CHANGED
|
@@ -31,12 +31,14 @@ message PickupPointResponse {
|
|
|
31
31
|
optional double lng = 7;
|
|
32
32
|
bool is_active = 8;
|
|
33
33
|
optional string code_1c = 9;
|
|
34
|
-
optional string schedule = 10;
|
|
34
|
+
optional string schedule = 10;
|
|
35
|
+
bool show_on_contacts = 11;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
message GetPickupPointsRequest {
|
|
38
39
|
optional bool is_active = 1;
|
|
39
40
|
optional string city = 2;
|
|
41
|
+
optional bool show_on_contacts = 3;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
message GetPickupPointsResponse {
|
|
@@ -57,6 +59,7 @@ message CreatePickupPointRequest {
|
|
|
57
59
|
optional bool is_active = 7;
|
|
58
60
|
optional string code_1c = 8;
|
|
59
61
|
optional string schedule = 9;
|
|
62
|
+
optional bool show_on_contacts = 10;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
message UpdatePickupPointRequest {
|
|
@@ -70,6 +73,7 @@ message UpdatePickupPointRequest {
|
|
|
70
73
|
optional bool is_active = 8;
|
|
71
74
|
optional string code_1c = 9;
|
|
72
75
|
optional string schedule = 10;
|
|
76
|
+
optional bool show_on_contacts = 11;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
message DeletePickupPointRequest {
|