@mamindom/contracts 1.0.73 → 1.0.75
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 +329 -32
- package/dist/gen/product.js +10 -2
- package/dist/gen/size_chart.d.ts +8 -0
- package/dist/gen/size_chart.js +1 -0
- package/dist/proto/product.proto +199 -18
- package/dist/proto/size_chart.proto +8 -0
- package/gen/product.ts +367 -42
- package/gen/size_chart.ts +14 -0
- package/package.json +1 -1
- package/proto/product.proto +199 -18
- package/proto/size_chart.proto +8 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ export interface ProductListItemResponse {
|
|
|
88
88
|
videoUrl?: string | undefined;
|
|
89
89
|
viewed: number;
|
|
90
90
|
isPopular: boolean;
|
|
91
|
+
groupId?: string | undefined;
|
|
92
|
+
colorHex?: string | undefined;
|
|
91
93
|
}
|
|
92
94
|
export interface ProductListItemResponse_NameEntry {
|
|
93
95
|
key: string;
|
|
@@ -140,6 +142,12 @@ export interface ProductDetailResponse {
|
|
|
140
142
|
barcode?: string | undefined;
|
|
141
143
|
sizeCharts: ProductSizeChartResponse[];
|
|
142
144
|
isPopular: boolean;
|
|
145
|
+
groupId?: string | undefined;
|
|
146
|
+
colorLabel: {
|
|
147
|
+
[key: string]: string;
|
|
148
|
+
};
|
|
149
|
+
colorHex?: string | undefined;
|
|
150
|
+
groupSiblings: ProductGroupMember[];
|
|
143
151
|
}
|
|
144
152
|
export interface ProductDetailResponse_NameEntry {
|
|
145
153
|
key: string;
|
|
@@ -173,6 +181,10 @@ export interface ProductDetailResponse_MetaKeywordsEntry {
|
|
|
173
181
|
key: string;
|
|
174
182
|
value: string;
|
|
175
183
|
}
|
|
184
|
+
export interface ProductDetailResponse_ColorLabelEntry {
|
|
185
|
+
key: string;
|
|
186
|
+
value: string;
|
|
187
|
+
}
|
|
176
188
|
export interface ProductImageResponse {
|
|
177
189
|
id: string;
|
|
178
190
|
url: string;
|
|
@@ -313,6 +325,11 @@ export interface CreateProductRequest {
|
|
|
313
325
|
barcode?: string | undefined;
|
|
314
326
|
sizeChartIds: string[];
|
|
315
327
|
videoUrl?: string | undefined;
|
|
328
|
+
groupId?: string | undefined;
|
|
329
|
+
colorLabel: {
|
|
330
|
+
[key: string]: string;
|
|
331
|
+
};
|
|
332
|
+
colorHex?: string | undefined;
|
|
316
333
|
}
|
|
317
334
|
export interface CreateProductRequest_NameEntry {
|
|
318
335
|
key: string;
|
|
@@ -334,6 +351,10 @@ export interface CreateProductRequest_MetaDescriptionEntry {
|
|
|
334
351
|
key: string;
|
|
335
352
|
value: string;
|
|
336
353
|
}
|
|
354
|
+
export interface CreateProductRequest_ColorLabelEntry {
|
|
355
|
+
key: string;
|
|
356
|
+
value: string;
|
|
357
|
+
}
|
|
337
358
|
export interface UpdateProductRequest {
|
|
338
359
|
id: string;
|
|
339
360
|
sku?: string | undefined;
|
|
@@ -366,6 +387,11 @@ export interface UpdateProductRequest {
|
|
|
366
387
|
sortOrder?: number | undefined;
|
|
367
388
|
barcode?: string | undefined;
|
|
368
389
|
videoUrl?: string | undefined;
|
|
390
|
+
groupId?: string | undefined;
|
|
391
|
+
colorLabel: {
|
|
392
|
+
[key: string]: string;
|
|
393
|
+
};
|
|
394
|
+
colorHex?: string | undefined;
|
|
369
395
|
}
|
|
370
396
|
export interface UpdateProductRequest_NameEntry {
|
|
371
397
|
key: string;
|
|
@@ -387,6 +413,10 @@ export interface UpdateProductRequest_MetaDescriptionEntry {
|
|
|
387
413
|
key: string;
|
|
388
414
|
value: string;
|
|
389
415
|
}
|
|
416
|
+
export interface UpdateProductRequest_ColorLabelEntry {
|
|
417
|
+
key: string;
|
|
418
|
+
value: string;
|
|
419
|
+
}
|
|
390
420
|
export interface DeleteProductRequest {
|
|
391
421
|
id: string;
|
|
392
422
|
}
|
|
@@ -411,34 +441,6 @@ export interface ProductImagePayload {
|
|
|
411
441
|
export interface BulkDeleteProductsRequest {
|
|
412
442
|
productIds: string[];
|
|
413
443
|
}
|
|
414
|
-
export interface CreateProductVariantRequest {
|
|
415
|
-
productId: string;
|
|
416
|
-
sku: string;
|
|
417
|
-
price?: number | undefined;
|
|
418
|
-
stock: number;
|
|
419
|
-
options: {
|
|
420
|
-
[key: string]: string;
|
|
421
|
-
};
|
|
422
|
-
barcode?: string | undefined;
|
|
423
|
-
}
|
|
424
|
-
export interface CreateProductVariantRequest_OptionsEntry {
|
|
425
|
-
key: string;
|
|
426
|
-
value: string;
|
|
427
|
-
}
|
|
428
|
-
export interface UpdateProductVariantRequest {
|
|
429
|
-
id: string;
|
|
430
|
-
sku?: string | undefined;
|
|
431
|
-
price?: number | undefined;
|
|
432
|
-
stock?: number | undefined;
|
|
433
|
-
options: {
|
|
434
|
-
[key: string]: string;
|
|
435
|
-
};
|
|
436
|
-
barcode?: string | undefined;
|
|
437
|
-
}
|
|
438
|
-
export interface UpdateProductVariantRequest_OptionsEntry {
|
|
439
|
-
key: string;
|
|
440
|
-
value: string;
|
|
441
|
-
}
|
|
442
444
|
export interface DeleteProductVariantRequest {
|
|
443
445
|
id: string;
|
|
444
446
|
}
|
|
@@ -506,6 +508,285 @@ export interface BulkSetPopularRequest {
|
|
|
506
508
|
productIds: string[];
|
|
507
509
|
popular: boolean;
|
|
508
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
|
+
}
|
|
509
790
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
510
791
|
export interface ProductServiceClient {
|
|
511
792
|
getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
|
|
@@ -522,8 +803,6 @@ export interface ProductServiceClient {
|
|
|
522
803
|
assignSizeChartsToProduct(request: AssignSizeChartsToProductRequest): Observable<SuccessResponse>;
|
|
523
804
|
removeSizeChartFromProduct(request: RemoveSizeChartFromProductRequest): Observable<SuccessResponse>;
|
|
524
805
|
getProductSizeCharts(request: GetProductSizeChartsRequest): Observable<GetProductSizeChartsResponse>;
|
|
525
|
-
createProductVariant(request: CreateProductVariantRequest): Observable<ProductVariantResponse>;
|
|
526
|
-
updateProductVariant(request: UpdateProductVariantRequest): Observable<ProductVariantResponse>;
|
|
527
806
|
deleteProductVariant(request: DeleteProductVariantRequest): Observable<DeleteResponse>;
|
|
528
807
|
updateProductGlobalOrder(request: UpdateProductGlobalOrderRequest): Observable<SuccessResponse>;
|
|
529
808
|
updateProductCategoryOrder(request: UpdateProductCategoryOrderRequest): Observable<SuccessResponse>;
|
|
@@ -533,6 +812,16 @@ export interface ProductServiceClient {
|
|
|
533
812
|
exportProducts(request: ExportProductsRequest): Observable<ExportProductsResponse>;
|
|
534
813
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Observable<SuccessResponse>;
|
|
535
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>;
|
|
536
825
|
}
|
|
537
826
|
export interface ProductServiceController {
|
|
538
827
|
getProducts(request: GetProductsRequest): Promise<GetProductsResponse> | Observable<GetProductsResponse> | GetProductsResponse;
|
|
@@ -549,8 +838,6 @@ export interface ProductServiceController {
|
|
|
549
838
|
assignSizeChartsToProduct(request: AssignSizeChartsToProductRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
550
839
|
removeSizeChartFromProduct(request: RemoveSizeChartFromProductRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
551
840
|
getProductSizeCharts(request: GetProductSizeChartsRequest): Promise<GetProductSizeChartsResponse> | Observable<GetProductSizeChartsResponse> | GetProductSizeChartsResponse;
|
|
552
|
-
createProductVariant(request: CreateProductVariantRequest): Promise<ProductVariantResponse> | Observable<ProductVariantResponse> | ProductVariantResponse;
|
|
553
|
-
updateProductVariant(request: UpdateProductVariantRequest): Promise<ProductVariantResponse> | Observable<ProductVariantResponse> | ProductVariantResponse;
|
|
554
841
|
deleteProductVariant(request: DeleteProductVariantRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
555
842
|
updateProductGlobalOrder(request: UpdateProductGlobalOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
556
843
|
updateProductCategoryOrder(request: UpdateProductCategoryOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
@@ -560,6 +847,16 @@ export interface ProductServiceController {
|
|
|
560
847
|
exportProducts(request: ExportProductsRequest): Promise<ExportProductsResponse> | Observable<ExportProductsResponse> | ExportProductsResponse;
|
|
561
848
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
562
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;
|
|
563
860
|
}
|
|
564
861
|
export declare function ProductServiceControllerMethods(): (constructor: Function) => void;
|
|
565
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);
|
package/dist/gen/size_chart.d.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface BulkAssignSizeChartRequest {
|
|
|
55
55
|
categoryIds: string[];
|
|
56
56
|
brandIds: string[];
|
|
57
57
|
}
|
|
58
|
+
export interface BulkRemoveSizeChartRequest {
|
|
59
|
+
sizeChartId: string;
|
|
60
|
+
productIds: string[];
|
|
61
|
+
categoryIds: string[];
|
|
62
|
+
brandIds: string[];
|
|
63
|
+
}
|
|
58
64
|
export interface GetSizeChartsRequest {
|
|
59
65
|
pagination: PaginationRequest | undefined;
|
|
60
66
|
}
|
|
@@ -66,6 +72,7 @@ export interface SizeChartServiceClient {
|
|
|
66
72
|
updateSizeChart(request: UpdateSizeChartRequest): Observable<SizeChartResponse>;
|
|
67
73
|
deleteSizeChart(request: DeleteSizeChartRequest): Observable<DeleteResponse>;
|
|
68
74
|
bulkAssignSizeChart(request: BulkAssignSizeChartRequest): Observable<SuccessResponse>;
|
|
75
|
+
bulkRemoveSizeChart(request: BulkRemoveSizeChartRequest): Observable<SuccessResponse>;
|
|
69
76
|
}
|
|
70
77
|
export interface SizeChartServiceController {
|
|
71
78
|
getSizeCharts(request: GetSizeChartsRequest): Promise<GetSizeChartsResponse> | Observable<GetSizeChartsResponse> | GetSizeChartsResponse;
|
|
@@ -74,6 +81,7 @@ export interface SizeChartServiceController {
|
|
|
74
81
|
updateSizeChart(request: UpdateSizeChartRequest): Promise<SizeChartResponse> | Observable<SizeChartResponse> | SizeChartResponse;
|
|
75
82
|
deleteSizeChart(request: DeleteSizeChartRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
76
83
|
bulkAssignSizeChart(request: BulkAssignSizeChartRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
84
|
+
bulkRemoveSizeChart(request: BulkRemoveSizeChartRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
77
85
|
}
|
|
78
86
|
export declare function SizeChartServiceControllerMethods(): (constructor: Function) => void;
|
|
79
87
|
export declare const SIZE_CHART_SERVICE_NAME = "SizeChartService";
|
package/dist/gen/size_chart.js
CHANGED
|
@@ -20,6 +20,7 @@ function SizeChartServiceControllerMethods() {
|
|
|
20
20
|
"updateSizeChart",
|
|
21
21
|
"deleteSizeChart",
|
|
22
22
|
"bulkAssignSizeChart",
|
|
23
|
+
"bulkRemoveSizeChart",
|
|
23
24
|
];
|
|
24
25
|
for (const method of grpcMethods) {
|
|
25
26
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|