@mamindom/contracts 1.0.98 → 1.0.100
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/banner.d.ts +6 -0
- package/dist/gen/product.d.ts +22 -0
- package/dist/gen/product.js +9 -1
- package/dist/proto/banner.proto +6 -0
- package/dist/proto/product.proto +28 -0
- package/gen/banner.ts +6 -0
- package/gen/product.ts +31 -0
- package/package.json +1 -1
- package/proto/banner.proto +6 -0
- package/proto/product.proto +28 -0
package/dist/gen/banner.d.ts
CHANGED
|
@@ -270,6 +270,9 @@ export interface BannerSlideButton {
|
|
|
270
270
|
fontSize?: string | undefined;
|
|
271
271
|
paddingX?: string | undefined;
|
|
272
272
|
paddingY?: string | undefined;
|
|
273
|
+
fontSizeMobile?: string | undefined;
|
|
274
|
+
paddingXMobile?: string | undefined;
|
|
275
|
+
paddingYMobile?: string | undefined;
|
|
273
276
|
}
|
|
274
277
|
export interface BannerSlideButton_TextEntry {
|
|
275
278
|
key: string;
|
|
@@ -297,6 +300,9 @@ export interface PublicBannerSlideButton {
|
|
|
297
300
|
fontSize?: string | undefined;
|
|
298
301
|
paddingX?: string | undefined;
|
|
299
302
|
paddingY?: string | undefined;
|
|
303
|
+
fontSizeMobile?: string | undefined;
|
|
304
|
+
paddingXMobile?: string | undefined;
|
|
305
|
+
paddingYMobile?: string | undefined;
|
|
300
306
|
}
|
|
301
307
|
export interface PublicBannerSlideLink {
|
|
302
308
|
text: string;
|
package/dist/gen/product.d.ts
CHANGED
|
@@ -23,6 +23,12 @@ export declare enum ExportFormat {
|
|
|
23
23
|
EXPORT_FORMAT_XLSX = 2,
|
|
24
24
|
UNRECOGNIZED = -1
|
|
25
25
|
}
|
|
26
|
+
export declare enum IdentifierType {
|
|
27
|
+
IDENTIFIER_TYPE_UNSPECIFIED = 0,
|
|
28
|
+
IDENTIFIER_TYPE_SKU = 1,
|
|
29
|
+
IDENTIFIER_TYPE_BARCODE = 2,
|
|
30
|
+
UNRECOGNIZED = -1
|
|
31
|
+
}
|
|
26
32
|
export interface BulkStickerRequest {
|
|
27
33
|
productIds: string[];
|
|
28
34
|
stickerId: string;
|
|
@@ -810,6 +816,20 @@ export interface RemoveVariantSizeChartRequest {
|
|
|
810
816
|
export interface GetVariantSizeChartsRequest {
|
|
811
817
|
variantId: string;
|
|
812
818
|
}
|
|
819
|
+
export interface ProductLookupResult {
|
|
820
|
+
identifier: string;
|
|
821
|
+
productId: string;
|
|
822
|
+
sku: string;
|
|
823
|
+
nameUk: string;
|
|
824
|
+
found: boolean;
|
|
825
|
+
}
|
|
826
|
+
export interface BulkLookupProductsRequest {
|
|
827
|
+
identifiers: string[];
|
|
828
|
+
identifierType: IdentifierType;
|
|
829
|
+
}
|
|
830
|
+
export interface BulkLookupProductsResponse {
|
|
831
|
+
results: ProductLookupResult[];
|
|
832
|
+
}
|
|
813
833
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
814
834
|
export interface ProductServiceClient {
|
|
815
835
|
getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
|
|
@@ -836,6 +856,7 @@ export interface ProductServiceClient {
|
|
|
836
856
|
exportProducts(request: ExportProductsRequest): Observable<ExportProductsResponse>;
|
|
837
857
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Observable<SuccessResponse>;
|
|
838
858
|
bulkSetPopular(request: BulkSetPopularRequest): Observable<SuccessResponse>;
|
|
859
|
+
bulkLookupProducts(request: BulkLookupProductsRequest): Observable<BulkLookupProductsResponse>;
|
|
839
860
|
createProductGroup(request: CreateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
840
861
|
updateProductGroup(request: UpdateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
841
862
|
deleteProductGroup(request: DeleteProductGroupRequest): Observable<SuccessResponse>;
|
|
@@ -875,6 +896,7 @@ export interface ProductServiceController {
|
|
|
875
896
|
exportProducts(request: ExportProductsRequest): Promise<ExportProductsResponse> | Observable<ExportProductsResponse> | ExportProductsResponse;
|
|
876
897
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
877
898
|
bulkSetPopular(request: BulkSetPopularRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
899
|
+
bulkLookupProducts(request: BulkLookupProductsRequest): Promise<BulkLookupProductsResponse> | Observable<BulkLookupProductsResponse> | BulkLookupProductsResponse;
|
|
878
900
|
createProductGroup(request: CreateProductGroupRequest): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
879
901
|
updateProductGroup(request: UpdateProductGroupRequest): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
880
902
|
deleteProductGroup(request: DeleteProductGroupRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
package/dist/gen/product.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: product.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.PRODUCT_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.ExportFormat = exports.RelatedProductType = exports.ProductStatus = exports.protobufPackage = void 0;
|
|
8
|
+
exports.PRODUCT_SERVICE_NAME = exports.CATALOG_V1_PACKAGE_NAME = exports.IdentifierType = exports.ExportFormat = exports.RelatedProductType = exports.ProductStatus = exports.protobufPackage = void 0;
|
|
9
9
|
exports.ProductServiceControllerMethods = ProductServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
@@ -35,6 +35,13 @@ var ExportFormat;
|
|
|
35
35
|
ExportFormat[ExportFormat["EXPORT_FORMAT_XLSX"] = 2] = "EXPORT_FORMAT_XLSX";
|
|
36
36
|
ExportFormat[ExportFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
37
37
|
})(ExportFormat || (exports.ExportFormat = ExportFormat = {}));
|
|
38
|
+
var IdentifierType;
|
|
39
|
+
(function (IdentifierType) {
|
|
40
|
+
IdentifierType[IdentifierType["IDENTIFIER_TYPE_UNSPECIFIED"] = 0] = "IDENTIFIER_TYPE_UNSPECIFIED";
|
|
41
|
+
IdentifierType[IdentifierType["IDENTIFIER_TYPE_SKU"] = 1] = "IDENTIFIER_TYPE_SKU";
|
|
42
|
+
IdentifierType[IdentifierType["IDENTIFIER_TYPE_BARCODE"] = 2] = "IDENTIFIER_TYPE_BARCODE";
|
|
43
|
+
IdentifierType[IdentifierType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
44
|
+
})(IdentifierType || (exports.IdentifierType = IdentifierType = {}));
|
|
38
45
|
exports.CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
39
46
|
function ProductServiceControllerMethods() {
|
|
40
47
|
return function (constructor) {
|
|
@@ -63,6 +70,7 @@ function ProductServiceControllerMethods() {
|
|
|
63
70
|
"exportProducts",
|
|
64
71
|
"bulkUpdateSortOrder",
|
|
65
72
|
"bulkSetPopular",
|
|
73
|
+
"bulkLookupProducts",
|
|
66
74
|
"createProductGroup",
|
|
67
75
|
"updateProductGroup",
|
|
68
76
|
"deleteProductGroup",
|
package/dist/proto/banner.proto
CHANGED
|
@@ -254,6 +254,9 @@ message BannerSlideButton {
|
|
|
254
254
|
optional string font_size = 8;
|
|
255
255
|
optional string padding_x = 9;
|
|
256
256
|
optional string padding_y = 10;
|
|
257
|
+
optional string font_size_mobile = 11;
|
|
258
|
+
optional string padding_x_mobile = 12;
|
|
259
|
+
optional string padding_y_mobile = 13;
|
|
257
260
|
}
|
|
258
261
|
|
|
259
262
|
message BannerSlideLink {
|
|
@@ -273,6 +276,9 @@ message PublicBannerSlideButton {
|
|
|
273
276
|
optional string font_size = 8;
|
|
274
277
|
optional string padding_x = 9;
|
|
275
278
|
optional string padding_y = 10;
|
|
279
|
+
optional string font_size_mobile = 11;
|
|
280
|
+
optional string padding_x_mobile = 12;
|
|
281
|
+
optional string padding_y_mobile = 13;
|
|
276
282
|
}
|
|
277
283
|
|
|
278
284
|
message PublicBannerSlideLink {
|
package/dist/proto/product.proto
CHANGED
|
@@ -51,6 +51,8 @@ service ProductService {
|
|
|
51
51
|
|
|
52
52
|
rpc BulkSetPopular (BulkSetPopularRequest) returns (SuccessResponse);
|
|
53
53
|
|
|
54
|
+
rpc BulkLookupProducts (BulkLookupProductsRequest) returns (BulkLookupProductsResponse);
|
|
55
|
+
|
|
54
56
|
|
|
55
57
|
rpc CreateProductGroup (CreateProductGroupRequest) returns (ProductGroupResponse);
|
|
56
58
|
rpc UpdateProductGroup (UpdateProductGroupRequest) returns (ProductGroupResponse);
|
|
@@ -680,4 +682,30 @@ message RemoveVariantSizeChartRequest {
|
|
|
680
682
|
|
|
681
683
|
message GetVariantSizeChartsRequest {
|
|
682
684
|
string variant_id = 1;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
// ─── Bulk lookup by SKU / barcode ─────────────────────────────────────────────
|
|
689
|
+
|
|
690
|
+
enum IdentifierType {
|
|
691
|
+
IDENTIFIER_TYPE_UNSPECIFIED = 0;
|
|
692
|
+
IDENTIFIER_TYPE_SKU = 1;
|
|
693
|
+
IDENTIFIER_TYPE_BARCODE = 2;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
message ProductLookupResult {
|
|
697
|
+
string identifier = 1;
|
|
698
|
+
string product_id = 2;
|
|
699
|
+
string sku = 3;
|
|
700
|
+
string name_uk = 4;
|
|
701
|
+
bool found = 5;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
message BulkLookupProductsRequest {
|
|
705
|
+
repeated string identifiers = 1;
|
|
706
|
+
IdentifierType identifier_type = 2;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
message BulkLookupProductsResponse {
|
|
710
|
+
repeated ProductLookupResult results = 1;
|
|
683
711
|
}
|
package/gen/banner.ts
CHANGED
|
@@ -287,6 +287,9 @@ export interface BannerSlideButton {
|
|
|
287
287
|
fontSize?: string | undefined;
|
|
288
288
|
paddingX?: string | undefined;
|
|
289
289
|
paddingY?: string | undefined;
|
|
290
|
+
fontSizeMobile?: string | undefined;
|
|
291
|
+
paddingXMobile?: string | undefined;
|
|
292
|
+
paddingYMobile?: string | undefined;
|
|
290
293
|
}
|
|
291
294
|
|
|
292
295
|
export interface BannerSlideButton_TextEntry {
|
|
@@ -316,6 +319,9 @@ export interface PublicBannerSlideButton {
|
|
|
316
319
|
fontSize?: string | undefined;
|
|
317
320
|
paddingX?: string | undefined;
|
|
318
321
|
paddingY?: string | undefined;
|
|
322
|
+
fontSizeMobile?: string | undefined;
|
|
323
|
+
paddingXMobile?: string | undefined;
|
|
324
|
+
paddingYMobile?: string | undefined;
|
|
319
325
|
}
|
|
320
326
|
|
|
321
327
|
export interface PublicBannerSlideLink {
|
package/gen/product.ts
CHANGED
|
@@ -36,6 +36,13 @@ export enum ExportFormat {
|
|
|
36
36
|
UNRECOGNIZED = -1,
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export enum IdentifierType {
|
|
40
|
+
IDENTIFIER_TYPE_UNSPECIFIED = 0,
|
|
41
|
+
IDENTIFIER_TYPE_SKU = 1,
|
|
42
|
+
IDENTIFIER_TYPE_BARCODE = 2,
|
|
43
|
+
UNRECOGNIZED = -1,
|
|
44
|
+
}
|
|
45
|
+
|
|
39
46
|
export interface BulkStickerRequest {
|
|
40
47
|
productIds: string[];
|
|
41
48
|
stickerId: string;
|
|
@@ -826,6 +833,23 @@ export interface GetVariantSizeChartsRequest {
|
|
|
826
833
|
variantId: string;
|
|
827
834
|
}
|
|
828
835
|
|
|
836
|
+
export interface ProductLookupResult {
|
|
837
|
+
identifier: string;
|
|
838
|
+
productId: string;
|
|
839
|
+
sku: string;
|
|
840
|
+
nameUk: string;
|
|
841
|
+
found: boolean;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export interface BulkLookupProductsRequest {
|
|
845
|
+
identifiers: string[];
|
|
846
|
+
identifierType: IdentifierType;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export interface BulkLookupProductsResponse {
|
|
850
|
+
results: ProductLookupResult[];
|
|
851
|
+
}
|
|
852
|
+
|
|
829
853
|
export const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
830
854
|
|
|
831
855
|
export interface ProductServiceClient {
|
|
@@ -877,6 +901,8 @@ export interface ProductServiceClient {
|
|
|
877
901
|
|
|
878
902
|
bulkSetPopular(request: BulkSetPopularRequest): Observable<SuccessResponse>;
|
|
879
903
|
|
|
904
|
+
bulkLookupProducts(request: BulkLookupProductsRequest): Observable<BulkLookupProductsResponse>;
|
|
905
|
+
|
|
880
906
|
createProductGroup(request: CreateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
881
907
|
|
|
882
908
|
updateProductGroup(request: UpdateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
@@ -999,6 +1025,10 @@ export interface ProductServiceController {
|
|
|
999
1025
|
request: BulkSetPopularRequest,
|
|
1000
1026
|
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
1001
1027
|
|
|
1028
|
+
bulkLookupProducts(
|
|
1029
|
+
request: BulkLookupProductsRequest,
|
|
1030
|
+
): Promise<BulkLookupProductsResponse> | Observable<BulkLookupProductsResponse> | BulkLookupProductsResponse;
|
|
1031
|
+
|
|
1002
1032
|
createProductGroup(
|
|
1003
1033
|
request: CreateProductGroupRequest,
|
|
1004
1034
|
): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
@@ -1079,6 +1109,7 @@ export function ProductServiceControllerMethods() {
|
|
|
1079
1109
|
"exportProducts",
|
|
1080
1110
|
"bulkUpdateSortOrder",
|
|
1081
1111
|
"bulkSetPopular",
|
|
1112
|
+
"bulkLookupProducts",
|
|
1082
1113
|
"createProductGroup",
|
|
1083
1114
|
"updateProductGroup",
|
|
1084
1115
|
"deleteProductGroup",
|
package/package.json
CHANGED
package/proto/banner.proto
CHANGED
|
@@ -254,6 +254,9 @@ message BannerSlideButton {
|
|
|
254
254
|
optional string font_size = 8;
|
|
255
255
|
optional string padding_x = 9;
|
|
256
256
|
optional string padding_y = 10;
|
|
257
|
+
optional string font_size_mobile = 11;
|
|
258
|
+
optional string padding_x_mobile = 12;
|
|
259
|
+
optional string padding_y_mobile = 13;
|
|
257
260
|
}
|
|
258
261
|
|
|
259
262
|
message BannerSlideLink {
|
|
@@ -273,6 +276,9 @@ message PublicBannerSlideButton {
|
|
|
273
276
|
optional string font_size = 8;
|
|
274
277
|
optional string padding_x = 9;
|
|
275
278
|
optional string padding_y = 10;
|
|
279
|
+
optional string font_size_mobile = 11;
|
|
280
|
+
optional string padding_x_mobile = 12;
|
|
281
|
+
optional string padding_y_mobile = 13;
|
|
276
282
|
}
|
|
277
283
|
|
|
278
284
|
message PublicBannerSlideLink {
|
package/proto/product.proto
CHANGED
|
@@ -51,6 +51,8 @@ service ProductService {
|
|
|
51
51
|
|
|
52
52
|
rpc BulkSetPopular (BulkSetPopularRequest) returns (SuccessResponse);
|
|
53
53
|
|
|
54
|
+
rpc BulkLookupProducts (BulkLookupProductsRequest) returns (BulkLookupProductsResponse);
|
|
55
|
+
|
|
54
56
|
|
|
55
57
|
rpc CreateProductGroup (CreateProductGroupRequest) returns (ProductGroupResponse);
|
|
56
58
|
rpc UpdateProductGroup (UpdateProductGroupRequest) returns (ProductGroupResponse);
|
|
@@ -680,4 +682,30 @@ message RemoveVariantSizeChartRequest {
|
|
|
680
682
|
|
|
681
683
|
message GetVariantSizeChartsRequest {
|
|
682
684
|
string variant_id = 1;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
// ─── Bulk lookup by SKU / barcode ─────────────────────────────────────────────
|
|
689
|
+
|
|
690
|
+
enum IdentifierType {
|
|
691
|
+
IDENTIFIER_TYPE_UNSPECIFIED = 0;
|
|
692
|
+
IDENTIFIER_TYPE_SKU = 1;
|
|
693
|
+
IDENTIFIER_TYPE_BARCODE = 2;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
message ProductLookupResult {
|
|
697
|
+
string identifier = 1;
|
|
698
|
+
string product_id = 2;
|
|
699
|
+
string sku = 3;
|
|
700
|
+
string name_uk = 4;
|
|
701
|
+
bool found = 5;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
message BulkLookupProductsRequest {
|
|
705
|
+
repeated string identifiers = 1;
|
|
706
|
+
IdentifierType identifier_type = 2;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
message BulkLookupProductsResponse {
|
|
710
|
+
repeated ProductLookupResult results = 1;
|
|
683
711
|
}
|