@dokamerce/web-sdk 0.9.7 → 0.11.8
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/graphql/__generated__/gateway.d.ts +701 -12
- package/dist/graphql/__generated__/gateway.js +169 -6
- package/dist/graphql/__generated__/gateway.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web-sdk/src/constants/graphql-base.constant.d.ts +1 -1
- package/dist/web-sdk/src/constants/graphql-base.constant.js +1 -1
- package/dist/web-sdk/src/constants/graphql-base.constant.js.map +1 -1
- package/package.json +1 -1
|
@@ -164,7 +164,35 @@ export type CreateOrderInput = {
|
|
|
164
164
|
total: Scalars['Float']['input'];
|
|
165
165
|
};
|
|
166
166
|
export type CreateProductInput = {
|
|
167
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
168
|
+
brandId: Scalars['ID']['input'];
|
|
169
|
+
businessRules?: InputMaybe<Scalars['String']['input']>;
|
|
170
|
+
categoryId: Scalars['ID']['input'];
|
|
171
|
+
condition: ProductCondition;
|
|
172
|
+
content: Scalars['String']['input'];
|
|
173
|
+
currencyId: Scalars['ID']['input'];
|
|
174
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
175
|
+
featured?: Scalars['Boolean']['input'];
|
|
176
|
+
imageIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
177
|
+
maxOrderQty?: InputMaybe<Scalars['Float']['input']>;
|
|
178
|
+
metaDescription?: InputMaybe<Scalars['String']['input']>;
|
|
179
|
+
metaKeywords?: InputMaybe<Scalars['String']['input']>;
|
|
180
|
+
metaTitle?: InputMaybe<Scalars['String']['input']>;
|
|
181
|
+
minOrderQty?: InputMaybe<Scalars['Float']['input']>;
|
|
167
182
|
name: Scalars['String']['input'];
|
|
183
|
+
price: Scalars['Float']['input'];
|
|
184
|
+
publishedAt: Scalars['DateTime']['input'];
|
|
185
|
+
shippingId?: InputMaybe<Scalars['ID']['input']>;
|
|
186
|
+
sizeGroupId: Scalars['ID']['input'];
|
|
187
|
+
status: ProductType;
|
|
188
|
+
thumbnailId?: InputMaybe<Scalars['ID']['input']>;
|
|
189
|
+
todayDeal?: Scalars['Boolean']['input'];
|
|
190
|
+
type: ProductType;
|
|
191
|
+
variants: Array<ProductVariantInput>;
|
|
192
|
+
videoIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
193
|
+
warrantyDescription?: InputMaybe<Scalars['String']['input']>;
|
|
194
|
+
warrantyTime?: InputMaybe<Scalars['String']['input']>;
|
|
195
|
+
warrantyType?: InputMaybe<Scalars['String']['input']>;
|
|
168
196
|
};
|
|
169
197
|
export type CreateSellerInput = {
|
|
170
198
|
active: Scalars['Boolean']['input'];
|
|
@@ -591,35 +619,76 @@ export type PaginatedTagsConnection = {
|
|
|
591
619
|
export type Product = {
|
|
592
620
|
__typename?: 'Product';
|
|
593
621
|
active: Scalars['Boolean']['output'];
|
|
594
|
-
barcode?: Maybe<Scalars['String']['output']>;
|
|
595
622
|
brand?: Maybe<Brand>;
|
|
596
|
-
category
|
|
623
|
+
category?: Maybe<Category>;
|
|
624
|
+
condition: ProductCondition;
|
|
625
|
+
content?: Maybe<Scalars['String']['output']>;
|
|
597
626
|
createdAt: Scalars['DateTime']['output'];
|
|
598
|
-
deleted: Scalars['Boolean']['output'];
|
|
599
|
-
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
600
627
|
description?: Maybe<Scalars['String']['output']>;
|
|
601
628
|
featured: Scalars['Boolean']['output'];
|
|
629
|
+
files: Array<ProductFile>;
|
|
602
630
|
id: Scalars['ID']['output'];
|
|
631
|
+
maxOrderQty?: Maybe<Scalars['Boolean']['output']>;
|
|
632
|
+
metaDescription?: Maybe<Scalars['Boolean']['output']>;
|
|
633
|
+
metaKeywords?: Maybe<Scalars['Boolean']['output']>;
|
|
634
|
+
metaTitle?: Maybe<Scalars['Boolean']['output']>;
|
|
635
|
+
minOrderQty?: Maybe<Scalars['Boolean']['output']>;
|
|
603
636
|
name: Scalars['String']['output'];
|
|
604
637
|
price: Scalars['Float']['output'];
|
|
605
638
|
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
606
|
-
seller?: Maybe<Seller>;
|
|
607
|
-
shortDescription?: Maybe<Scalars['String']['output']>;
|
|
608
|
-
sku?: Maybe<Scalars['String']['output']>;
|
|
609
639
|
slug: Scalars['String']['output'];
|
|
610
640
|
soldCount: Scalars['Int']['output'];
|
|
611
|
-
status:
|
|
612
|
-
|
|
641
|
+
status: ProductStatus;
|
|
642
|
+
thumbnail: File;
|
|
613
643
|
todayDeal: Scalars['Boolean']['output'];
|
|
614
|
-
type:
|
|
644
|
+
type: ProductType;
|
|
615
645
|
updatedAt: Scalars['DateTime']['output'];
|
|
646
|
+
variants: Array<ProductVariant>;
|
|
616
647
|
views: Scalars['Int']['output'];
|
|
617
|
-
|
|
648
|
+
warrantyDescription?: Maybe<Scalars['String']['output']>;
|
|
649
|
+
warrantyTime?: Maybe<Scalars['String']['output']>;
|
|
650
|
+
warrantyType?: Maybe<Scalars['String']['output']>;
|
|
651
|
+
};
|
|
652
|
+
export declare enum ProductCondition {
|
|
653
|
+
New = "NEW",
|
|
654
|
+
Oldstock = "OLDSTOCK",
|
|
655
|
+
Refurbished = "REFURBISHED",
|
|
656
|
+
Used = "USED"
|
|
657
|
+
}
|
|
618
658
|
export declare enum ProductFieldsEnum {
|
|
659
|
+
Active = "active",
|
|
660
|
+
Condition = "condition",
|
|
661
|
+
Content = "content",
|
|
619
662
|
CreatedAt = "createdAt",
|
|
663
|
+
Description = "description",
|
|
664
|
+
Featured = "featured",
|
|
620
665
|
Id = "id",
|
|
666
|
+
MaxOrderQty = "maxOrderQty",
|
|
667
|
+
MetaDescription = "metaDescription",
|
|
668
|
+
MetaKeywords = "metaKeywords",
|
|
669
|
+
MetaTitle = "metaTitle",
|
|
670
|
+
MinOrderQty = "minOrderQty",
|
|
621
671
|
Name = "name",
|
|
622
|
-
|
|
672
|
+
Price = "price",
|
|
673
|
+
PublishedAt = "publishedAt",
|
|
674
|
+
Slug = "slug",
|
|
675
|
+
SoldCount = "soldCount",
|
|
676
|
+
Status = "status",
|
|
677
|
+
TodayDeal = "todayDeal",
|
|
678
|
+
Type = "type",
|
|
679
|
+
UpdatedAt = "updatedAt",
|
|
680
|
+
WarrantyDescription = "warrantyDescription",
|
|
681
|
+
WarrantyTime = "warrantyTime",
|
|
682
|
+
WarrantyType = "warrantyType"
|
|
683
|
+
}
|
|
684
|
+
export type ProductFile = {
|
|
685
|
+
__typename?: 'ProductFile';
|
|
686
|
+
file: File;
|
|
687
|
+
type: ProductFileType;
|
|
688
|
+
};
|
|
689
|
+
export declare enum ProductFileType {
|
|
690
|
+
Image = "IMAGE",
|
|
691
|
+
Video = "VIDEO"
|
|
623
692
|
}
|
|
624
693
|
export type ProductFilter = {
|
|
625
694
|
id?: InputMaybe<IdArrayFilter>;
|
|
@@ -629,6 +698,70 @@ export type ProductSort = {
|
|
|
629
698
|
field: ProductFieldsEnum;
|
|
630
699
|
order?: InputMaybe<SortOrderEnum>;
|
|
631
700
|
};
|
|
701
|
+
export declare enum ProductStatus {
|
|
702
|
+
Archived = "ARCHIVED",
|
|
703
|
+
Draft = "DRAFT",
|
|
704
|
+
Published = "PUBLISHED",
|
|
705
|
+
Waiting = "WAITING"
|
|
706
|
+
}
|
|
707
|
+
export declare enum ProductType {
|
|
708
|
+
Digital = "DIGITAL",
|
|
709
|
+
Physical = "PHYSICAL"
|
|
710
|
+
}
|
|
711
|
+
export type ProductVariant = {
|
|
712
|
+
__typename?: 'ProductVariant';
|
|
713
|
+
active?: Maybe<Scalars['Boolean']['output']>;
|
|
714
|
+
attributes: Array<ProductVariantAttribute>;
|
|
715
|
+
default: Scalars['Boolean']['output'];
|
|
716
|
+
id: Scalars['ID']['output'];
|
|
717
|
+
sellers: Array<ProductVariantSeller>;
|
|
718
|
+
};
|
|
719
|
+
export type ProductVariantAttribute = {
|
|
720
|
+
__typename?: 'ProductVariantAttribute';
|
|
721
|
+
attribute: Attribute;
|
|
722
|
+
value: Scalars['String']['output'];
|
|
723
|
+
};
|
|
724
|
+
export type ProductVariantAttributeInput = {
|
|
725
|
+
attributeId: Scalars['ID']['input'];
|
|
726
|
+
value: Scalars['String']['input'];
|
|
727
|
+
};
|
|
728
|
+
export type ProductVariantInput = {
|
|
729
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
730
|
+
attributes: Array<ProductVariantAttributeInput>;
|
|
731
|
+
color?: InputMaybe<Scalars['String']['input']>;
|
|
732
|
+
sellers?: InputMaybe<Array<ProductVariantSellerInput>>;
|
|
733
|
+
};
|
|
734
|
+
export type ProductVariantSeller = {
|
|
735
|
+
__typename?: 'ProductVariantSeller';
|
|
736
|
+
active?: Maybe<Scalars['Boolean']['output']>;
|
|
737
|
+
barcode?: Maybe<Scalars['String']['output']>;
|
|
738
|
+
discountEndAt?: Maybe<Scalars['Float']['output']>;
|
|
739
|
+
discountFixed?: Maybe<Scalars['Float']['output']>;
|
|
740
|
+
discountPercentage?: Maybe<Scalars['Float']['output']>;
|
|
741
|
+
discountStartAt?: Maybe<Scalars['Float']['output']>;
|
|
742
|
+
priceDiff: Scalars['Float']['output'];
|
|
743
|
+
quantity: Scalars['Int']['output'];
|
|
744
|
+
seller: Seller;
|
|
745
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
746
|
+
stock: ProductVariantStock;
|
|
747
|
+
};
|
|
748
|
+
export type ProductVariantSellerInput = {
|
|
749
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
750
|
+
barcode?: InputMaybe<Scalars['String']['input']>;
|
|
751
|
+
discountEndAt?: InputMaybe<Scalars['Float']['input']>;
|
|
752
|
+
discountFixed?: InputMaybe<Scalars['Float']['input']>;
|
|
753
|
+
discountPercentage?: InputMaybe<Scalars['Float']['input']>;
|
|
754
|
+
discountStartAt?: InputMaybe<Scalars['Float']['input']>;
|
|
755
|
+
priceDiff: Scalars['Float']['input'];
|
|
756
|
+
quantity: Scalars['Int']['input'];
|
|
757
|
+
sellerId?: InputMaybe<Scalars['ID']['input']>;
|
|
758
|
+
sku?: InputMaybe<Scalars['String']['input']>;
|
|
759
|
+
};
|
|
760
|
+
export type ProductVariantStock = {
|
|
761
|
+
__typename?: 'ProductVariantStock';
|
|
762
|
+
quantity: Scalars['Int']['output'];
|
|
763
|
+
seller: Array<Seller>;
|
|
764
|
+
};
|
|
632
765
|
export type Query = {
|
|
633
766
|
__typename?: 'Query';
|
|
634
767
|
attribute?: Maybe<Array<Attribute>>;
|
|
@@ -977,7 +1110,35 @@ export type UpdateOrderInput = {
|
|
|
977
1110
|
total?: InputMaybe<Scalars['Float']['input']>;
|
|
978
1111
|
};
|
|
979
1112
|
export type UpdateProductInput = {
|
|
1113
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1114
|
+
brandId?: InputMaybe<Scalars['ID']['input']>;
|
|
1115
|
+
businessRules?: InputMaybe<Scalars['String']['input']>;
|
|
1116
|
+
categoryId?: InputMaybe<Scalars['ID']['input']>;
|
|
1117
|
+
condition?: InputMaybe<ProductCondition>;
|
|
1118
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
1119
|
+
currencyId?: InputMaybe<Scalars['ID']['input']>;
|
|
1120
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
1121
|
+
featured?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1122
|
+
imageIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1123
|
+
maxOrderQty?: InputMaybe<Scalars['Float']['input']>;
|
|
1124
|
+
metaDescription?: InputMaybe<Scalars['String']['input']>;
|
|
1125
|
+
metaKeywords?: InputMaybe<Scalars['String']['input']>;
|
|
1126
|
+
metaTitle?: InputMaybe<Scalars['String']['input']>;
|
|
1127
|
+
minOrderQty?: InputMaybe<Scalars['Float']['input']>;
|
|
980
1128
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1129
|
+
price?: InputMaybe<Scalars['Float']['input']>;
|
|
1130
|
+
publishedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
1131
|
+
shippingId?: InputMaybe<Scalars['ID']['input']>;
|
|
1132
|
+
sizeGroupId?: InputMaybe<Scalars['ID']['input']>;
|
|
1133
|
+
status?: InputMaybe<ProductType>;
|
|
1134
|
+
thumbnailId?: InputMaybe<Scalars['ID']['input']>;
|
|
1135
|
+
todayDeal?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1136
|
+
type?: InputMaybe<ProductType>;
|
|
1137
|
+
variants?: InputMaybe<Array<ProductVariantInput>>;
|
|
1138
|
+
videoIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1139
|
+
warrantyDescription?: InputMaybe<Scalars['String']['input']>;
|
|
1140
|
+
warrantyTime?: InputMaybe<Scalars['String']['input']>;
|
|
1141
|
+
warrantyType?: InputMaybe<Scalars['String']['input']>;
|
|
981
1142
|
};
|
|
982
1143
|
export type UpdateSellerInput = {
|
|
983
1144
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -1761,7 +1922,154 @@ export type PaginatedOrdersQuery = {
|
|
|
1761
1922
|
export type ProductFragmentFragment = {
|
|
1762
1923
|
__typename?: 'Product';
|
|
1763
1924
|
id: string;
|
|
1925
|
+
active: boolean;
|
|
1926
|
+
condition: ProductCondition;
|
|
1927
|
+
content?: string | null;
|
|
1928
|
+
createdAt: any;
|
|
1929
|
+
description?: string | null;
|
|
1930
|
+
featured: boolean;
|
|
1931
|
+
maxOrderQty?: boolean | null;
|
|
1932
|
+
metaDescription?: boolean | null;
|
|
1933
|
+
metaKeywords?: boolean | null;
|
|
1934
|
+
metaTitle?: boolean | null;
|
|
1935
|
+
minOrderQty?: boolean | null;
|
|
1764
1936
|
name: string;
|
|
1937
|
+
price: number;
|
|
1938
|
+
slug: string;
|
|
1939
|
+
soldCount: number;
|
|
1940
|
+
status: ProductStatus;
|
|
1941
|
+
todayDeal: boolean;
|
|
1942
|
+
type: ProductType;
|
|
1943
|
+
updatedAt: any;
|
|
1944
|
+
views: number;
|
|
1945
|
+
warrantyDescription?: string | null;
|
|
1946
|
+
warrantyTime?: string | null;
|
|
1947
|
+
warrantyType?: string | null;
|
|
1948
|
+
};
|
|
1949
|
+
export type ProductVariantStockFragmentFragment = {
|
|
1950
|
+
__typename?: 'ProductVariantStock';
|
|
1951
|
+
quantity: number;
|
|
1952
|
+
seller: Array<{
|
|
1953
|
+
__typename?: 'Seller';
|
|
1954
|
+
id: string;
|
|
1955
|
+
name: string;
|
|
1956
|
+
description?: string | null;
|
|
1957
|
+
active: boolean;
|
|
1958
|
+
orderNumber: number;
|
|
1959
|
+
slug: string;
|
|
1960
|
+
rating?: number | null;
|
|
1961
|
+
verified: boolean;
|
|
1962
|
+
createdAt: any;
|
|
1963
|
+
updatedAt: any;
|
|
1964
|
+
}>;
|
|
1965
|
+
};
|
|
1966
|
+
export type ProductVariantSellerFragmentFragment = {
|
|
1967
|
+
__typename?: 'ProductVariantSeller';
|
|
1968
|
+
active?: boolean | null;
|
|
1969
|
+
barcode?: string | null;
|
|
1970
|
+
discountEndAt?: number | null;
|
|
1971
|
+
discountFixed?: number | null;
|
|
1972
|
+
discountPercentage?: number | null;
|
|
1973
|
+
discountStartAt?: number | null;
|
|
1974
|
+
priceDiff: number;
|
|
1975
|
+
quantity: number;
|
|
1976
|
+
sku?: string | null;
|
|
1977
|
+
seller: {
|
|
1978
|
+
__typename?: 'Seller';
|
|
1979
|
+
id: string;
|
|
1980
|
+
name: string;
|
|
1981
|
+
description?: string | null;
|
|
1982
|
+
active: boolean;
|
|
1983
|
+
orderNumber: number;
|
|
1984
|
+
slug: string;
|
|
1985
|
+
rating?: number | null;
|
|
1986
|
+
verified: boolean;
|
|
1987
|
+
createdAt: any;
|
|
1988
|
+
updatedAt: any;
|
|
1989
|
+
};
|
|
1990
|
+
stock: {
|
|
1991
|
+
__typename?: 'ProductVariantStock';
|
|
1992
|
+
quantity: number;
|
|
1993
|
+
seller: Array<{
|
|
1994
|
+
__typename?: 'Seller';
|
|
1995
|
+
id: string;
|
|
1996
|
+
name: string;
|
|
1997
|
+
description?: string | null;
|
|
1998
|
+
active: boolean;
|
|
1999
|
+
orderNumber: number;
|
|
2000
|
+
slug: string;
|
|
2001
|
+
rating?: number | null;
|
|
2002
|
+
verified: boolean;
|
|
2003
|
+
createdAt: any;
|
|
2004
|
+
updatedAt: any;
|
|
2005
|
+
}>;
|
|
2006
|
+
};
|
|
2007
|
+
};
|
|
2008
|
+
export type ProductVariantFragmentFragment = {
|
|
2009
|
+
__typename?: 'ProductVariant';
|
|
2010
|
+
active?: boolean | null;
|
|
2011
|
+
default: boolean;
|
|
2012
|
+
id: string;
|
|
2013
|
+
attributes: Array<{
|
|
2014
|
+
__typename?: 'ProductVariantAttribute';
|
|
2015
|
+
value: string;
|
|
2016
|
+
attribute: {
|
|
2017
|
+
__typename?: 'Attribute';
|
|
2018
|
+
active: boolean;
|
|
2019
|
+
createdAt: any;
|
|
2020
|
+
id: string;
|
|
2021
|
+
name: string;
|
|
2022
|
+
type: string;
|
|
2023
|
+
updatedAt: any;
|
|
2024
|
+
values?: Array<{
|
|
2025
|
+
__typename?: 'AttributeValue';
|
|
2026
|
+
default: boolean;
|
|
2027
|
+
name: string;
|
|
2028
|
+
}> | null;
|
|
2029
|
+
};
|
|
2030
|
+
}>;
|
|
2031
|
+
sellers: Array<{
|
|
2032
|
+
__typename?: 'ProductVariantSeller';
|
|
2033
|
+
active?: boolean | null;
|
|
2034
|
+
barcode?: string | null;
|
|
2035
|
+
discountEndAt?: number | null;
|
|
2036
|
+
discountFixed?: number | null;
|
|
2037
|
+
discountPercentage?: number | null;
|
|
2038
|
+
discountStartAt?: number | null;
|
|
2039
|
+
priceDiff: number;
|
|
2040
|
+
quantity: number;
|
|
2041
|
+
sku?: string | null;
|
|
2042
|
+
seller: {
|
|
2043
|
+
__typename?: 'Seller';
|
|
2044
|
+
id: string;
|
|
2045
|
+
name: string;
|
|
2046
|
+
description?: string | null;
|
|
2047
|
+
active: boolean;
|
|
2048
|
+
orderNumber: number;
|
|
2049
|
+
slug: string;
|
|
2050
|
+
rating?: number | null;
|
|
2051
|
+
verified: boolean;
|
|
2052
|
+
createdAt: any;
|
|
2053
|
+
updatedAt: any;
|
|
2054
|
+
};
|
|
2055
|
+
stock: {
|
|
2056
|
+
__typename?: 'ProductVariantStock';
|
|
2057
|
+
quantity: number;
|
|
2058
|
+
seller: Array<{
|
|
2059
|
+
__typename?: 'Seller';
|
|
2060
|
+
id: string;
|
|
2061
|
+
name: string;
|
|
2062
|
+
description?: string | null;
|
|
2063
|
+
active: boolean;
|
|
2064
|
+
orderNumber: number;
|
|
2065
|
+
slug: string;
|
|
2066
|
+
rating?: number | null;
|
|
2067
|
+
verified: boolean;
|
|
2068
|
+
createdAt: any;
|
|
2069
|
+
updatedAt: any;
|
|
2070
|
+
}>;
|
|
2071
|
+
};
|
|
2072
|
+
}>;
|
|
1765
2073
|
};
|
|
1766
2074
|
export type InfiniteProductsQueryVariables = Exact<{
|
|
1767
2075
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1770,6 +2078,11 @@ export type InfiniteProductsQueryVariables = Exact<{
|
|
|
1770
2078
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
1771
2079
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
1772
2080
|
sort?: InputMaybe<Array<ProductSort> | ProductSort>;
|
|
2081
|
+
withCategory?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2082
|
+
withBrand?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2083
|
+
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2084
|
+
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2085
|
+
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1773
2086
|
}>;
|
|
1774
2087
|
export type InfiniteProductsQuery = {
|
|
1775
2088
|
__typename?: 'Query';
|
|
@@ -1781,7 +2094,158 @@ export type InfiniteProductsQuery = {
|
|
|
1781
2094
|
node: {
|
|
1782
2095
|
__typename?: 'Product';
|
|
1783
2096
|
id: string;
|
|
2097
|
+
active: boolean;
|
|
2098
|
+
condition: ProductCondition;
|
|
2099
|
+
content?: string | null;
|
|
2100
|
+
createdAt: any;
|
|
2101
|
+
description?: string | null;
|
|
2102
|
+
featured: boolean;
|
|
2103
|
+
maxOrderQty?: boolean | null;
|
|
2104
|
+
metaDescription?: boolean | null;
|
|
2105
|
+
metaKeywords?: boolean | null;
|
|
2106
|
+
metaTitle?: boolean | null;
|
|
2107
|
+
minOrderQty?: boolean | null;
|
|
1784
2108
|
name: string;
|
|
2109
|
+
price: number;
|
|
2110
|
+
slug: string;
|
|
2111
|
+
soldCount: number;
|
|
2112
|
+
status: ProductStatus;
|
|
2113
|
+
todayDeal: boolean;
|
|
2114
|
+
type: ProductType;
|
|
2115
|
+
updatedAt: any;
|
|
2116
|
+
views: number;
|
|
2117
|
+
warrantyDescription?: string | null;
|
|
2118
|
+
warrantyTime?: string | null;
|
|
2119
|
+
warrantyType?: string | null;
|
|
2120
|
+
category?: {
|
|
2121
|
+
__typename?: 'Category';
|
|
2122
|
+
id: string;
|
|
2123
|
+
name: string;
|
|
2124
|
+
description?: string | null;
|
|
2125
|
+
slug: string;
|
|
2126
|
+
createdAt: any;
|
|
2127
|
+
updatedAt: any;
|
|
2128
|
+
names?: Array<{
|
|
2129
|
+
__typename?: 'LocalizedText';
|
|
2130
|
+
locale: string;
|
|
2131
|
+
value: string;
|
|
2132
|
+
}> | null;
|
|
2133
|
+
} | null;
|
|
2134
|
+
brand?: {
|
|
2135
|
+
__typename?: 'Brand';
|
|
2136
|
+
id: string;
|
|
2137
|
+
name: string;
|
|
2138
|
+
active?: boolean | null;
|
|
2139
|
+
description?: string | null;
|
|
2140
|
+
orderNumber: number;
|
|
2141
|
+
slug: string;
|
|
2142
|
+
logo?: {
|
|
2143
|
+
__typename?: 'File';
|
|
2144
|
+
url?: string | null;
|
|
2145
|
+
} | null;
|
|
2146
|
+
} | null;
|
|
2147
|
+
variants?: Array<{
|
|
2148
|
+
__typename?: 'ProductVariant';
|
|
2149
|
+
active?: boolean | null;
|
|
2150
|
+
default: boolean;
|
|
2151
|
+
id: string;
|
|
2152
|
+
attributes: Array<{
|
|
2153
|
+
__typename?: 'ProductVariantAttribute';
|
|
2154
|
+
value: string;
|
|
2155
|
+
attribute: {
|
|
2156
|
+
__typename?: 'Attribute';
|
|
2157
|
+
active: boolean;
|
|
2158
|
+
createdAt: any;
|
|
2159
|
+
id: string;
|
|
2160
|
+
name: string;
|
|
2161
|
+
type: string;
|
|
2162
|
+
updatedAt: any;
|
|
2163
|
+
values?: Array<{
|
|
2164
|
+
__typename?: 'AttributeValue';
|
|
2165
|
+
default: boolean;
|
|
2166
|
+
name: string;
|
|
2167
|
+
}> | null;
|
|
2168
|
+
};
|
|
2169
|
+
}>;
|
|
2170
|
+
sellers: Array<{
|
|
2171
|
+
__typename?: 'ProductVariantSeller';
|
|
2172
|
+
active?: boolean | null;
|
|
2173
|
+
barcode?: string | null;
|
|
2174
|
+
discountEndAt?: number | null;
|
|
2175
|
+
discountFixed?: number | null;
|
|
2176
|
+
discountPercentage?: number | null;
|
|
2177
|
+
discountStartAt?: number | null;
|
|
2178
|
+
priceDiff: number;
|
|
2179
|
+
quantity: number;
|
|
2180
|
+
sku?: string | null;
|
|
2181
|
+
seller: {
|
|
2182
|
+
__typename?: 'Seller';
|
|
2183
|
+
id: string;
|
|
2184
|
+
name: string;
|
|
2185
|
+
description?: string | null;
|
|
2186
|
+
active: boolean;
|
|
2187
|
+
orderNumber: number;
|
|
2188
|
+
slug: string;
|
|
2189
|
+
rating?: number | null;
|
|
2190
|
+
verified: boolean;
|
|
2191
|
+
createdAt: any;
|
|
2192
|
+
updatedAt: any;
|
|
2193
|
+
};
|
|
2194
|
+
stock: {
|
|
2195
|
+
__typename?: 'ProductVariantStock';
|
|
2196
|
+
quantity: number;
|
|
2197
|
+
seller: Array<{
|
|
2198
|
+
__typename?: 'Seller';
|
|
2199
|
+
id: string;
|
|
2200
|
+
name: string;
|
|
2201
|
+
description?: string | null;
|
|
2202
|
+
active: boolean;
|
|
2203
|
+
orderNumber: number;
|
|
2204
|
+
slug: string;
|
|
2205
|
+
rating?: number | null;
|
|
2206
|
+
verified: boolean;
|
|
2207
|
+
createdAt: any;
|
|
2208
|
+
updatedAt: any;
|
|
2209
|
+
}>;
|
|
2210
|
+
};
|
|
2211
|
+
}>;
|
|
2212
|
+
}>;
|
|
2213
|
+
thumbnail?: {
|
|
2214
|
+
__typename?: 'File';
|
|
2215
|
+
createdAt: any;
|
|
2216
|
+
id: string;
|
|
2217
|
+
name: string;
|
|
2218
|
+
size?: number | null;
|
|
2219
|
+
status: FileStatusEnum;
|
|
2220
|
+
type?: string | null;
|
|
2221
|
+
updatedAt: any;
|
|
2222
|
+
url?: string | null;
|
|
2223
|
+
thumbnails: {
|
|
2224
|
+
__typename?: 'FileThumbnails';
|
|
2225
|
+
thumbnail450Url?: string | null;
|
|
2226
|
+
thumbnail900Url?: string | null;
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
files?: Array<{
|
|
2230
|
+
__typename?: 'ProductFile';
|
|
2231
|
+
type: ProductFileType;
|
|
2232
|
+
file: {
|
|
2233
|
+
__typename?: 'File';
|
|
2234
|
+
createdAt: any;
|
|
2235
|
+
id: string;
|
|
2236
|
+
name: string;
|
|
2237
|
+
size?: number | null;
|
|
2238
|
+
status: FileStatusEnum;
|
|
2239
|
+
type?: string | null;
|
|
2240
|
+
updatedAt: any;
|
|
2241
|
+
url?: string | null;
|
|
2242
|
+
thumbnails: {
|
|
2243
|
+
__typename?: 'FileThumbnails';
|
|
2244
|
+
thumbnail450Url?: string | null;
|
|
2245
|
+
thumbnail900Url?: string | null;
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
}>;
|
|
1785
2249
|
};
|
|
1786
2250
|
}>;
|
|
1787
2251
|
pageInfo: {
|
|
@@ -1798,6 +2262,11 @@ export type PaginatedProductsQueryVariables = Exact<{
|
|
|
1798
2262
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1799
2263
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
1800
2264
|
sort?: InputMaybe<Array<ProductSort> | ProductSort>;
|
|
2265
|
+
withCategory?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2266
|
+
withBrand?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2267
|
+
withVariant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2268
|
+
withThumbnail?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2269
|
+
withFiles?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1801
2270
|
}>;
|
|
1802
2271
|
export type PaginatedProductsQuery = {
|
|
1803
2272
|
__typename?: 'Query';
|
|
@@ -1809,7 +2278,158 @@ export type PaginatedProductsQuery = {
|
|
|
1809
2278
|
node: {
|
|
1810
2279
|
__typename?: 'Product';
|
|
1811
2280
|
id: string;
|
|
2281
|
+
active: boolean;
|
|
2282
|
+
condition: ProductCondition;
|
|
2283
|
+
content?: string | null;
|
|
2284
|
+
createdAt: any;
|
|
2285
|
+
description?: string | null;
|
|
2286
|
+
featured: boolean;
|
|
2287
|
+
maxOrderQty?: boolean | null;
|
|
2288
|
+
metaDescription?: boolean | null;
|
|
2289
|
+
metaKeywords?: boolean | null;
|
|
2290
|
+
metaTitle?: boolean | null;
|
|
2291
|
+
minOrderQty?: boolean | null;
|
|
1812
2292
|
name: string;
|
|
2293
|
+
price: number;
|
|
2294
|
+
slug: string;
|
|
2295
|
+
soldCount: number;
|
|
2296
|
+
status: ProductStatus;
|
|
2297
|
+
todayDeal: boolean;
|
|
2298
|
+
type: ProductType;
|
|
2299
|
+
updatedAt: any;
|
|
2300
|
+
views: number;
|
|
2301
|
+
warrantyDescription?: string | null;
|
|
2302
|
+
warrantyTime?: string | null;
|
|
2303
|
+
warrantyType?: string | null;
|
|
2304
|
+
category?: {
|
|
2305
|
+
__typename?: 'Category';
|
|
2306
|
+
id: string;
|
|
2307
|
+
name: string;
|
|
2308
|
+
description?: string | null;
|
|
2309
|
+
slug: string;
|
|
2310
|
+
createdAt: any;
|
|
2311
|
+
updatedAt: any;
|
|
2312
|
+
names?: Array<{
|
|
2313
|
+
__typename?: 'LocalizedText';
|
|
2314
|
+
locale: string;
|
|
2315
|
+
value: string;
|
|
2316
|
+
}> | null;
|
|
2317
|
+
} | null;
|
|
2318
|
+
brand?: {
|
|
2319
|
+
__typename?: 'Brand';
|
|
2320
|
+
id: string;
|
|
2321
|
+
name: string;
|
|
2322
|
+
active?: boolean | null;
|
|
2323
|
+
description?: string | null;
|
|
2324
|
+
orderNumber: number;
|
|
2325
|
+
slug: string;
|
|
2326
|
+
logo?: {
|
|
2327
|
+
__typename?: 'File';
|
|
2328
|
+
url?: string | null;
|
|
2329
|
+
} | null;
|
|
2330
|
+
} | null;
|
|
2331
|
+
variants?: Array<{
|
|
2332
|
+
__typename?: 'ProductVariant';
|
|
2333
|
+
active?: boolean | null;
|
|
2334
|
+
default: boolean;
|
|
2335
|
+
id: string;
|
|
2336
|
+
attributes: Array<{
|
|
2337
|
+
__typename?: 'ProductVariantAttribute';
|
|
2338
|
+
value: string;
|
|
2339
|
+
attribute: {
|
|
2340
|
+
__typename?: 'Attribute';
|
|
2341
|
+
active: boolean;
|
|
2342
|
+
createdAt: any;
|
|
2343
|
+
id: string;
|
|
2344
|
+
name: string;
|
|
2345
|
+
type: string;
|
|
2346
|
+
updatedAt: any;
|
|
2347
|
+
values?: Array<{
|
|
2348
|
+
__typename?: 'AttributeValue';
|
|
2349
|
+
default: boolean;
|
|
2350
|
+
name: string;
|
|
2351
|
+
}> | null;
|
|
2352
|
+
};
|
|
2353
|
+
}>;
|
|
2354
|
+
sellers: Array<{
|
|
2355
|
+
__typename?: 'ProductVariantSeller';
|
|
2356
|
+
active?: boolean | null;
|
|
2357
|
+
barcode?: string | null;
|
|
2358
|
+
discountEndAt?: number | null;
|
|
2359
|
+
discountFixed?: number | null;
|
|
2360
|
+
discountPercentage?: number | null;
|
|
2361
|
+
discountStartAt?: number | null;
|
|
2362
|
+
priceDiff: number;
|
|
2363
|
+
quantity: number;
|
|
2364
|
+
sku?: string | null;
|
|
2365
|
+
seller: {
|
|
2366
|
+
__typename?: 'Seller';
|
|
2367
|
+
id: string;
|
|
2368
|
+
name: string;
|
|
2369
|
+
description?: string | null;
|
|
2370
|
+
active: boolean;
|
|
2371
|
+
orderNumber: number;
|
|
2372
|
+
slug: string;
|
|
2373
|
+
rating?: number | null;
|
|
2374
|
+
verified: boolean;
|
|
2375
|
+
createdAt: any;
|
|
2376
|
+
updatedAt: any;
|
|
2377
|
+
};
|
|
2378
|
+
stock: {
|
|
2379
|
+
__typename?: 'ProductVariantStock';
|
|
2380
|
+
quantity: number;
|
|
2381
|
+
seller: Array<{
|
|
2382
|
+
__typename?: 'Seller';
|
|
2383
|
+
id: string;
|
|
2384
|
+
name: string;
|
|
2385
|
+
description?: string | null;
|
|
2386
|
+
active: boolean;
|
|
2387
|
+
orderNumber: number;
|
|
2388
|
+
slug: string;
|
|
2389
|
+
rating?: number | null;
|
|
2390
|
+
verified: boolean;
|
|
2391
|
+
createdAt: any;
|
|
2392
|
+
updatedAt: any;
|
|
2393
|
+
}>;
|
|
2394
|
+
};
|
|
2395
|
+
}>;
|
|
2396
|
+
}>;
|
|
2397
|
+
thumbnail?: {
|
|
2398
|
+
__typename?: 'File';
|
|
2399
|
+
createdAt: any;
|
|
2400
|
+
id: string;
|
|
2401
|
+
name: string;
|
|
2402
|
+
size?: number | null;
|
|
2403
|
+
status: FileStatusEnum;
|
|
2404
|
+
type?: string | null;
|
|
2405
|
+
updatedAt: any;
|
|
2406
|
+
url?: string | null;
|
|
2407
|
+
thumbnails: {
|
|
2408
|
+
__typename?: 'FileThumbnails';
|
|
2409
|
+
thumbnail450Url?: string | null;
|
|
2410
|
+
thumbnail900Url?: string | null;
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
files?: Array<{
|
|
2414
|
+
__typename?: 'ProductFile';
|
|
2415
|
+
type: ProductFileType;
|
|
2416
|
+
file: {
|
|
2417
|
+
__typename?: 'File';
|
|
2418
|
+
createdAt: any;
|
|
2419
|
+
id: string;
|
|
2420
|
+
name: string;
|
|
2421
|
+
size?: number | null;
|
|
2422
|
+
status: FileStatusEnum;
|
|
2423
|
+
type?: string | null;
|
|
2424
|
+
updatedAt: any;
|
|
2425
|
+
url?: string | null;
|
|
2426
|
+
thumbnails: {
|
|
2427
|
+
__typename?: 'FileThumbnails';
|
|
2428
|
+
thumbnail450Url?: string | null;
|
|
2429
|
+
thumbnail900Url?: string | null;
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
}>;
|
|
1813
2433
|
};
|
|
1814
2434
|
}>;
|
|
1815
2435
|
pageInfo: {
|
|
@@ -1830,7 +2450,29 @@ export type ProductQuery = {
|
|
|
1830
2450
|
product?: Array<{
|
|
1831
2451
|
__typename?: 'Product';
|
|
1832
2452
|
id: string;
|
|
2453
|
+
active: boolean;
|
|
2454
|
+
condition: ProductCondition;
|
|
2455
|
+
content?: string | null;
|
|
2456
|
+
createdAt: any;
|
|
2457
|
+
description?: string | null;
|
|
2458
|
+
featured: boolean;
|
|
2459
|
+
maxOrderQty?: boolean | null;
|
|
2460
|
+
metaDescription?: boolean | null;
|
|
2461
|
+
metaKeywords?: boolean | null;
|
|
2462
|
+
metaTitle?: boolean | null;
|
|
2463
|
+
minOrderQty?: boolean | null;
|
|
1833
2464
|
name: string;
|
|
2465
|
+
price: number;
|
|
2466
|
+
slug: string;
|
|
2467
|
+
soldCount: number;
|
|
2468
|
+
status: ProductStatus;
|
|
2469
|
+
todayDeal: boolean;
|
|
2470
|
+
type: ProductType;
|
|
2471
|
+
updatedAt: any;
|
|
2472
|
+
views: number;
|
|
2473
|
+
warrantyDescription?: string | null;
|
|
2474
|
+
warrantyTime?: string | null;
|
|
2475
|
+
warrantyType?: string | null;
|
|
1834
2476
|
}> | null;
|
|
1835
2477
|
};
|
|
1836
2478
|
export type CreateProductMutationVariables = Exact<{
|
|
@@ -1841,7 +2483,29 @@ export type CreateProductMutation = {
|
|
|
1841
2483
|
createProduct: {
|
|
1842
2484
|
__typename?: 'Product';
|
|
1843
2485
|
id: string;
|
|
2486
|
+
active: boolean;
|
|
2487
|
+
condition: ProductCondition;
|
|
2488
|
+
content?: string | null;
|
|
2489
|
+
createdAt: any;
|
|
2490
|
+
description?: string | null;
|
|
2491
|
+
featured: boolean;
|
|
2492
|
+
maxOrderQty?: boolean | null;
|
|
2493
|
+
metaDescription?: boolean | null;
|
|
2494
|
+
metaKeywords?: boolean | null;
|
|
2495
|
+
metaTitle?: boolean | null;
|
|
2496
|
+
minOrderQty?: boolean | null;
|
|
1844
2497
|
name: string;
|
|
2498
|
+
price: number;
|
|
2499
|
+
slug: string;
|
|
2500
|
+
soldCount: number;
|
|
2501
|
+
status: ProductStatus;
|
|
2502
|
+
todayDeal: boolean;
|
|
2503
|
+
type: ProductType;
|
|
2504
|
+
updatedAt: any;
|
|
2505
|
+
views: number;
|
|
2506
|
+
warrantyDescription?: string | null;
|
|
2507
|
+
warrantyTime?: string | null;
|
|
2508
|
+
warrantyType?: string | null;
|
|
1845
2509
|
};
|
|
1846
2510
|
};
|
|
1847
2511
|
export type UpdateProductMutationVariables = Exact<{
|
|
@@ -1853,7 +2517,29 @@ export type UpdateProductMutation = {
|
|
|
1853
2517
|
updateProduct: {
|
|
1854
2518
|
__typename?: 'Product';
|
|
1855
2519
|
id: string;
|
|
2520
|
+
active: boolean;
|
|
2521
|
+
condition: ProductCondition;
|
|
2522
|
+
content?: string | null;
|
|
2523
|
+
createdAt: any;
|
|
2524
|
+
description?: string | null;
|
|
2525
|
+
featured: boolean;
|
|
2526
|
+
maxOrderQty?: boolean | null;
|
|
2527
|
+
metaDescription?: boolean | null;
|
|
2528
|
+
metaKeywords?: boolean | null;
|
|
2529
|
+
metaTitle?: boolean | null;
|
|
2530
|
+
minOrderQty?: boolean | null;
|
|
1856
2531
|
name: string;
|
|
2532
|
+
price: number;
|
|
2533
|
+
slug: string;
|
|
2534
|
+
soldCount: number;
|
|
2535
|
+
status: ProductStatus;
|
|
2536
|
+
todayDeal: boolean;
|
|
2537
|
+
type: ProductType;
|
|
2538
|
+
updatedAt: any;
|
|
2539
|
+
views: number;
|
|
2540
|
+
warrantyDescription?: string | null;
|
|
2541
|
+
warrantyTime?: string | null;
|
|
2542
|
+
warrantyType?: string | null;
|
|
1857
2543
|
};
|
|
1858
2544
|
};
|
|
1859
2545
|
export type DeleteProductMutationVariables = Exact<{
|
|
@@ -2041,6 +2727,9 @@ export declare const MetricFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
|
2041
2727
|
export declare const OrderFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2042
2728
|
export declare const ProductFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2043
2729
|
export declare const SellerFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2730
|
+
export declare const ProductVariantStockFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2731
|
+
export declare const ProductVariantSellerFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2732
|
+
export declare const ProductVariantFragmentFragmentDoc: import("graphql").DocumentNode;
|
|
2044
2733
|
export declare const InfiniteAttributesDocument: import("graphql").DocumentNode;
|
|
2045
2734
|
export declare const PaginatedAttributesDocument: import("graphql").DocumentNode;
|
|
2046
2735
|
export declare const InfiniteBrandsDocument: import("graphql").DocumentNode;
|