@mamindom/contracts 1.0.140 → 1.0.142
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/audit.d.ts +0 -6
- package/dist/gen/banner.d.ts +0 -1
- package/dist/gen/bonus_settings.d.ts +0 -7
- package/dist/gen/brand.d.ts +0 -1
- package/dist/gen/bundle.d.ts +0 -9
- package/dist/gen/search.d.ts +0 -8
- package/dist/gen/seo_filter.d.ts +157 -0
- package/dist/gen/seo_filter.js +36 -0
- package/dist/gen/shop_filters.d.ts +7 -19
- package/dist/proto/audit.proto +6 -6
- package/dist/proto/banner.proto +1 -1
- package/dist/proto/bonus_settings.proto +4 -5
- package/dist/proto/brand.proto +1 -1
- package/dist/proto/bundle.proto +9 -14
- package/dist/proto/search.proto +1 -2
- package/dist/proto/seo_filter.proto +154 -0
- package/dist/proto/shop_filters.proto +15 -11
- package/dist/src/proto/paths.d.ts +1 -0
- package/dist/src/proto/paths.js +1 -0
- package/gen/audit.ts +5 -21
- package/gen/banner.ts +0 -1
- package/gen/bonus_settings.ts +0 -7
- package/gen/brand.ts +1 -4
- package/gen/bundle.ts +0 -9
- package/gen/search.ts +0 -10
- package/gen/seo_filter.ts +244 -0
- package/gen/shop_filters.ts +11 -28
- package/package.json +1 -1
- package/proto/audit.proto +6 -6
- package/proto/banner.proto +1 -1
- package/proto/bonus_settings.proto +4 -5
- package/proto/brand.proto +1 -1
- package/proto/bundle.proto +9 -14
- package/proto/search.proto +1 -2
- package/proto/seo_filter.proto +154 -0
- package/proto/shop_filters.proto +15 -11
package/dist/gen/audit.d.ts
CHANGED
|
@@ -4,14 +4,10 @@ export interface LogActionRequest {
|
|
|
4
4
|
actorId?: string | undefined;
|
|
5
5
|
actorName?: string | undefined;
|
|
6
6
|
actorEmail?: string | undefined;
|
|
7
|
-
/** e.g. "order.cancelled", "product.price_changed" */
|
|
8
7
|
action: string;
|
|
9
|
-
/** e.g. "order", "product", "role" */
|
|
10
8
|
targetType: string;
|
|
11
9
|
targetId?: string | undefined;
|
|
12
|
-
/** human-readable summary */
|
|
13
10
|
summary?: string | undefined;
|
|
14
|
-
/** serialized JSON snapshot (small!) */
|
|
15
11
|
beforeJson?: string | undefined;
|
|
16
12
|
afterJson?: string | undefined;
|
|
17
13
|
ip?: string | undefined;
|
|
@@ -27,9 +23,7 @@ export interface ListAuditRequest {
|
|
|
27
23
|
targetType?: string | undefined;
|
|
28
24
|
targetId?: string | undefined;
|
|
29
25
|
action?: string | undefined;
|
|
30
|
-
/** "orders" matches order.* etc */
|
|
31
26
|
actionGroup?: string | undefined;
|
|
32
|
-
/** ISO date */
|
|
33
27
|
from?: string | undefined;
|
|
34
28
|
to?: string | undefined;
|
|
35
29
|
}
|
package/dist/gen/banner.d.ts
CHANGED
|
@@ -118,7 +118,6 @@ export interface UpdateBannerRequest {
|
|
|
118
118
|
name: {
|
|
119
119
|
[key: string]: string;
|
|
120
120
|
};
|
|
121
|
-
/** empty = не оновлювати; non-empty = заміна повного списку плейсментів. */
|
|
122
121
|
placements: BannerPlacement[];
|
|
123
122
|
status?: boolean | undefined;
|
|
124
123
|
sortOrder?: number | undefined;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "promo.v1";
|
|
3
3
|
export interface BonusSettingsResponse {
|
|
4
|
-
/** Курс нарахування бонусів від суми замовлення (0.02 = 2%). */
|
|
5
4
|
earnRate: number;
|
|
6
|
-
/** Курс списання бонусів (1 бонус = N грн, default 1.0). */
|
|
7
5
|
redeemRate: number;
|
|
8
|
-
/** Мінімальна сума замовлення для нарахування бонусів (0 = без обмеження). */
|
|
9
6
|
minOrderForEarn: number;
|
|
10
|
-
/**
|
|
11
|
-
* Максимальний відсоток від суми замовлення, який можна оплатити бонусами
|
|
12
|
-
* (1.0 = до 100%, 0.5 = до 50%; 0 — без обмеження).
|
|
13
|
-
*/
|
|
14
7
|
maxRedeemShare: number;
|
|
15
8
|
updatedAt: string;
|
|
16
9
|
}
|
package/dist/gen/brand.d.ts
CHANGED
package/dist/gen/bundle.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ export interface CreateBundleRequest {
|
|
|
85
85
|
};
|
|
86
86
|
items: BundleItemPayload[];
|
|
87
87
|
createdById: string;
|
|
88
|
-
/** NEW */
|
|
89
88
|
displayPlacements: DisplayPlacement[];
|
|
90
89
|
priceMode: PriceMode;
|
|
91
90
|
requireAllInStock: boolean;
|
|
@@ -140,7 +139,6 @@ export interface UpdateBundleRequest {
|
|
|
140
139
|
[key: string]: string;
|
|
141
140
|
};
|
|
142
141
|
items: BundleItemPayload[];
|
|
143
|
-
/** NEW */
|
|
144
142
|
displayPlacements: DisplayPlacement[];
|
|
145
143
|
priceMode?: PriceMode | undefined;
|
|
146
144
|
requireAllInStock?: boolean | undefined;
|
|
@@ -300,7 +298,6 @@ export interface BundleDetailResponse {
|
|
|
300
298
|
originalPrice: number;
|
|
301
299
|
finalPrice: number;
|
|
302
300
|
inStock: boolean;
|
|
303
|
-
/** NEW */
|
|
304
301
|
displayPlacements: DisplayPlacement[];
|
|
305
302
|
priceMode: PriceMode;
|
|
306
303
|
requireAllInStock: boolean;
|
|
@@ -374,24 +371,18 @@ export interface BundleItemAvailability {
|
|
|
374
371
|
inStock: boolean;
|
|
375
372
|
}
|
|
376
373
|
export interface ExportBundlesResponse {
|
|
377
|
-
/** JSON string or CSV string */
|
|
378
374
|
content: string;
|
|
379
375
|
format: string;
|
|
380
376
|
count: number;
|
|
381
377
|
}
|
|
382
378
|
export interface GenerateBundleCollageRequest {
|
|
383
379
|
bundleId: string;
|
|
384
|
-
/** Optional: override cell pixel size (default 400) */
|
|
385
380
|
cellSize?: number | undefined;
|
|
386
381
|
}
|
|
387
382
|
export interface GenerateBundleCollageResponse {
|
|
388
|
-
/** Public CDN/S3 URL of the collage JPEG */
|
|
389
383
|
url: string;
|
|
390
|
-
/** S3 object key */
|
|
391
384
|
key: string;
|
|
392
|
-
/** Final image width in pixels */
|
|
393
385
|
width: number;
|
|
394
|
-
/** Final image height in pixels */
|
|
395
386
|
height: number;
|
|
396
387
|
bundleId: string;
|
|
397
388
|
}
|
package/dist/gen/search.d.ts
CHANGED
|
@@ -130,10 +130,6 @@ export interface ListZeroResultsResponse {
|
|
|
130
130
|
export interface ClearZeroResultsRequest {
|
|
131
131
|
}
|
|
132
132
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
133
|
-
/**
|
|
134
|
-
* SearchService — окремий сервіс під autocomplete та керування пошуком
|
|
135
|
-
* (синоніми, популярні запити). Логіка та індекс живуть у catalog-service.
|
|
136
|
-
*/
|
|
137
133
|
export interface SearchServiceClient {
|
|
138
134
|
/** ─── Public (autocomplete) ─────────────────────────────────────────────── */
|
|
139
135
|
suggest(request: SuggestRequest): Observable<SuggestResponse>;
|
|
@@ -153,10 +149,6 @@ export interface SearchServiceClient {
|
|
|
153
149
|
listZeroResults(request: ListZeroResultsRequest): Observable<ListZeroResultsResponse>;
|
|
154
150
|
clearZeroResults(request: ClearZeroResultsRequest): Observable<SuccessResponse>;
|
|
155
151
|
}
|
|
156
|
-
/**
|
|
157
|
-
* SearchService — окремий сервіс під autocomplete та керування пошуком
|
|
158
|
-
* (синоніми, популярні запити). Логіка та індекс живуть у catalog-service.
|
|
159
|
-
*/
|
|
160
152
|
export interface SearchServiceController {
|
|
161
153
|
/** ─── Public (autocomplete) ─────────────────────────────────────────────── */
|
|
162
154
|
suggest(request: SuggestRequest): Promise<SuggestResponse> | Observable<SuggestResponse> | SuggestResponse;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { DeleteResponse, PaginationMeta, PaginationRequest } from "./common";
|
|
3
|
+
export declare const protobufPackage = "catalog.v1";
|
|
4
|
+
/**
|
|
5
|
+
* Частина combo. Однаковий формат і у DB (combo_parts JSON), і у gRPC.
|
|
6
|
+
* type: 'brand'|'price'|'color'|'size'
|
|
7
|
+
*/
|
|
8
|
+
export interface FilterPart {
|
|
9
|
+
type: string;
|
|
10
|
+
/** Для brand/color/size: */
|
|
11
|
+
valueId?: string | undefined;
|
|
12
|
+
valueSlug?: string | undefined;
|
|
13
|
+
/** Для price: */
|
|
14
|
+
priceMin?: number | undefined;
|
|
15
|
+
priceMax?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** Локалізовані поля (uk/ru) у форматі { uk: "...", ru: "..." }. */
|
|
18
|
+
export interface LocaleStrings {
|
|
19
|
+
uk: string;
|
|
20
|
+
ru: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SeoFilterResponse {
|
|
23
|
+
id: string;
|
|
24
|
+
categoryId: string;
|
|
25
|
+
comboHash: string;
|
|
26
|
+
comboParts: FilterPart[];
|
|
27
|
+
urlSegments: LocaleStrings | undefined;
|
|
28
|
+
title: LocaleStrings | undefined;
|
|
29
|
+
description: LocaleStrings | undefined;
|
|
30
|
+
h1: LocaleStrings | undefined;
|
|
31
|
+
isIndexed: boolean;
|
|
32
|
+
isAuto: boolean;
|
|
33
|
+
popularity: number;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ResolveSeoFilterRequest {
|
|
38
|
+
categoryId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Канонічно відсортовані URL segments як приходять з Next.js, напр.
|
|
41
|
+
* ["brend-cybex", "cina-1000-5000"]. Caller гарантує що порядок canonical.
|
|
42
|
+
*/
|
|
43
|
+
urlSegments: string[];
|
|
44
|
+
/** 'uk' | 'ru' */
|
|
45
|
+
locale: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ResolveSeoFilterResponse {
|
|
48
|
+
/** Якщо false → caller рендерить категорію з noindex,follow. */
|
|
49
|
+
found: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Якщо false → caller додає <meta robots="noindex,follow"> навіть якщо
|
|
52
|
+
* запис знайдено (наприклад, isIndexed=false manual override).
|
|
53
|
+
*/
|
|
54
|
+
isIndexed: boolean;
|
|
55
|
+
title: LocaleStrings | undefined;
|
|
56
|
+
description: LocaleStrings | undefined;
|
|
57
|
+
h1: LocaleStrings | undefined;
|
|
58
|
+
/** Canonical-URL-path без host: "/uk/c/koliaski/brend-cybex" */
|
|
59
|
+
canonicalPath: string;
|
|
60
|
+
/**
|
|
61
|
+
* Денормалізовані combo_parts з resolved valueId — для побудови
|
|
62
|
+
* запиту до products (categoryId + filter ids).
|
|
63
|
+
*/
|
|
64
|
+
resolvedParts: FilterPart[];
|
|
65
|
+
}
|
|
66
|
+
export interface ListSeoFiltersRequest {
|
|
67
|
+
pagination: PaginationRequest | undefined;
|
|
68
|
+
categoryId?: string | undefined;
|
|
69
|
+
isIndexed?: boolean | undefined;
|
|
70
|
+
isAuto?: boolean | undefined;
|
|
71
|
+
/** Пошук за uk/ru title (для адмін-фільтра). */
|
|
72
|
+
search?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface ListSeoFiltersResponse {
|
|
75
|
+
items: SeoFilterResponse[];
|
|
76
|
+
meta: PaginationMeta | undefined;
|
|
77
|
+
}
|
|
78
|
+
export interface GetSeoFilterRequest {
|
|
79
|
+
id: string;
|
|
80
|
+
}
|
|
81
|
+
export interface CreateSeoFilterRequest {
|
|
82
|
+
categoryId: string;
|
|
83
|
+
comboParts: FilterPart[];
|
|
84
|
+
title: LocaleStrings | undefined;
|
|
85
|
+
description: LocaleStrings | undefined;
|
|
86
|
+
h1: LocaleStrings | undefined;
|
|
87
|
+
isIndexed: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface UpdateSeoFilterRequest {
|
|
90
|
+
id: string;
|
|
91
|
+
title?: LocaleStrings | undefined;
|
|
92
|
+
description?: LocaleStrings | undefined;
|
|
93
|
+
h1?: LocaleStrings | undefined;
|
|
94
|
+
isIndexed?: boolean | undefined;
|
|
95
|
+
}
|
|
96
|
+
export interface DeleteSeoFilterRequest {
|
|
97
|
+
id: string;
|
|
98
|
+
}
|
|
99
|
+
export interface SuggestSeoFiltersRequest {
|
|
100
|
+
categoryId: string;
|
|
101
|
+
/** default 20 */
|
|
102
|
+
limit: number;
|
|
103
|
+
}
|
|
104
|
+
export interface SuggestSeoFilterCandidate {
|
|
105
|
+
/** Запропоновані combo_parts (валідні, з resolved slug). */
|
|
106
|
+
comboParts: FilterPart[];
|
|
107
|
+
/** Оцінка популярності: clicks / impressions / товарообіг (single число). */
|
|
108
|
+
score: number;
|
|
109
|
+
/** Чи існує вже SeoFilter з таким комбо (тоді UI ховає кнопку Create). */
|
|
110
|
+
alreadyExists: boolean;
|
|
111
|
+
/** Pre-built canonical URL path для preview. */
|
|
112
|
+
previewSegments: LocaleStrings | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface SuggestSeoFiltersResponse {
|
|
115
|
+
items: SuggestSeoFilterCandidate[];
|
|
116
|
+
}
|
|
117
|
+
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
118
|
+
/** ─── Public ────────────────────────────────────────────────────────────── */
|
|
119
|
+
export interface SeoFilterServiceClient {
|
|
120
|
+
/**
|
|
121
|
+
* Резолв ЧПУ-URL → metadata + canonical. Викликається SSR Next.js для
|
|
122
|
+
* кожного category/[[...filters]] запиту. Якщо combo не знайдено —
|
|
123
|
+
* повертає isIndexed=false і автогенерований fallback metadata.
|
|
124
|
+
*/
|
|
125
|
+
resolveSeoFilter(request: ResolveSeoFilterRequest): Observable<ResolveSeoFilterResponse>;
|
|
126
|
+
listSeoFilters(request: ListSeoFiltersRequest): Observable<ListSeoFiltersResponse>;
|
|
127
|
+
getSeoFilter(request: GetSeoFilterRequest): Observable<SeoFilterResponse>;
|
|
128
|
+
createSeoFilter(request: CreateSeoFilterRequest): Observable<SeoFilterResponse>;
|
|
129
|
+
updateSeoFilter(request: UpdateSeoFilterRequest): Observable<SeoFilterResponse>;
|
|
130
|
+
deleteSeoFilter(request: DeleteSeoFilterRequest): Observable<DeleteResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Топ-N непокритих combinations (за impressions/popularity) — для
|
|
133
|
+
* швидкого створення SeoFilter з адмін-форми "Автопідказки".
|
|
134
|
+
*/
|
|
135
|
+
suggestSeoFilters(request: SuggestSeoFiltersRequest): Observable<SuggestSeoFiltersResponse>;
|
|
136
|
+
}
|
|
137
|
+
/** ─── Public ────────────────────────────────────────────────────────────── */
|
|
138
|
+
export interface SeoFilterServiceController {
|
|
139
|
+
/**
|
|
140
|
+
* Резолв ЧПУ-URL → metadata + canonical. Викликається SSR Next.js для
|
|
141
|
+
* кожного category/[[...filters]] запиту. Якщо combo не знайдено —
|
|
142
|
+
* повертає isIndexed=false і автогенерований fallback metadata.
|
|
143
|
+
*/
|
|
144
|
+
resolveSeoFilter(request: ResolveSeoFilterRequest): Promise<ResolveSeoFilterResponse> | Observable<ResolveSeoFilterResponse> | ResolveSeoFilterResponse;
|
|
145
|
+
listSeoFilters(request: ListSeoFiltersRequest): Promise<ListSeoFiltersResponse> | Observable<ListSeoFiltersResponse> | ListSeoFiltersResponse;
|
|
146
|
+
getSeoFilter(request: GetSeoFilterRequest): Promise<SeoFilterResponse> | Observable<SeoFilterResponse> | SeoFilterResponse;
|
|
147
|
+
createSeoFilter(request: CreateSeoFilterRequest): Promise<SeoFilterResponse> | Observable<SeoFilterResponse> | SeoFilterResponse;
|
|
148
|
+
updateSeoFilter(request: UpdateSeoFilterRequest): Promise<SeoFilterResponse> | Observable<SeoFilterResponse> | SeoFilterResponse;
|
|
149
|
+
deleteSeoFilter(request: DeleteSeoFilterRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
150
|
+
/**
|
|
151
|
+
* Топ-N непокритих combinations (за impressions/popularity) — для
|
|
152
|
+
* швидкого створення SeoFilter з адмін-форми "Автопідказки".
|
|
153
|
+
*/
|
|
154
|
+
suggestSeoFilters(request: SuggestSeoFiltersRequest): Promise<SuggestSeoFiltersResponse> | Observable<SuggestSeoFiltersResponse> | SuggestSeoFiltersResponse;
|
|
155
|
+
}
|
|
156
|
+
export declare function SeoFilterServiceControllerMethods(): (constructor: Function) => void;
|
|
157
|
+
export declare const SEO_FILTER_SERVICE_NAME = "SeoFilterService";
|
|
@@ -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: seo_filter.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SEO_FILTER_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.SeoFilterServiceControllerMethods = SeoFilterServiceControllerMethods;
|
|
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 SeoFilterServiceControllerMethods() {
|
|
15
|
+
return function (constructor) {
|
|
16
|
+
const grpcMethods = [
|
|
17
|
+
"resolveSeoFilter",
|
|
18
|
+
"listSeoFilters",
|
|
19
|
+
"getSeoFilter",
|
|
20
|
+
"createSeoFilter",
|
|
21
|
+
"updateSeoFilter",
|
|
22
|
+
"deleteSeoFilter",
|
|
23
|
+
"suggestSeoFilters",
|
|
24
|
+
];
|
|
25
|
+
for (const method of grpcMethods) {
|
|
26
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
27
|
+
(0, microservices_1.GrpcMethod)("SeoFilterService", 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)("SeoFilterService", method)(constructor.prototype[method], method, descriptor);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.SEO_FILTER_SERVICE_NAME = "SeoFilterService";
|
|
@@ -3,10 +3,6 @@ import { PromotionFilter } from "./product";
|
|
|
3
3
|
export declare const protobufPackage = "catalog.v1";
|
|
4
4
|
export interface GetShopFiltersRequest {
|
|
5
5
|
categoryId: string;
|
|
6
|
-
/**
|
|
7
|
-
* Поточно застосовані фільтри. Counts по кожному facet рахуються
|
|
8
|
-
* з виключенням саме того facet — щоб лічильники реагували на вибір.
|
|
9
|
-
*/
|
|
10
6
|
brandIds: string[];
|
|
11
7
|
colorIds: string[];
|
|
12
8
|
sizeIds: string[];
|
|
@@ -14,19 +10,9 @@ export interface GetShopFiltersRequest {
|
|
|
14
10
|
priceMax?: number | undefined;
|
|
15
11
|
inStock?: boolean | undefined;
|
|
16
12
|
search?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Обмеження множини товарів акцією — фасети рахуються тільки
|
|
19
|
-
* по товарах, що належать поточній акції.
|
|
20
|
-
*/
|
|
21
13
|
promotionFilter?: PromotionFilter | undefined;
|
|
22
|
-
/** Динамічні атрибути окрім color/size (матеріал, виробник тощо). */
|
|
23
14
|
attributeValueIds: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Явний прапор "ціновий фільтр активний". Без нього неможливо
|
|
26
|
-
* відрізнити "користувач не вибирав" від "обрав від 0".
|
|
27
|
-
*/
|
|
28
15
|
priceActive?: boolean | undefined;
|
|
29
|
-
/** 'uk' | 'ru' — для локалізації labels у відповіді (дефолт uk). */
|
|
30
16
|
locale?: string | undefined;
|
|
31
17
|
}
|
|
32
18
|
export interface GetShopFiltersResponse {
|
|
@@ -36,7 +22,13 @@ export interface GetShopFiltersResponse {
|
|
|
36
22
|
attributes: ShopFilterAttribute[];
|
|
37
23
|
priceMin: number;
|
|
38
24
|
priceMax: number;
|
|
39
|
-
|
|
25
|
+
subcategories: ShopFilterSubcategory[];
|
|
26
|
+
}
|
|
27
|
+
export interface ShopFilterSubcategory {
|
|
28
|
+
id: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
label: string;
|
|
31
|
+
count: number;
|
|
40
32
|
}
|
|
41
33
|
export interface ShopFilterOption {
|
|
42
34
|
value: string;
|
|
@@ -51,10 +43,6 @@ export interface ShopFilterColorOption {
|
|
|
51
43
|
}
|
|
52
44
|
export interface ShopFilterAttribute {
|
|
53
45
|
slug: string;
|
|
54
|
-
/**
|
|
55
|
-
* Локалізована назва атрибута (на стороні gateway вже згорнута у
|
|
56
|
-
* одну рядкову label згідно locale запиту).
|
|
57
|
-
*/
|
|
58
46
|
label: string;
|
|
59
47
|
values: ShopFilterOption[];
|
|
60
48
|
}
|
package/dist/proto/audit.proto
CHANGED
|
@@ -11,11 +11,11 @@ message LogActionRequest {
|
|
|
11
11
|
optional string actor_id = 1;
|
|
12
12
|
optional string actor_name = 2;
|
|
13
13
|
optional string actor_email = 3;
|
|
14
|
-
string action = 4;
|
|
15
|
-
string target_type = 5;
|
|
14
|
+
string action = 4;
|
|
15
|
+
string target_type = 5;
|
|
16
16
|
optional string target_id = 6;
|
|
17
|
-
optional string summary = 7;
|
|
18
|
-
optional string before_json = 8;
|
|
17
|
+
optional string summary = 7;
|
|
18
|
+
optional string before_json = 8;
|
|
19
19
|
optional string after_json = 9;
|
|
20
20
|
optional string ip = 10;
|
|
21
21
|
optional string user_agent = 11;
|
|
@@ -32,8 +32,8 @@ message ListAuditRequest {
|
|
|
32
32
|
optional string target_type = 4;
|
|
33
33
|
optional string target_id = 5;
|
|
34
34
|
optional string action = 6;
|
|
35
|
-
optional string action_group = 7;
|
|
36
|
-
optional string from = 8;
|
|
35
|
+
optional string action_group = 7;
|
|
36
|
+
optional string from = 8;
|
|
37
37
|
optional string to = 9;
|
|
38
38
|
}
|
|
39
39
|
|
package/dist/proto/banner.proto
CHANGED
|
@@ -118,7 +118,7 @@ message UpdateBannerRequest {
|
|
|
118
118
|
string id = 1;
|
|
119
119
|
optional string slug = 2;
|
|
120
120
|
map<string, string> name = 3;
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
repeated BannerPlacement placements = 4;
|
|
123
123
|
optional bool status = 5;
|
|
124
124
|
optional int32 sort_order = 6;
|
|
@@ -10,14 +10,13 @@ service BonusSettingsService {
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
message BonusSettingsResponse {
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
double earn_rate = 1;
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
double redeem_rate = 2;
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
double min_order_for_earn = 3;
|
|
19
|
-
|
|
20
|
-
// (1.0 = до 100%, 0.5 = до 50%; 0 — без обмеження).
|
|
19
|
+
|
|
21
20
|
double max_redeem_share = 4;
|
|
22
21
|
|
|
23
22
|
string updated_at = 5;
|
package/dist/proto/brand.proto
CHANGED
package/dist/proto/bundle.proto
CHANGED
|
@@ -42,7 +42,6 @@ service BundleService {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
// ─── Enums ────────────────────────────────────────────────────────────────────
|
|
46
45
|
|
|
47
46
|
enum BundleStatus {
|
|
48
47
|
BUNDLE_STATUS_UNSPECIFIED = 0;
|
|
@@ -83,7 +82,6 @@ enum RuleOperator {
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
|
|
86
|
-
// ─── Requests ─────────────────────────────────────────────────────────────────
|
|
87
85
|
|
|
88
86
|
message GetBundlesRequest {
|
|
89
87
|
PaginationRequest pagination = 1;
|
|
@@ -122,7 +120,7 @@ message CreateBundleRequest {
|
|
|
122
120
|
repeated BundleItemPayload items = 15;
|
|
123
121
|
string created_by_id = 16;
|
|
124
122
|
|
|
125
|
-
|
|
123
|
+
|
|
126
124
|
repeated DisplayPlacement display_placements = 17;
|
|
127
125
|
PriceMode price_mode = 18;
|
|
128
126
|
bool require_all_in_stock = 19;
|
|
@@ -155,7 +153,7 @@ message UpdateBundleRequest {
|
|
|
155
153
|
|
|
156
154
|
repeated BundleItemPayload items = 16;
|
|
157
155
|
|
|
158
|
-
|
|
156
|
+
|
|
159
157
|
repeated DisplayPlacement display_placements = 17;
|
|
160
158
|
optional PriceMode price_mode = 18;
|
|
161
159
|
optional bool require_all_in_stock = 19;
|
|
@@ -252,7 +250,6 @@ message AddCrossSellLinkRequest {
|
|
|
252
250
|
}
|
|
253
251
|
|
|
254
252
|
|
|
255
|
-
// ─── Responses ────────────────────────────────────────────────────────────────
|
|
256
253
|
|
|
257
254
|
message GetBundlesResponse {
|
|
258
255
|
repeated BundleListItemResponse items = 1;
|
|
@@ -312,7 +309,7 @@ message BundleDetailResponse {
|
|
|
312
309
|
double final_price = 19;
|
|
313
310
|
bool in_stock = 20;
|
|
314
311
|
|
|
315
|
-
|
|
312
|
+
|
|
316
313
|
repeated DisplayPlacement display_placements = 21;
|
|
317
314
|
PriceMode price_mode = 22;
|
|
318
315
|
bool require_all_in_stock = 23;
|
|
@@ -360,26 +357,25 @@ message BundleItemAvailability {
|
|
|
360
357
|
}
|
|
361
358
|
|
|
362
359
|
message ExportBundlesResponse {
|
|
363
|
-
string content = 1;
|
|
360
|
+
string content = 1;
|
|
364
361
|
string format = 2;
|
|
365
362
|
int32 count = 3;
|
|
366
363
|
}
|
|
367
364
|
|
|
368
365
|
message GenerateBundleCollageRequest {
|
|
369
366
|
string bundle_id = 1;
|
|
370
|
-
|
|
367
|
+
|
|
371
368
|
optional int32 cell_size = 2;
|
|
372
369
|
}
|
|
373
370
|
|
|
374
371
|
message GenerateBundleCollageResponse {
|
|
375
|
-
string url = 1;
|
|
376
|
-
string key = 2;
|
|
377
|
-
int32 width = 3;
|
|
378
|
-
int32 height = 4;
|
|
372
|
+
string url = 1;
|
|
373
|
+
string key = 2;
|
|
374
|
+
int32 width = 3;
|
|
375
|
+
int32 height = 4;
|
|
379
376
|
string bundle_id = 5;
|
|
380
377
|
}
|
|
381
378
|
|
|
382
|
-
// ── Bulk Lookup ──────────────────────────────────────────────────────────────
|
|
383
379
|
|
|
384
380
|
message BulkLookupBundlesRequest {
|
|
385
381
|
repeated string slugs = 1;
|
|
@@ -396,7 +392,6 @@ message BulkLookupBundlesResponse {
|
|
|
396
392
|
repeated BundleLookupResult results = 1;
|
|
397
393
|
}
|
|
398
394
|
|
|
399
|
-
// ── Bundle Related Products ──────────────────────────────────────────────────
|
|
400
395
|
|
|
401
396
|
enum BundleRelatedType {
|
|
402
397
|
BUNDLE_RELATED_TYPE_UNSPECIFIED = 0;
|
package/dist/proto/search.proto
CHANGED
|
@@ -4,8 +4,7 @@ package catalog.v1;
|
|
|
4
4
|
|
|
5
5
|
import "common.proto";
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
// (синоніми, популярні запити). Логіка та індекс живуть у catalog-service.
|
|
7
|
+
|
|
9
8
|
service SearchService {
|
|
10
9
|
// ─── Public (autocomplete) ───────────────────────────────────────────────
|
|
11
10
|
rpc Suggest (SuggestRequest) returns (SuggestResponse);
|