@mamindom/contracts 1.0.72 → 1.0.74
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/product.d.ts +331 -32
- package/dist/gen/product.js +10 -2
- package/dist/proto/product.proto +202 -19
- package/gen/product.ts +369 -42
- package/package.json +1 -1
- package/proto/product.proto +202 -19
package/dist/gen/product.d.ts
CHANGED
|
@@ -87,6 +87,9 @@ export interface ProductListItemResponse {
|
|
|
87
87
|
barcode?: string | undefined;
|
|
88
88
|
videoUrl?: string | undefined;
|
|
89
89
|
viewed: number;
|
|
90
|
+
isPopular: boolean;
|
|
91
|
+
groupId?: string | undefined;
|
|
92
|
+
colorHex?: string | undefined;
|
|
90
93
|
}
|
|
91
94
|
export interface ProductListItemResponse_NameEntry {
|
|
92
95
|
key: string;
|
|
@@ -138,6 +141,13 @@ export interface ProductDetailResponse {
|
|
|
138
141
|
stickers: ProductStickerResponse[];
|
|
139
142
|
barcode?: string | undefined;
|
|
140
143
|
sizeCharts: ProductSizeChartResponse[];
|
|
144
|
+
isPopular: boolean;
|
|
145
|
+
groupId?: string | undefined;
|
|
146
|
+
colorLabel: {
|
|
147
|
+
[key: string]: string;
|
|
148
|
+
};
|
|
149
|
+
colorHex?: string | undefined;
|
|
150
|
+
groupSiblings: ProductGroupMember[];
|
|
141
151
|
}
|
|
142
152
|
export interface ProductDetailResponse_NameEntry {
|
|
143
153
|
key: string;
|
|
@@ -171,6 +181,10 @@ export interface ProductDetailResponse_MetaKeywordsEntry {
|
|
|
171
181
|
key: string;
|
|
172
182
|
value: string;
|
|
173
183
|
}
|
|
184
|
+
export interface ProductDetailResponse_ColorLabelEntry {
|
|
185
|
+
key: string;
|
|
186
|
+
value: string;
|
|
187
|
+
}
|
|
174
188
|
export interface ProductImageResponse {
|
|
175
189
|
id: string;
|
|
176
190
|
url: string;
|
|
@@ -311,6 +325,11 @@ export interface CreateProductRequest {
|
|
|
311
325
|
barcode?: string | undefined;
|
|
312
326
|
sizeChartIds: string[];
|
|
313
327
|
videoUrl?: string | undefined;
|
|
328
|
+
groupId?: string | undefined;
|
|
329
|
+
colorLabel: {
|
|
330
|
+
[key: string]: string;
|
|
331
|
+
};
|
|
332
|
+
colorHex?: string | undefined;
|
|
314
333
|
}
|
|
315
334
|
export interface CreateProductRequest_NameEntry {
|
|
316
335
|
key: string;
|
|
@@ -332,6 +351,10 @@ export interface CreateProductRequest_MetaDescriptionEntry {
|
|
|
332
351
|
key: string;
|
|
333
352
|
value: string;
|
|
334
353
|
}
|
|
354
|
+
export interface CreateProductRequest_ColorLabelEntry {
|
|
355
|
+
key: string;
|
|
356
|
+
value: string;
|
|
357
|
+
}
|
|
335
358
|
export interface UpdateProductRequest {
|
|
336
359
|
id: string;
|
|
337
360
|
sku?: string | undefined;
|
|
@@ -364,6 +387,11 @@ export interface UpdateProductRequest {
|
|
|
364
387
|
sortOrder?: number | undefined;
|
|
365
388
|
barcode?: string | undefined;
|
|
366
389
|
videoUrl?: string | undefined;
|
|
390
|
+
groupId?: string | undefined;
|
|
391
|
+
colorLabel: {
|
|
392
|
+
[key: string]: string;
|
|
393
|
+
};
|
|
394
|
+
colorHex?: string | undefined;
|
|
367
395
|
}
|
|
368
396
|
export interface UpdateProductRequest_NameEntry {
|
|
369
397
|
key: string;
|
|
@@ -385,6 +413,10 @@ export interface UpdateProductRequest_MetaDescriptionEntry {
|
|
|
385
413
|
key: string;
|
|
386
414
|
value: string;
|
|
387
415
|
}
|
|
416
|
+
export interface UpdateProductRequest_ColorLabelEntry {
|
|
417
|
+
key: string;
|
|
418
|
+
value: string;
|
|
419
|
+
}
|
|
388
420
|
export interface DeleteProductRequest {
|
|
389
421
|
id: string;
|
|
390
422
|
}
|
|
@@ -409,34 +441,6 @@ export interface ProductImagePayload {
|
|
|
409
441
|
export interface BulkDeleteProductsRequest {
|
|
410
442
|
productIds: string[];
|
|
411
443
|
}
|
|
412
|
-
export interface CreateProductVariantRequest {
|
|
413
|
-
productId: string;
|
|
414
|
-
sku: string;
|
|
415
|
-
price?: number | undefined;
|
|
416
|
-
stock: number;
|
|
417
|
-
options: {
|
|
418
|
-
[key: string]: string;
|
|
419
|
-
};
|
|
420
|
-
barcode?: string | undefined;
|
|
421
|
-
}
|
|
422
|
-
export interface CreateProductVariantRequest_OptionsEntry {
|
|
423
|
-
key: string;
|
|
424
|
-
value: string;
|
|
425
|
-
}
|
|
426
|
-
export interface UpdateProductVariantRequest {
|
|
427
|
-
id: string;
|
|
428
|
-
sku?: string | undefined;
|
|
429
|
-
price?: number | undefined;
|
|
430
|
-
stock?: number | undefined;
|
|
431
|
-
options: {
|
|
432
|
-
[key: string]: string;
|
|
433
|
-
};
|
|
434
|
-
barcode?: string | undefined;
|
|
435
|
-
}
|
|
436
|
-
export interface UpdateProductVariantRequest_OptionsEntry {
|
|
437
|
-
key: string;
|
|
438
|
-
value: string;
|
|
439
|
-
}
|
|
440
444
|
export interface DeleteProductVariantRequest {
|
|
441
445
|
id: string;
|
|
442
446
|
}
|
|
@@ -504,6 +508,285 @@ export interface BulkSetPopularRequest {
|
|
|
504
508
|
productIds: string[];
|
|
505
509
|
popular: boolean;
|
|
506
510
|
}
|
|
511
|
+
export interface ProductGroupResponse {
|
|
512
|
+
id: string;
|
|
513
|
+
name: {
|
|
514
|
+
[key: string]: string;
|
|
515
|
+
};
|
|
516
|
+
products: ProductGroupMember[];
|
|
517
|
+
}
|
|
518
|
+
export interface ProductGroupResponse_NameEntry {
|
|
519
|
+
key: string;
|
|
520
|
+
value: string;
|
|
521
|
+
}
|
|
522
|
+
export interface ProductGroupMember {
|
|
523
|
+
productId: string;
|
|
524
|
+
sku: string;
|
|
525
|
+
name: {
|
|
526
|
+
[key: string]: string;
|
|
527
|
+
};
|
|
528
|
+
mainImage: string;
|
|
529
|
+
colorLabel: {
|
|
530
|
+
[key: string]: string;
|
|
531
|
+
};
|
|
532
|
+
colorHex: string;
|
|
533
|
+
price: number;
|
|
534
|
+
status: ProductStatus;
|
|
535
|
+
}
|
|
536
|
+
export interface ProductGroupMember_NameEntry {
|
|
537
|
+
key: string;
|
|
538
|
+
value: string;
|
|
539
|
+
}
|
|
540
|
+
export interface ProductGroupMember_ColorLabelEntry {
|
|
541
|
+
key: string;
|
|
542
|
+
value: string;
|
|
543
|
+
}
|
|
544
|
+
export interface CreateProductGroupRequest {
|
|
545
|
+
name: {
|
|
546
|
+
[key: string]: string;
|
|
547
|
+
};
|
|
548
|
+
productIds: string[];
|
|
549
|
+
}
|
|
550
|
+
export interface CreateProductGroupRequest_NameEntry {
|
|
551
|
+
key: string;
|
|
552
|
+
value: string;
|
|
553
|
+
}
|
|
554
|
+
export interface UpdateProductGroupRequest {
|
|
555
|
+
id: string;
|
|
556
|
+
name: {
|
|
557
|
+
[key: string]: string;
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
export interface UpdateProductGroupRequest_NameEntry {
|
|
561
|
+
key: string;
|
|
562
|
+
value: string;
|
|
563
|
+
}
|
|
564
|
+
export interface DeleteProductGroupRequest {
|
|
565
|
+
id: string;
|
|
566
|
+
}
|
|
567
|
+
export interface GetProductGroupRequest {
|
|
568
|
+
id: string;
|
|
569
|
+
}
|
|
570
|
+
export interface GetProductGroupsRequest {
|
|
571
|
+
pagination: PaginationRequest | undefined;
|
|
572
|
+
}
|
|
573
|
+
export interface GetProductGroupsResponse {
|
|
574
|
+
items: ProductGroupResponse[];
|
|
575
|
+
meta: PaginationMeta | undefined;
|
|
576
|
+
}
|
|
577
|
+
export interface AddProductToGroupRequest {
|
|
578
|
+
groupId: string;
|
|
579
|
+
productId: string;
|
|
580
|
+
colorLabel: {
|
|
581
|
+
[key: string]: string;
|
|
582
|
+
};
|
|
583
|
+
colorHex: string;
|
|
584
|
+
}
|
|
585
|
+
export interface AddProductToGroupRequest_ColorLabelEntry {
|
|
586
|
+
key: string;
|
|
587
|
+
value: string;
|
|
588
|
+
}
|
|
589
|
+
export interface RemoveProductFromGroupRequest {
|
|
590
|
+
groupId: string;
|
|
591
|
+
productId: string;
|
|
592
|
+
}
|
|
593
|
+
export interface ProductVariantDetailResponse {
|
|
594
|
+
id: string;
|
|
595
|
+
productId: string;
|
|
596
|
+
sku: string;
|
|
597
|
+
barcode?: string | undefined;
|
|
598
|
+
sortOrder: number;
|
|
599
|
+
price: number;
|
|
600
|
+
oldPrice?: number | undefined;
|
|
601
|
+
stock: number;
|
|
602
|
+
options: {
|
|
603
|
+
[key: string]: string;
|
|
604
|
+
};
|
|
605
|
+
name: {
|
|
606
|
+
[key: string]: string;
|
|
607
|
+
};
|
|
608
|
+
shortDescription: {
|
|
609
|
+
[key: string]: string;
|
|
610
|
+
};
|
|
611
|
+
description: {
|
|
612
|
+
[key: string]: string;
|
|
613
|
+
};
|
|
614
|
+
metaTitle: {
|
|
615
|
+
[key: string]: string;
|
|
616
|
+
};
|
|
617
|
+
metaDescription: {
|
|
618
|
+
[key: string]: string;
|
|
619
|
+
};
|
|
620
|
+
mainImage: string;
|
|
621
|
+
mainImageId?: string | undefined;
|
|
622
|
+
videoUrl?: string | undefined;
|
|
623
|
+
images: ProductImageResponse[];
|
|
624
|
+
attributes: ProductAttributeResponse[];
|
|
625
|
+
overrides: VariantOverrides | undefined;
|
|
626
|
+
}
|
|
627
|
+
export interface ProductVariantDetailResponse_OptionsEntry {
|
|
628
|
+
key: string;
|
|
629
|
+
value: string;
|
|
630
|
+
}
|
|
631
|
+
export interface ProductVariantDetailResponse_NameEntry {
|
|
632
|
+
key: string;
|
|
633
|
+
value: string;
|
|
634
|
+
}
|
|
635
|
+
export interface ProductVariantDetailResponse_ShortDescriptionEntry {
|
|
636
|
+
key: string;
|
|
637
|
+
value: string;
|
|
638
|
+
}
|
|
639
|
+
export interface ProductVariantDetailResponse_DescriptionEntry {
|
|
640
|
+
key: string;
|
|
641
|
+
value: string;
|
|
642
|
+
}
|
|
643
|
+
export interface ProductVariantDetailResponse_MetaTitleEntry {
|
|
644
|
+
key: string;
|
|
645
|
+
value: string;
|
|
646
|
+
}
|
|
647
|
+
export interface ProductVariantDetailResponse_MetaDescriptionEntry {
|
|
648
|
+
key: string;
|
|
649
|
+
value: string;
|
|
650
|
+
}
|
|
651
|
+
export interface VariantOverrides {
|
|
652
|
+
hasOwnPrice: boolean;
|
|
653
|
+
hasOwnName: boolean;
|
|
654
|
+
hasOwnDescription: boolean;
|
|
655
|
+
hasOwnShortDescription: boolean;
|
|
656
|
+
hasOwnMetaTitle: boolean;
|
|
657
|
+
hasOwnMetaDescription: boolean;
|
|
658
|
+
hasOwnMainImage: boolean;
|
|
659
|
+
hasOwnImages: boolean;
|
|
660
|
+
hasOwnAttributes: boolean;
|
|
661
|
+
hasOwnVideo: boolean;
|
|
662
|
+
hasOwnOldPrice: boolean;
|
|
663
|
+
}
|
|
664
|
+
export interface CreateProductVariantRequest {
|
|
665
|
+
productId: string;
|
|
666
|
+
sku: string;
|
|
667
|
+
barcode?: string | undefined;
|
|
668
|
+
sortOrder: number;
|
|
669
|
+
price?: number | undefined;
|
|
670
|
+
oldPrice?: number | undefined;
|
|
671
|
+
stock: number;
|
|
672
|
+
options: {
|
|
673
|
+
[key: string]: string;
|
|
674
|
+
};
|
|
675
|
+
name: {
|
|
676
|
+
[key: string]: string;
|
|
677
|
+
};
|
|
678
|
+
shortDescription: {
|
|
679
|
+
[key: string]: string;
|
|
680
|
+
};
|
|
681
|
+
description: {
|
|
682
|
+
[key: string]: string;
|
|
683
|
+
};
|
|
684
|
+
metaTitle: {
|
|
685
|
+
[key: string]: string;
|
|
686
|
+
};
|
|
687
|
+
metaDescription: {
|
|
688
|
+
[key: string]: string;
|
|
689
|
+
};
|
|
690
|
+
mainImage?: string | undefined;
|
|
691
|
+
mainImageId?: string | undefined;
|
|
692
|
+
videoUrl?: string | undefined;
|
|
693
|
+
images: ProductImagePayload[];
|
|
694
|
+
attributeValueIds: string[];
|
|
695
|
+
}
|
|
696
|
+
export interface CreateProductVariantRequest_OptionsEntry {
|
|
697
|
+
key: string;
|
|
698
|
+
value: string;
|
|
699
|
+
}
|
|
700
|
+
export interface CreateProductVariantRequest_NameEntry {
|
|
701
|
+
key: string;
|
|
702
|
+
value: string;
|
|
703
|
+
}
|
|
704
|
+
export interface CreateProductVariantRequest_ShortDescriptionEntry {
|
|
705
|
+
key: string;
|
|
706
|
+
value: string;
|
|
707
|
+
}
|
|
708
|
+
export interface CreateProductVariantRequest_DescriptionEntry {
|
|
709
|
+
key: string;
|
|
710
|
+
value: string;
|
|
711
|
+
}
|
|
712
|
+
export interface CreateProductVariantRequest_MetaTitleEntry {
|
|
713
|
+
key: string;
|
|
714
|
+
value: string;
|
|
715
|
+
}
|
|
716
|
+
export interface CreateProductVariantRequest_MetaDescriptionEntry {
|
|
717
|
+
key: string;
|
|
718
|
+
value: string;
|
|
719
|
+
}
|
|
720
|
+
export interface UpdateProductVariantRequest {
|
|
721
|
+
id: string;
|
|
722
|
+
sku?: string | undefined;
|
|
723
|
+
barcode?: string | undefined;
|
|
724
|
+
sortOrder?: number | undefined;
|
|
725
|
+
price?: number | undefined;
|
|
726
|
+
oldPrice?: number | undefined;
|
|
727
|
+
stock?: number | undefined;
|
|
728
|
+
options: {
|
|
729
|
+
[key: string]: string;
|
|
730
|
+
};
|
|
731
|
+
name: {
|
|
732
|
+
[key: string]: string;
|
|
733
|
+
};
|
|
734
|
+
shortDescription: {
|
|
735
|
+
[key: string]: string;
|
|
736
|
+
};
|
|
737
|
+
description: {
|
|
738
|
+
[key: string]: string;
|
|
739
|
+
};
|
|
740
|
+
metaTitle: {
|
|
741
|
+
[key: string]: string;
|
|
742
|
+
};
|
|
743
|
+
metaDescription: {
|
|
744
|
+
[key: string]: string;
|
|
745
|
+
};
|
|
746
|
+
mainImage?: string | undefined;
|
|
747
|
+
mainImageId?: string | undefined;
|
|
748
|
+
videoUrl?: string | undefined;
|
|
749
|
+
images: ProductImagePayload[];
|
|
750
|
+
attributeValueIds: string[];
|
|
751
|
+
clearPrice: boolean;
|
|
752
|
+
clearOldPrice: boolean;
|
|
753
|
+
clearName: boolean;
|
|
754
|
+
clearDescription: boolean;
|
|
755
|
+
clearShortDescription: boolean;
|
|
756
|
+
clearMetaTitle: boolean;
|
|
757
|
+
clearMetaDescription: boolean;
|
|
758
|
+
clearMainImage: boolean;
|
|
759
|
+
clearImages: boolean;
|
|
760
|
+
clearAttributes: boolean;
|
|
761
|
+
clearVideo: boolean;
|
|
762
|
+
}
|
|
763
|
+
export interface UpdateProductVariantRequest_OptionsEntry {
|
|
764
|
+
key: string;
|
|
765
|
+
value: string;
|
|
766
|
+
}
|
|
767
|
+
export interface UpdateProductVariantRequest_NameEntry {
|
|
768
|
+
key: string;
|
|
769
|
+
value: string;
|
|
770
|
+
}
|
|
771
|
+
export interface UpdateProductVariantRequest_ShortDescriptionEntry {
|
|
772
|
+
key: string;
|
|
773
|
+
value: string;
|
|
774
|
+
}
|
|
775
|
+
export interface UpdateProductVariantRequest_DescriptionEntry {
|
|
776
|
+
key: string;
|
|
777
|
+
value: string;
|
|
778
|
+
}
|
|
779
|
+
export interface UpdateProductVariantRequest_MetaTitleEntry {
|
|
780
|
+
key: string;
|
|
781
|
+
value: string;
|
|
782
|
+
}
|
|
783
|
+
export interface UpdateProductVariantRequest_MetaDescriptionEntry {
|
|
784
|
+
key: string;
|
|
785
|
+
value: string;
|
|
786
|
+
}
|
|
787
|
+
export interface GetProductVariantRequest {
|
|
788
|
+
id: string;
|
|
789
|
+
}
|
|
507
790
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
508
791
|
export interface ProductServiceClient {
|
|
509
792
|
getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
|
|
@@ -520,8 +803,6 @@ export interface ProductServiceClient {
|
|
|
520
803
|
assignSizeChartsToProduct(request: AssignSizeChartsToProductRequest): Observable<SuccessResponse>;
|
|
521
804
|
removeSizeChartFromProduct(request: RemoveSizeChartFromProductRequest): Observable<SuccessResponse>;
|
|
522
805
|
getProductSizeCharts(request: GetProductSizeChartsRequest): Observable<GetProductSizeChartsResponse>;
|
|
523
|
-
createProductVariant(request: CreateProductVariantRequest): Observable<ProductVariantResponse>;
|
|
524
|
-
updateProductVariant(request: UpdateProductVariantRequest): Observable<ProductVariantResponse>;
|
|
525
806
|
deleteProductVariant(request: DeleteProductVariantRequest): Observable<DeleteResponse>;
|
|
526
807
|
updateProductGlobalOrder(request: UpdateProductGlobalOrderRequest): Observable<SuccessResponse>;
|
|
527
808
|
updateProductCategoryOrder(request: UpdateProductCategoryOrderRequest): Observable<SuccessResponse>;
|
|
@@ -531,6 +812,16 @@ export interface ProductServiceClient {
|
|
|
531
812
|
exportProducts(request: ExportProductsRequest): Observable<ExportProductsResponse>;
|
|
532
813
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Observable<SuccessResponse>;
|
|
533
814
|
bulkSetPopular(request: BulkSetPopularRequest): Observable<SuccessResponse>;
|
|
815
|
+
createProductGroup(request: CreateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
816
|
+
updateProductGroup(request: UpdateProductGroupRequest): Observable<ProductGroupResponse>;
|
|
817
|
+
deleteProductGroup(request: DeleteProductGroupRequest): Observable<SuccessResponse>;
|
|
818
|
+
getProductGroup(request: GetProductGroupRequest): Observable<ProductGroupResponse>;
|
|
819
|
+
getProductGroups(request: GetProductGroupsRequest): Observable<GetProductGroupsResponse>;
|
|
820
|
+
addProductToGroup(request: AddProductToGroupRequest): Observable<SuccessResponse>;
|
|
821
|
+
removeProductFromGroup(request: RemoveProductFromGroupRequest): Observable<SuccessResponse>;
|
|
822
|
+
createProductVariant(request: CreateProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
823
|
+
updateProductVariant(request: UpdateProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
824
|
+
getProductVariant(request: GetProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
534
825
|
}
|
|
535
826
|
export interface ProductServiceController {
|
|
536
827
|
getProducts(request: GetProductsRequest): Promise<GetProductsResponse> | Observable<GetProductsResponse> | GetProductsResponse;
|
|
@@ -547,8 +838,6 @@ export interface ProductServiceController {
|
|
|
547
838
|
assignSizeChartsToProduct(request: AssignSizeChartsToProductRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
548
839
|
removeSizeChartFromProduct(request: RemoveSizeChartFromProductRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
549
840
|
getProductSizeCharts(request: GetProductSizeChartsRequest): Promise<GetProductSizeChartsResponse> | Observable<GetProductSizeChartsResponse> | GetProductSizeChartsResponse;
|
|
550
|
-
createProductVariant(request: CreateProductVariantRequest): Promise<ProductVariantResponse> | Observable<ProductVariantResponse> | ProductVariantResponse;
|
|
551
|
-
updateProductVariant(request: UpdateProductVariantRequest): Promise<ProductVariantResponse> | Observable<ProductVariantResponse> | ProductVariantResponse;
|
|
552
841
|
deleteProductVariant(request: DeleteProductVariantRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
553
842
|
updateProductGlobalOrder(request: UpdateProductGlobalOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
554
843
|
updateProductCategoryOrder(request: UpdateProductCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
@@ -558,6 +847,16 @@ export interface ProductServiceController {
|
|
|
558
847
|
exportProducts(request: ExportProductsRequest): Promise<ExportProductsResponse> | Observable<ExportProductsResponse> | ExportProductsResponse;
|
|
559
848
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
560
849
|
bulkSetPopular(request: BulkSetPopularRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
850
|
+
createProductGroup(request: CreateProductGroupRequest): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
851
|
+
updateProductGroup(request: UpdateProductGroupRequest): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
852
|
+
deleteProductGroup(request: DeleteProductGroupRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
853
|
+
getProductGroup(request: GetProductGroupRequest): Promise<ProductGroupResponse> | Observable<ProductGroupResponse> | ProductGroupResponse;
|
|
854
|
+
getProductGroups(request: GetProductGroupsRequest): Promise<GetProductGroupsResponse> | Observable<GetProductGroupsResponse> | GetProductGroupsResponse;
|
|
855
|
+
addProductToGroup(request: AddProductToGroupRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
856
|
+
removeProductFromGroup(request: RemoveProductFromGroupRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
857
|
+
createProductVariant(request: CreateProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
858
|
+
updateProductVariant(request: UpdateProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
859
|
+
getProductVariant(request: GetProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
561
860
|
}
|
|
562
861
|
export declare function ProductServiceControllerMethods(): (constructor: Function) => void;
|
|
563
862
|
export declare const PRODUCT_SERVICE_NAME = "ProductService";
|
package/dist/gen/product.js
CHANGED
|
@@ -53,8 +53,6 @@ function ProductServiceControllerMethods() {
|
|
|
53
53
|
"assignSizeChartsToProduct",
|
|
54
54
|
"removeSizeChartFromProduct",
|
|
55
55
|
"getProductSizeCharts",
|
|
56
|
-
"createProductVariant",
|
|
57
|
-
"updateProductVariant",
|
|
58
56
|
"deleteProductVariant",
|
|
59
57
|
"updateProductGlobalOrder",
|
|
60
58
|
"updateProductCategoryOrder",
|
|
@@ -64,6 +62,16 @@ function ProductServiceControllerMethods() {
|
|
|
64
62
|
"exportProducts",
|
|
65
63
|
"bulkUpdateSortOrder",
|
|
66
64
|
"bulkSetPopular",
|
|
65
|
+
"createProductGroup",
|
|
66
|
+
"updateProductGroup",
|
|
67
|
+
"deleteProductGroup",
|
|
68
|
+
"getProductGroup",
|
|
69
|
+
"getProductGroups",
|
|
70
|
+
"addProductToGroup",
|
|
71
|
+
"removeProductFromGroup",
|
|
72
|
+
"createProductVariant",
|
|
73
|
+
"updateProductVariant",
|
|
74
|
+
"getProductVariant",
|
|
67
75
|
];
|
|
68
76
|
for (const method of grpcMethods) {
|
|
69
77
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|