@wix/stores 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.
Files changed (29) hide show
  1. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +7 -1
  2. package/build/cjs/src/stores-catalog-v1-product.http.js +119 -1
  3. package/build/cjs/src/stores-catalog-v1-product.http.js.map +1 -1
  4. package/build/cjs/src/stores-catalog-v1-product.meta.d.ts +7 -0
  5. package/build/cjs/src/stores-catalog-v1-product.meta.js +58 -1
  6. package/build/cjs/src/stores-catalog-v1-product.meta.js.map +1 -1
  7. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +475 -2
  8. package/build/cjs/src/stores-catalog-v1-product.public.js +19 -1
  9. package/build/cjs/src/stores-catalog-v1-product.public.js.map +1 -1
  10. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +497 -0
  11. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
  12. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +683 -29
  13. package/build/cjs/src/stores-catalog-v1-product.universal.js +169 -1
  14. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
  15. package/build/es/src/stores-catalog-v1-product.http.d.ts +7 -1
  16. package/build/es/src/stores-catalog-v1-product.http.js +115 -0
  17. package/build/es/src/stores-catalog-v1-product.http.js.map +1 -1
  18. package/build/es/src/stores-catalog-v1-product.meta.d.ts +7 -0
  19. package/build/es/src/stores-catalog-v1-product.meta.js +54 -0
  20. package/build/es/src/stores-catalog-v1-product.meta.js.map +1 -1
  21. package/build/es/src/stores-catalog-v1-product.public.d.ts +475 -2
  22. package/build/es/src/stores-catalog-v1-product.public.js +16 -1
  23. package/build/es/src/stores-catalog-v1-product.public.js.map +1 -1
  24. package/build/es/src/stores-catalog-v1-product.types.d.ts +497 -0
  25. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
  26. package/build/es/src/stores-catalog-v1-product.universal.d.ts +683 -29
  27. package/build/es/src/stores-catalog-v1-product.universal.js +165 -0
  28. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
  29. package/package.json +2 -2
@@ -933,6 +933,25 @@ export interface BulkAdjustProductPropertiesByFilterSyncResponse {
933
933
  /** Bulk action metadata. */
934
934
  bulkActionMetadata?: BulkActionMetadata;
935
935
  }
936
+ export interface V1CreateProductPlatformizedRequest {
937
+ /** Product information. */
938
+ product?: Product;
939
+ }
940
+ export interface V1CreateProductPlatformizedResponse {
941
+ product?: Product;
942
+ }
943
+ export interface V1UpdateProductPlatformizedRequest {
944
+ product: Product;
945
+ }
946
+ export interface V1UpdateProductPlatformizedResponse {
947
+ product?: Product;
948
+ }
949
+ export interface V1DeleteProductPlatformizedRequest {
950
+ /** ID of the product to delete. */
951
+ id: string;
952
+ }
953
+ export interface V1DeleteProductPlatformizedResponse {
954
+ }
936
955
  export interface ProductCreated {
937
956
  /** Product ID (generated automatically by the catalog). */
938
957
  productId?: string;
@@ -2605,6 +2624,484 @@ export interface BulkAdjustProductPropertiesResponseNonNullableFields {
2605
2624
  undetailedFailures: number;
2606
2625
  };
2607
2626
  }
2627
+ export interface V1CreateProductPlatformizedResponseNonNullableFields {
2628
+ product?: {
2629
+ id: string;
2630
+ slug: string;
2631
+ productType: ProductType;
2632
+ weightRange?: {
2633
+ minValue: number;
2634
+ maxValue: number;
2635
+ };
2636
+ stock?: {
2637
+ trackInventory: boolean;
2638
+ inStock: boolean;
2639
+ inventoryStatus: InventoryStatus;
2640
+ };
2641
+ price?: {
2642
+ currency: string;
2643
+ discountedPrice: number;
2644
+ formatted?: {
2645
+ price: string;
2646
+ discountedPrice: string;
2647
+ };
2648
+ };
2649
+ priceData?: {
2650
+ currency: string;
2651
+ discountedPrice: number;
2652
+ formatted?: {
2653
+ price: string;
2654
+ discountedPrice: string;
2655
+ };
2656
+ };
2657
+ convertedPriceData?: {
2658
+ currency: string;
2659
+ discountedPrice: number;
2660
+ formatted?: {
2661
+ price: string;
2662
+ discountedPrice: string;
2663
+ };
2664
+ };
2665
+ priceRange?: {
2666
+ minValue: number;
2667
+ maxValue: number;
2668
+ };
2669
+ costAndProfitData?: {
2670
+ formattedItemCost: string;
2671
+ profit: number;
2672
+ formattedProfit: string;
2673
+ profitMargin: number;
2674
+ };
2675
+ costRange?: {
2676
+ minValue: number;
2677
+ maxValue: number;
2678
+ };
2679
+ pricePerUnitData?: {
2680
+ totalQuantity: number;
2681
+ totalMeasurementUnit: MeasurementUnit;
2682
+ baseQuantity: number;
2683
+ baseMeasurementUnit: MeasurementUnit;
2684
+ };
2685
+ additionalInfoSections: {
2686
+ title: string;
2687
+ description: string;
2688
+ }[];
2689
+ ribbons: {
2690
+ text: string;
2691
+ }[];
2692
+ media?: {
2693
+ mainMedia?: {
2694
+ image?: {
2695
+ url: string;
2696
+ width: number;
2697
+ height: number;
2698
+ };
2699
+ video?: {
2700
+ files: {
2701
+ url: string;
2702
+ width: number;
2703
+ height: number;
2704
+ }[];
2705
+ stillFrameMediaId: string;
2706
+ };
2707
+ thumbnail?: {
2708
+ url: string;
2709
+ width: number;
2710
+ height: number;
2711
+ };
2712
+ mediaType: MediaItemType;
2713
+ title: string;
2714
+ id: string;
2715
+ };
2716
+ items: {
2717
+ image?: {
2718
+ url: string;
2719
+ width: number;
2720
+ height: number;
2721
+ };
2722
+ video?: {
2723
+ files: {
2724
+ url: string;
2725
+ width: number;
2726
+ height: number;
2727
+ }[];
2728
+ stillFrameMediaId: string;
2729
+ };
2730
+ thumbnail?: {
2731
+ url: string;
2732
+ width: number;
2733
+ height: number;
2734
+ };
2735
+ mediaType: MediaItemType;
2736
+ title: string;
2737
+ id: string;
2738
+ }[];
2739
+ };
2740
+ customTextFields: {
2741
+ title: string;
2742
+ maxLength: number;
2743
+ mandatory: boolean;
2744
+ }[];
2745
+ productOptions: {
2746
+ optionType: OptionType;
2747
+ name: string;
2748
+ choices: {
2749
+ value: string;
2750
+ description: string;
2751
+ media?: {
2752
+ mainMedia?: {
2753
+ image?: {
2754
+ url: string;
2755
+ width: number;
2756
+ height: number;
2757
+ };
2758
+ video?: {
2759
+ files: {
2760
+ url: string;
2761
+ width: number;
2762
+ height: number;
2763
+ }[];
2764
+ stillFrameMediaId: string;
2765
+ };
2766
+ thumbnail?: {
2767
+ url: string;
2768
+ width: number;
2769
+ height: number;
2770
+ };
2771
+ mediaType: MediaItemType;
2772
+ title: string;
2773
+ id: string;
2774
+ };
2775
+ items: {
2776
+ image?: {
2777
+ url: string;
2778
+ width: number;
2779
+ height: number;
2780
+ };
2781
+ video?: {
2782
+ files: {
2783
+ url: string;
2784
+ width: number;
2785
+ height: number;
2786
+ }[];
2787
+ stillFrameMediaId: string;
2788
+ };
2789
+ thumbnail?: {
2790
+ url: string;
2791
+ width: number;
2792
+ height: number;
2793
+ };
2794
+ mediaType: MediaItemType;
2795
+ title: string;
2796
+ id: string;
2797
+ }[];
2798
+ };
2799
+ inStock: boolean;
2800
+ visible: boolean;
2801
+ }[];
2802
+ }[];
2803
+ productPageUrl?: {
2804
+ base: string;
2805
+ path: string;
2806
+ };
2807
+ numericId: string;
2808
+ inventoryItemId: string;
2809
+ discount?: {
2810
+ type: DiscountType;
2811
+ value: number;
2812
+ };
2813
+ collectionIds: string[];
2814
+ variants: {
2815
+ id: string;
2816
+ variant?: {
2817
+ priceData?: {
2818
+ currency: string;
2819
+ discountedPrice: number;
2820
+ formatted?: {
2821
+ price: string;
2822
+ discountedPrice: string;
2823
+ };
2824
+ };
2825
+ convertedPriceData?: {
2826
+ currency: string;
2827
+ discountedPrice: number;
2828
+ formatted?: {
2829
+ price: string;
2830
+ discountedPrice: string;
2831
+ };
2832
+ };
2833
+ costAndProfitData?: {
2834
+ formattedItemCost: string;
2835
+ profit: number;
2836
+ formattedProfit: string;
2837
+ profitMargin: number;
2838
+ };
2839
+ weight: number;
2840
+ sku: string;
2841
+ visible: boolean;
2842
+ };
2843
+ stock?: {
2844
+ trackQuantity: boolean;
2845
+ inStock: boolean;
2846
+ };
2847
+ }[];
2848
+ seoData?: {
2849
+ tags: {
2850
+ type: string;
2851
+ children: string;
2852
+ custom: boolean;
2853
+ disabled: boolean;
2854
+ }[];
2855
+ settings?: {
2856
+ preventAutoRedirect: boolean;
2857
+ keywords: {
2858
+ term: string;
2859
+ isMain: boolean;
2860
+ }[];
2861
+ };
2862
+ };
2863
+ exportProductId: string;
2864
+ };
2865
+ }
2866
+ export interface V1UpdateProductPlatformizedResponseNonNullableFields {
2867
+ product?: {
2868
+ id: string;
2869
+ slug: string;
2870
+ productType: ProductType;
2871
+ weightRange?: {
2872
+ minValue: number;
2873
+ maxValue: number;
2874
+ };
2875
+ stock?: {
2876
+ trackInventory: boolean;
2877
+ inStock: boolean;
2878
+ inventoryStatus: InventoryStatus;
2879
+ };
2880
+ price?: {
2881
+ currency: string;
2882
+ discountedPrice: number;
2883
+ formatted?: {
2884
+ price: string;
2885
+ discountedPrice: string;
2886
+ };
2887
+ };
2888
+ priceData?: {
2889
+ currency: string;
2890
+ discountedPrice: number;
2891
+ formatted?: {
2892
+ price: string;
2893
+ discountedPrice: string;
2894
+ };
2895
+ };
2896
+ convertedPriceData?: {
2897
+ currency: string;
2898
+ discountedPrice: number;
2899
+ formatted?: {
2900
+ price: string;
2901
+ discountedPrice: string;
2902
+ };
2903
+ };
2904
+ priceRange?: {
2905
+ minValue: number;
2906
+ maxValue: number;
2907
+ };
2908
+ costAndProfitData?: {
2909
+ formattedItemCost: string;
2910
+ profit: number;
2911
+ formattedProfit: string;
2912
+ profitMargin: number;
2913
+ };
2914
+ costRange?: {
2915
+ minValue: number;
2916
+ maxValue: number;
2917
+ };
2918
+ pricePerUnitData?: {
2919
+ totalQuantity: number;
2920
+ totalMeasurementUnit: MeasurementUnit;
2921
+ baseQuantity: number;
2922
+ baseMeasurementUnit: MeasurementUnit;
2923
+ };
2924
+ additionalInfoSections: {
2925
+ title: string;
2926
+ description: string;
2927
+ }[];
2928
+ ribbons: {
2929
+ text: string;
2930
+ }[];
2931
+ media?: {
2932
+ mainMedia?: {
2933
+ image?: {
2934
+ url: string;
2935
+ width: number;
2936
+ height: number;
2937
+ };
2938
+ video?: {
2939
+ files: {
2940
+ url: string;
2941
+ width: number;
2942
+ height: number;
2943
+ }[];
2944
+ stillFrameMediaId: string;
2945
+ };
2946
+ thumbnail?: {
2947
+ url: string;
2948
+ width: number;
2949
+ height: number;
2950
+ };
2951
+ mediaType: MediaItemType;
2952
+ title: string;
2953
+ id: string;
2954
+ };
2955
+ items: {
2956
+ image?: {
2957
+ url: string;
2958
+ width: number;
2959
+ height: number;
2960
+ };
2961
+ video?: {
2962
+ files: {
2963
+ url: string;
2964
+ width: number;
2965
+ height: number;
2966
+ }[];
2967
+ stillFrameMediaId: string;
2968
+ };
2969
+ thumbnail?: {
2970
+ url: string;
2971
+ width: number;
2972
+ height: number;
2973
+ };
2974
+ mediaType: MediaItemType;
2975
+ title: string;
2976
+ id: string;
2977
+ }[];
2978
+ };
2979
+ customTextFields: {
2980
+ title: string;
2981
+ maxLength: number;
2982
+ mandatory: boolean;
2983
+ }[];
2984
+ productOptions: {
2985
+ optionType: OptionType;
2986
+ name: string;
2987
+ choices: {
2988
+ value: string;
2989
+ description: string;
2990
+ media?: {
2991
+ mainMedia?: {
2992
+ image?: {
2993
+ url: string;
2994
+ width: number;
2995
+ height: number;
2996
+ };
2997
+ video?: {
2998
+ files: {
2999
+ url: string;
3000
+ width: number;
3001
+ height: number;
3002
+ }[];
3003
+ stillFrameMediaId: string;
3004
+ };
3005
+ thumbnail?: {
3006
+ url: string;
3007
+ width: number;
3008
+ height: number;
3009
+ };
3010
+ mediaType: MediaItemType;
3011
+ title: string;
3012
+ id: string;
3013
+ };
3014
+ items: {
3015
+ image?: {
3016
+ url: string;
3017
+ width: number;
3018
+ height: number;
3019
+ };
3020
+ video?: {
3021
+ files: {
3022
+ url: string;
3023
+ width: number;
3024
+ height: number;
3025
+ }[];
3026
+ stillFrameMediaId: string;
3027
+ };
3028
+ thumbnail?: {
3029
+ url: string;
3030
+ width: number;
3031
+ height: number;
3032
+ };
3033
+ mediaType: MediaItemType;
3034
+ title: string;
3035
+ id: string;
3036
+ }[];
3037
+ };
3038
+ inStock: boolean;
3039
+ visible: boolean;
3040
+ }[];
3041
+ }[];
3042
+ productPageUrl?: {
3043
+ base: string;
3044
+ path: string;
3045
+ };
3046
+ numericId: string;
3047
+ inventoryItemId: string;
3048
+ discount?: {
3049
+ type: DiscountType;
3050
+ value: number;
3051
+ };
3052
+ collectionIds: string[];
3053
+ variants: {
3054
+ id: string;
3055
+ variant?: {
3056
+ priceData?: {
3057
+ currency: string;
3058
+ discountedPrice: number;
3059
+ formatted?: {
3060
+ price: string;
3061
+ discountedPrice: string;
3062
+ };
3063
+ };
3064
+ convertedPriceData?: {
3065
+ currency: string;
3066
+ discountedPrice: number;
3067
+ formatted?: {
3068
+ price: string;
3069
+ discountedPrice: string;
3070
+ };
3071
+ };
3072
+ costAndProfitData?: {
3073
+ formattedItemCost: string;
3074
+ profit: number;
3075
+ formattedProfit: string;
3076
+ profitMargin: number;
3077
+ };
3078
+ weight: number;
3079
+ sku: string;
3080
+ visible: boolean;
3081
+ };
3082
+ stock?: {
3083
+ trackQuantity: boolean;
3084
+ inStock: boolean;
3085
+ };
3086
+ }[];
3087
+ seoData?: {
3088
+ tags: {
3089
+ type: string;
3090
+ children: string;
3091
+ custom: boolean;
3092
+ disabled: boolean;
3093
+ }[];
3094
+ settings?: {
3095
+ preventAutoRedirect: boolean;
3096
+ keywords: {
3097
+ term: string;
3098
+ isMain: boolean;
3099
+ }[];
3100
+ };
3101
+ };
3102
+ exportProductId: string;
3103
+ };
3104
+ }
2608
3105
  export interface QueryProductsPlatformizedResponseNonNullableFields {
2609
3106
  products: {
2610
3107
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":";;;AAgIA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,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AA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAqvBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
1
+ {"version":3,"file":"stores-catalog-v1-product.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-product.types.ts"],"names":[],"mappings":";;;AAgIA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oEAAqD,CAAA;IACrD,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AA4BD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,gDAA6B,CAAA;IAC7B,oEAAiD,CAAA;AACnD,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AA4ED,IAAY,eAuBX;AAvBD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,0BAAO,CAAA;IACP,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,4BAAS,CAAA;IACT,gCAAa,CAAA;AACf,CAAC,EAvBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAuB1B;AAyDD,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,4EAA2D,CAAA;IAC3D,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAA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