@gem-sdk/core 1.9.39 → 1.9.42
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/cjs/graphql/queries/product-variants.generated.js +2 -2
- package/dist/cjs/helpers/queries/get-product-by-slug.js +6 -2
- package/dist/cjs/helpers/queries/get-product.js +6 -2
- package/dist/esm/graphql/queries/product-variants.generated.js +2 -2
- package/dist/esm/helpers/queries/get-product-by-slug.js +6 -2
- package/dist/esm/helpers/queries/get-product.js +6 -2
- package/dist/types/index.d.ts +212 -37
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ var selectedOption_generated = require('../fragments/selected-option.generated.j
|
|
|
5
5
|
var media_generated = require('../fragments/media.generated.js');
|
|
6
6
|
|
|
7
7
|
const ProductVariantsDocument = `
|
|
8
|
-
query productVariants($firstVariant: Int = 100, $afterVariant: Cursor, $orderBy: ProductOrder, $where: ProductWhereInput, $first: Int = 1) {
|
|
8
|
+
query productVariants($firstVariant: Int = 100, $afterVariant: Cursor, $orderBy: ProductOrder, $orderByVariant: ProductVariantOrder, $where: ProductWhereInput, $first: Int = 1) {
|
|
9
9
|
variants: products(first: $first, orderBy: $orderBy, where: $where) {
|
|
10
10
|
edges {
|
|
11
11
|
node {
|
|
12
12
|
id
|
|
13
|
-
variants(first: $firstVariant, after: $afterVariant) {
|
|
13
|
+
variants(first: $firstVariant, after: $afterVariant, orderBy: $orderByVariant) {
|
|
14
14
|
edges {
|
|
15
15
|
cursor
|
|
16
16
|
node {
|
|
@@ -24,8 +24,8 @@ const getProductBySlug = async (fetcher, slug)=>{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const orderBy = {
|
|
27
|
-
field: '
|
|
28
|
-
direction: '
|
|
27
|
+
field: 'PLATFORM_UPDATED_AT',
|
|
28
|
+
direction: 'DESC'
|
|
29
29
|
};
|
|
30
30
|
const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
31
31
|
const variables = {
|
|
@@ -47,6 +47,10 @@ const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
|
47
47
|
const fetchVariants = async (fetcher, handle, isStorefront)=>{
|
|
48
48
|
const initVariables = {
|
|
49
49
|
orderBy,
|
|
50
|
+
orderByVariant: {
|
|
51
|
+
field: 'POSITION',
|
|
52
|
+
direction: 'ASC'
|
|
53
|
+
},
|
|
50
54
|
where: {
|
|
51
55
|
status: 'ACTIVE',
|
|
52
56
|
handle,
|
|
@@ -36,8 +36,8 @@ const getProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
const orderBy = {
|
|
39
|
-
field: '
|
|
40
|
-
direction: '
|
|
39
|
+
field: 'PLATFORM_UPDATED_AT',
|
|
40
|
+
direction: 'DESC'
|
|
41
41
|
};
|
|
42
42
|
const fetchProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
43
43
|
const variables = {
|
|
@@ -71,6 +71,10 @@ const fetchVariants = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
71
71
|
...id && id.toLowerCase() !== 'latest' && {
|
|
72
72
|
baseID: id
|
|
73
73
|
}
|
|
74
|
+
},
|
|
75
|
+
orderByVariant: {
|
|
76
|
+
field: 'POSITION',
|
|
77
|
+
direction: 'ASC'
|
|
74
78
|
}
|
|
75
79
|
};
|
|
76
80
|
const query = async (variables, olds)=>{
|
|
@@ -3,12 +3,12 @@ import { SelectedOptionSelect } from '../fragments/selected-option.generated.js'
|
|
|
3
3
|
import { MediaSelect } from '../fragments/media.generated.js';
|
|
4
4
|
|
|
5
5
|
const ProductVariantsDocument = `
|
|
6
|
-
query productVariants($firstVariant: Int = 100, $afterVariant: Cursor, $orderBy: ProductOrder, $where: ProductWhereInput, $first: Int = 1) {
|
|
6
|
+
query productVariants($firstVariant: Int = 100, $afterVariant: Cursor, $orderBy: ProductOrder, $orderByVariant: ProductVariantOrder, $where: ProductWhereInput, $first: Int = 1) {
|
|
7
7
|
variants: products(first: $first, orderBy: $orderBy, where: $where) {
|
|
8
8
|
edges {
|
|
9
9
|
node {
|
|
10
10
|
id
|
|
11
|
-
variants(first: $firstVariant, after: $afterVariant) {
|
|
11
|
+
variants(first: $firstVariant, after: $afterVariant, orderBy: $orderByVariant) {
|
|
12
12
|
edges {
|
|
13
13
|
cursor
|
|
14
14
|
node {
|
|
@@ -22,8 +22,8 @@ const getProductBySlug = async (fetcher, slug)=>{
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
const orderBy = {
|
|
25
|
-
field: '
|
|
26
|
-
direction: '
|
|
25
|
+
field: 'PLATFORM_UPDATED_AT',
|
|
26
|
+
direction: 'DESC'
|
|
27
27
|
};
|
|
28
28
|
const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
29
29
|
const variables = {
|
|
@@ -45,6 +45,10 @@ const fetchProduct = async (fetcher, handle, isStorefront)=>{
|
|
|
45
45
|
const fetchVariants = async (fetcher, handle, isStorefront)=>{
|
|
46
46
|
const initVariables = {
|
|
47
47
|
orderBy,
|
|
48
|
+
orderByVariant: {
|
|
49
|
+
field: 'POSITION',
|
|
50
|
+
direction: 'ASC'
|
|
51
|
+
},
|
|
48
52
|
where: {
|
|
49
53
|
status: 'ACTIVE',
|
|
50
54
|
handle,
|
|
@@ -34,8 +34,8 @@ const getProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
const orderBy = {
|
|
37
|
-
field: '
|
|
38
|
-
direction: '
|
|
37
|
+
field: 'PLATFORM_UPDATED_AT',
|
|
38
|
+
direction: 'DESC'
|
|
39
39
|
};
|
|
40
40
|
const fetchProduct = async (fetcher, { id , isSample , isStorefront })=>{
|
|
41
41
|
const variables = {
|
|
@@ -69,6 +69,10 @@ const fetchVariants = async (fetcher, { id , isSample , isStorefront })=>{
|
|
|
69
69
|
...id && id.toLowerCase() !== 'latest' && {
|
|
70
70
|
baseID: id
|
|
71
71
|
}
|
|
72
|
+
},
|
|
73
|
+
orderByVariant: {
|
|
74
|
+
field: 'POSITION',
|
|
75
|
+
direction: 'ASC'
|
|
72
76
|
}
|
|
73
77
|
};
|
|
74
78
|
const query = async (variables, olds)=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -881,6 +881,7 @@ type ControlUI = {
|
|
|
881
881
|
options?: {
|
|
882
882
|
label?: 'medium' | 'large';
|
|
883
883
|
info?: 'near' | 'far';
|
|
884
|
+
spacing?: string;
|
|
884
885
|
hideOnDevices?: {
|
|
885
886
|
desktop?: boolean;
|
|
886
887
|
tablet?: boolean;
|
|
@@ -1017,6 +1018,40 @@ type ArticleOrder = {
|
|
|
1017
1018
|
};
|
|
1018
1019
|
type ArticleOrderField = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
1019
1020
|
type ArticlePlatform = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
1021
|
+
/**
|
|
1022
|
+
* ArticleTagWhereInput is used for filtering ArticleTag objects.
|
|
1023
|
+
* Input was generated by ent.
|
|
1024
|
+
*/
|
|
1025
|
+
type ArticleTagWhereInput = {
|
|
1026
|
+
and?: InputMaybe<Array<ArticleTagWhereInput>>;
|
|
1027
|
+
/** article_id field predicates */
|
|
1028
|
+
articleID?: InputMaybe<Scalars['ID']>;
|
|
1029
|
+
articleIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1030
|
+
articleIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
1031
|
+
articleIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1032
|
+
/** article edge predicates */
|
|
1033
|
+
hasArticle?: InputMaybe<Scalars['Boolean']>;
|
|
1034
|
+
hasArticleWith?: InputMaybe<Array<ArticleWhereInput>>;
|
|
1035
|
+
/** tags edge predicates */
|
|
1036
|
+
hasTags?: InputMaybe<Scalars['Boolean']>;
|
|
1037
|
+
hasTagsWith?: InputMaybe<Array<TagWhereInput>>;
|
|
1038
|
+
/** id field predicates */
|
|
1039
|
+
id?: InputMaybe<Scalars['ID']>;
|
|
1040
|
+
idGT?: InputMaybe<Scalars['ID']>;
|
|
1041
|
+
idGTE?: InputMaybe<Scalars['ID']>;
|
|
1042
|
+
idIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1043
|
+
idLT?: InputMaybe<Scalars['ID']>;
|
|
1044
|
+
idLTE?: InputMaybe<Scalars['ID']>;
|
|
1045
|
+
idNEQ?: InputMaybe<Scalars['ID']>;
|
|
1046
|
+
idNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1047
|
+
not?: InputMaybe<ArticleTagWhereInput>;
|
|
1048
|
+
or?: InputMaybe<Array<ArticleTagWhereInput>>;
|
|
1049
|
+
/** tag_id field predicates */
|
|
1050
|
+
tagID?: InputMaybe<Scalars['ID']>;
|
|
1051
|
+
tagIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1052
|
+
tagIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
1053
|
+
tagIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1054
|
+
};
|
|
1020
1055
|
/**
|
|
1021
1056
|
* ArticleWhereInput is used for filtering Article objects.
|
|
1022
1057
|
* Input was generated by ent.
|
|
@@ -1037,17 +1072,6 @@ type ArticleWhereInput = {
|
|
|
1037
1072
|
baseIDLTE?: InputMaybe<Scalars['String']>;
|
|
1038
1073
|
baseIDNEQ?: InputMaybe<Scalars['String']>;
|
|
1039
1074
|
baseIDNotIn?: InputMaybe<Array<Scalars['String']>>;
|
|
1040
|
-
/** base_updated_at field predicates */
|
|
1041
|
-
baseUpdatedAt?: InputMaybe<Scalars['Time']>;
|
|
1042
|
-
baseUpdatedAtGT?: InputMaybe<Scalars['Time']>;
|
|
1043
|
-
baseUpdatedAtGTE?: InputMaybe<Scalars['Time']>;
|
|
1044
|
-
baseUpdatedAtIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
1045
|
-
baseUpdatedAtIsNil?: InputMaybe<Scalars['Boolean']>;
|
|
1046
|
-
baseUpdatedAtLT?: InputMaybe<Scalars['Time']>;
|
|
1047
|
-
baseUpdatedAtLTE?: InputMaybe<Scalars['Time']>;
|
|
1048
|
-
baseUpdatedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
1049
|
-
baseUpdatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
1050
|
-
baseUpdatedAtNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
1051
1075
|
/** created_at field predicates */
|
|
1052
1076
|
createdAt?: InputMaybe<Scalars['Time']>;
|
|
1053
1077
|
createdAtGT?: InputMaybe<Scalars['Time']>;
|
|
@@ -1101,9 +1125,9 @@ type ArticleWhereInput = {
|
|
|
1101
1125
|
/** article_blogs edge predicates */
|
|
1102
1126
|
hasArticleBlogs?: InputMaybe<Scalars['Boolean']>;
|
|
1103
1127
|
hasArticleBlogsWith?: InputMaybe<Array<ArticleBlogWhereInput>>;
|
|
1104
|
-
/**
|
|
1105
|
-
|
|
1106
|
-
|
|
1128
|
+
/** article_tags edge predicates */
|
|
1129
|
+
hasArticleTags?: InputMaybe<Scalars['Boolean']>;
|
|
1130
|
+
hasArticleTagsWith?: InputMaybe<Array<ArticleTagWhereInput>>;
|
|
1107
1131
|
/** id field predicates */
|
|
1108
1132
|
id?: InputMaybe<Scalars['ID']>;
|
|
1109
1133
|
idGT?: InputMaybe<Scalars['ID']>;
|
|
@@ -1516,6 +1540,7 @@ type Collection = {
|
|
|
1516
1540
|
createdAt?: Maybe<Scalars['Time']>;
|
|
1517
1541
|
deletedAt?: Maybe<Scalars['Time']>;
|
|
1518
1542
|
description?: Maybe<Scalars['String']>;
|
|
1543
|
+
descriptionHtml?: Maybe<Scalars['String']>;
|
|
1519
1544
|
descriptionMeta?: Maybe<Scalars['String']>;
|
|
1520
1545
|
handle?: Maybe<Scalars['String']>;
|
|
1521
1546
|
id: Scalars['ID'];
|
|
@@ -1523,7 +1548,10 @@ type Collection = {
|
|
|
1523
1548
|
isStorefront?: Maybe<Scalars['Boolean']>;
|
|
1524
1549
|
metafield?: Maybe<Metafield>;
|
|
1525
1550
|
platform?: Maybe<CollectionPlatform>;
|
|
1551
|
+
platformCreatedAt?: Maybe<Scalars['Time']>;
|
|
1552
|
+
platformUpdatedAt?: Maybe<Scalars['Time']>;
|
|
1526
1553
|
products?: Maybe<ProductConnection>;
|
|
1554
|
+
publishedAt?: Maybe<Scalars['Time']>;
|
|
1527
1555
|
tags: Array<Scalars['String']>;
|
|
1528
1556
|
templateSuffix?: Maybe<Scalars['String']>;
|
|
1529
1557
|
title: Scalars['String'];
|
|
@@ -1793,7 +1821,7 @@ type CollectionOrder = {
|
|
|
1793
1821
|
direction: OrderDirection;
|
|
1794
1822
|
field?: InputMaybe<CollectionOrderField>;
|
|
1795
1823
|
};
|
|
1796
|
-
type CollectionOrderField = 'CREATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
1824
|
+
type CollectionOrderField = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'TITLE' | 'UPDATED_AT';
|
|
1797
1825
|
type CollectionPlatform = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
1798
1826
|
/**
|
|
1799
1827
|
* CollectionProductWhereInput is used for filtering CollectionProduct objects.
|
|
@@ -1823,6 +1851,17 @@ type CollectionProductWhereInput = {
|
|
|
1823
1851
|
idNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1824
1852
|
not?: InputMaybe<CollectionProductWhereInput>;
|
|
1825
1853
|
or?: InputMaybe<Array<CollectionProductWhereInput>>;
|
|
1854
|
+
/** position field predicates */
|
|
1855
|
+
position?: InputMaybe<Scalars['Int']>;
|
|
1856
|
+
positionGT?: InputMaybe<Scalars['Int']>;
|
|
1857
|
+
positionGTE?: InputMaybe<Scalars['Int']>;
|
|
1858
|
+
positionIn?: InputMaybe<Array<Scalars['Int']>>;
|
|
1859
|
+
positionIsNil?: InputMaybe<Scalars['Boolean']>;
|
|
1860
|
+
positionLT?: InputMaybe<Scalars['Int']>;
|
|
1861
|
+
positionLTE?: InputMaybe<Scalars['Int']>;
|
|
1862
|
+
positionNEQ?: InputMaybe<Scalars['Int']>;
|
|
1863
|
+
positionNotIn?: InputMaybe<Array<Scalars['Int']>>;
|
|
1864
|
+
positionNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
1826
1865
|
/** primary field predicates */
|
|
1827
1866
|
primary?: InputMaybe<Scalars['Boolean']>;
|
|
1828
1867
|
primaryIsNil?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -1834,6 +1873,40 @@ type CollectionProductWhereInput = {
|
|
|
1834
1873
|
productIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
1835
1874
|
productIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1836
1875
|
};
|
|
1876
|
+
/**
|
|
1877
|
+
* CollectionTagWhereInput is used for filtering CollectionTag objects.
|
|
1878
|
+
* Input was generated by ent.
|
|
1879
|
+
*/
|
|
1880
|
+
type CollectionTagWhereInput = {
|
|
1881
|
+
and?: InputMaybe<Array<CollectionTagWhereInput>>;
|
|
1882
|
+
/** collection_id field predicates */
|
|
1883
|
+
collectionID?: InputMaybe<Scalars['ID']>;
|
|
1884
|
+
collectionIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1885
|
+
collectionIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
1886
|
+
collectionIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1887
|
+
/** collection edge predicates */
|
|
1888
|
+
hasCollection?: InputMaybe<Scalars['Boolean']>;
|
|
1889
|
+
hasCollectionWith?: InputMaybe<Array<CollectionWhereInput>>;
|
|
1890
|
+
/** tags edge predicates */
|
|
1891
|
+
hasTags?: InputMaybe<Scalars['Boolean']>;
|
|
1892
|
+
hasTagsWith?: InputMaybe<Array<TagWhereInput>>;
|
|
1893
|
+
/** id field predicates */
|
|
1894
|
+
id?: InputMaybe<Scalars['ID']>;
|
|
1895
|
+
idGT?: InputMaybe<Scalars['ID']>;
|
|
1896
|
+
idGTE?: InputMaybe<Scalars['ID']>;
|
|
1897
|
+
idIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1898
|
+
idLT?: InputMaybe<Scalars['ID']>;
|
|
1899
|
+
idLTE?: InputMaybe<Scalars['ID']>;
|
|
1900
|
+
idNEQ?: InputMaybe<Scalars['ID']>;
|
|
1901
|
+
idNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1902
|
+
not?: InputMaybe<CollectionTagWhereInput>;
|
|
1903
|
+
or?: InputMaybe<Array<CollectionTagWhereInput>>;
|
|
1904
|
+
/** tag_id field predicates */
|
|
1905
|
+
tagID?: InputMaybe<Scalars['ID']>;
|
|
1906
|
+
tagIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1907
|
+
tagIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
1908
|
+
tagIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
1909
|
+
};
|
|
1837
1910
|
/**
|
|
1838
1911
|
* CollectionWhereInput is used for filtering Collection objects.
|
|
1839
1912
|
* Input was generated by ent.
|
|
@@ -1910,15 +1983,15 @@ type CollectionWhereInput = {
|
|
|
1910
1983
|
/** collection_products edge predicates */
|
|
1911
1984
|
hasCollectionProducts?: InputMaybe<Scalars['Boolean']>;
|
|
1912
1985
|
hasCollectionProductsWith?: InputMaybe<Array<CollectionProductWhereInput>>;
|
|
1986
|
+
/** collection_tags edge predicates */
|
|
1987
|
+
hasCollectionTags?: InputMaybe<Scalars['Boolean']>;
|
|
1988
|
+
hasCollectionTagsWith?: InputMaybe<Array<CollectionTagWhereInput>>;
|
|
1913
1989
|
/** entitled_price_rule edge predicates */
|
|
1914
1990
|
hasEntitledPriceRule?: InputMaybe<Scalars['Boolean']>;
|
|
1915
1991
|
hasEntitledPriceRuleWith?: InputMaybe<Array<EntitledPriceRuleWhereInput>>;
|
|
1916
1992
|
/** prerequisite_price_rule edge predicates */
|
|
1917
1993
|
hasPrerequisitePriceRule?: InputMaybe<Scalars['Boolean']>;
|
|
1918
1994
|
hasPrerequisitePriceRuleWith?: InputMaybe<Array<PrerequisitePriceRuleWhereInput>>;
|
|
1919
|
-
/** tags edge predicates */
|
|
1920
|
-
hasTags?: InputMaybe<Scalars['Boolean']>;
|
|
1921
|
-
hasTagsWith?: InputMaybe<Array<TagWhereInput>>;
|
|
1922
1995
|
/** id field predicates */
|
|
1923
1996
|
id?: InputMaybe<Scalars['ID']>;
|
|
1924
1997
|
idGT?: InputMaybe<Scalars['ID']>;
|
|
@@ -1965,6 +2038,17 @@ type CollectionWhereInput = {
|
|
|
1965
2038
|
platformUpdatedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
1966
2039
|
platformUpdatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
1967
2040
|
platformUpdatedAtNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
2041
|
+
/** published_at field predicates */
|
|
2042
|
+
publishedAt?: InputMaybe<Scalars['Time']>;
|
|
2043
|
+
publishedAtGT?: InputMaybe<Scalars['Time']>;
|
|
2044
|
+
publishedAtGTE?: InputMaybe<Scalars['Time']>;
|
|
2045
|
+
publishedAtIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
2046
|
+
publishedAtIsNil?: InputMaybe<Scalars['Boolean']>;
|
|
2047
|
+
publishedAtLT?: InputMaybe<Scalars['Time']>;
|
|
2048
|
+
publishedAtLTE?: InputMaybe<Scalars['Time']>;
|
|
2049
|
+
publishedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
2050
|
+
publishedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
2051
|
+
publishedAtNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
1968
2052
|
/** template_suffix field predicates */
|
|
1969
2053
|
templateSuffix?: InputMaybe<Scalars['String']>;
|
|
1970
2054
|
templateSuffixContains?: InputMaybe<Scalars['String']>;
|
|
@@ -4032,6 +4116,8 @@ type Product = {
|
|
|
4032
4116
|
minVariantPrice?: Maybe<Scalars['Float']>;
|
|
4033
4117
|
options?: Maybe<Array<ProductOption>>;
|
|
4034
4118
|
platform?: Maybe<ProductPlatform>;
|
|
4119
|
+
platformCreatedAt?: Maybe<Scalars['Time']>;
|
|
4120
|
+
platformUpdatedAt?: Maybe<Scalars['Time']>;
|
|
4035
4121
|
publishedAt?: Maybe<Scalars['Time']>;
|
|
4036
4122
|
reviewCount?: Maybe<Scalars['Int']>;
|
|
4037
4123
|
sellingPlanGroupCount?: Maybe<Scalars['Int']>;
|
|
@@ -4092,6 +4178,20 @@ type ProductOption = {
|
|
|
4092
4178
|
position?: Maybe<Scalars['Int']>;
|
|
4093
4179
|
values: Array<ProductOptionValue>;
|
|
4094
4180
|
};
|
|
4181
|
+
type ProductOptionConnection = {
|
|
4182
|
+
edges: Array<ProductOptionEdge>;
|
|
4183
|
+
pageInfo?: Maybe<PageInfo>;
|
|
4184
|
+
totalCount?: Maybe<Scalars['Int']>;
|
|
4185
|
+
};
|
|
4186
|
+
type ProductOptionEdge = {
|
|
4187
|
+
cursor: Scalars['Cursor'];
|
|
4188
|
+
node?: Maybe<ProductOption>;
|
|
4189
|
+
};
|
|
4190
|
+
type ProductOptionOrder = {
|
|
4191
|
+
direction: OrderDirection;
|
|
4192
|
+
field?: InputMaybe<ProductOptionOrderField>;
|
|
4193
|
+
};
|
|
4194
|
+
type ProductOptionOrderField = 'CREATED_AT' | 'UPDATED_AT';
|
|
4095
4195
|
type ProductOptionPlatform = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
4096
4196
|
type ProductOptionValue = {
|
|
4097
4197
|
baseID?: Maybe<Scalars['String']>;
|
|
@@ -4383,12 +4483,48 @@ type ProductOrder = {
|
|
|
4383
4483
|
direction: OrderDirection;
|
|
4384
4484
|
field?: InputMaybe<ProductOrderField>;
|
|
4385
4485
|
};
|
|
4386
|
-
type ProductOrderField = 'CREATED_AT' | 'PRICE' | 'TITLE' | 'UPDATED_AT';
|
|
4486
|
+
type ProductOrderField = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'PRICE' | 'TITLE' | 'UPDATED_AT';
|
|
4387
4487
|
type ProductPlatform = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
4488
|
+
/**
|
|
4489
|
+
* ProductTagWhereInput is used for filtering ProductTag objects.
|
|
4490
|
+
* Input was generated by ent.
|
|
4491
|
+
*/
|
|
4492
|
+
type ProductTagWhereInput = {
|
|
4493
|
+
and?: InputMaybe<Array<ProductTagWhereInput>>;
|
|
4494
|
+
/** product edge predicates */
|
|
4495
|
+
hasProduct?: InputMaybe<Scalars['Boolean']>;
|
|
4496
|
+
hasProductWith?: InputMaybe<Array<ProductWhereInput>>;
|
|
4497
|
+
/** tags edge predicates */
|
|
4498
|
+
hasTags?: InputMaybe<Scalars['Boolean']>;
|
|
4499
|
+
hasTagsWith?: InputMaybe<Array<TagWhereInput>>;
|
|
4500
|
+
/** id field predicates */
|
|
4501
|
+
id?: InputMaybe<Scalars['ID']>;
|
|
4502
|
+
idGT?: InputMaybe<Scalars['ID']>;
|
|
4503
|
+
idGTE?: InputMaybe<Scalars['ID']>;
|
|
4504
|
+
idIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4505
|
+
idLT?: InputMaybe<Scalars['ID']>;
|
|
4506
|
+
idLTE?: InputMaybe<Scalars['ID']>;
|
|
4507
|
+
idNEQ?: InputMaybe<Scalars['ID']>;
|
|
4508
|
+
idNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4509
|
+
not?: InputMaybe<ProductTagWhereInput>;
|
|
4510
|
+
or?: InputMaybe<Array<ProductTagWhereInput>>;
|
|
4511
|
+
/** product_id field predicates */
|
|
4512
|
+
productID?: InputMaybe<Scalars['ID']>;
|
|
4513
|
+
productIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4514
|
+
productIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
4515
|
+
productIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4516
|
+
/** tag_id field predicates */
|
|
4517
|
+
tagID?: InputMaybe<Scalars['ID']>;
|
|
4518
|
+
tagIDIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4519
|
+
tagIDNEQ?: InputMaybe<Scalars['ID']>;
|
|
4520
|
+
tagIDNotIn?: InputMaybe<Array<Scalars['ID']>>;
|
|
4521
|
+
};
|
|
4388
4522
|
type ProductVariant = {
|
|
4389
4523
|
barcode?: Maybe<Scalars['String']>;
|
|
4390
4524
|
baseID?: Maybe<Scalars['String']>;
|
|
4391
4525
|
costPrice?: Maybe<Scalars['Float']>;
|
|
4526
|
+
createdAt?: Maybe<Scalars['Time']>;
|
|
4527
|
+
deletedAt?: Maybe<Scalars['Time']>;
|
|
4392
4528
|
description?: Maybe<Scalars['String']>;
|
|
4393
4529
|
height?: Maybe<Scalars['Float']>;
|
|
4394
4530
|
id: Scalars['ID'];
|
|
@@ -4403,6 +4539,9 @@ type ProductVariant = {
|
|
|
4403
4539
|
mediaId: Scalars['ID'];
|
|
4404
4540
|
metafield?: Maybe<Metafield>;
|
|
4405
4541
|
platform?: Maybe<ProductVariantPlatform>;
|
|
4542
|
+
platformCreatedAt?: Maybe<Scalars['Time']>;
|
|
4543
|
+
platformUpdatedAt?: Maybe<Scalars['Time']>;
|
|
4544
|
+
position?: Maybe<Scalars['Int']>;
|
|
4406
4545
|
price?: Maybe<Scalars['Float']>;
|
|
4407
4546
|
product?: Maybe<Product>;
|
|
4408
4547
|
salePrice?: Maybe<Scalars['Float']>;
|
|
@@ -4410,6 +4549,7 @@ type ProductVariant = {
|
|
|
4410
4549
|
sku?: Maybe<Scalars['String']>;
|
|
4411
4550
|
soldIndividually?: Maybe<Scalars['Boolean']>;
|
|
4412
4551
|
title?: Maybe<Scalars['String']>;
|
|
4552
|
+
updatedAt?: Maybe<Scalars['Time']>;
|
|
4413
4553
|
weight?: Maybe<Scalars['Float']>;
|
|
4414
4554
|
width?: Maybe<Scalars['Float']>;
|
|
4415
4555
|
};
|
|
@@ -4430,7 +4570,7 @@ type ProductVariantOrder = {
|
|
|
4430
4570
|
direction: OrderDirection;
|
|
4431
4571
|
field?: InputMaybe<ProductVariantOrderField>;
|
|
4432
4572
|
};
|
|
4433
|
-
type ProductVariantOrderField = 'CREATED_AT' | 'UPDATED_AT';
|
|
4573
|
+
type ProductVariantOrderField = 'CREATED_AT' | 'PLATFORM_CREATED_AT' | 'PLATFORM_UPDATED_AT' | 'POSITION' | 'UPDATED_AT';
|
|
4434
4574
|
type ProductVariantPlatform = 'BIG' | 'SHOPIFY' | 'WOO';
|
|
4435
4575
|
/**
|
|
4436
4576
|
* ProductVariantWhereInput is used for filtering ProductVariant objects.
|
|
@@ -4644,6 +4784,17 @@ type ProductVariantWhereInput = {
|
|
|
4644
4784
|
platformUpdatedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
4645
4785
|
platformUpdatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
4646
4786
|
platformUpdatedAtNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
4787
|
+
/** position field predicates */
|
|
4788
|
+
position?: InputMaybe<Scalars['Int']>;
|
|
4789
|
+
positionGT?: InputMaybe<Scalars['Int']>;
|
|
4790
|
+
positionGTE?: InputMaybe<Scalars['Int']>;
|
|
4791
|
+
positionIn?: InputMaybe<Array<Scalars['Int']>>;
|
|
4792
|
+
positionIsNil?: InputMaybe<Scalars['Boolean']>;
|
|
4793
|
+
positionLT?: InputMaybe<Scalars['Int']>;
|
|
4794
|
+
positionLTE?: InputMaybe<Scalars['Int']>;
|
|
4795
|
+
positionNEQ?: InputMaybe<Scalars['Int']>;
|
|
4796
|
+
positionNotIn?: InputMaybe<Array<Scalars['Int']>>;
|
|
4797
|
+
positionNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
4647
4798
|
/** price field predicates */
|
|
4648
4799
|
price?: InputMaybe<Scalars['Float']>;
|
|
4649
4800
|
priceGT?: InputMaybe<Scalars['Float']>;
|
|
@@ -4858,9 +5009,9 @@ type ProductWhereInput = {
|
|
|
4858
5009
|
/** prerequisite_price_rule edge predicates */
|
|
4859
5010
|
hasPrerequisitePriceRule?: InputMaybe<Scalars['Boolean']>;
|
|
4860
5011
|
hasPrerequisitePriceRuleWith?: InputMaybe<Array<PrerequisitePriceRuleWhereInput>>;
|
|
4861
|
-
/**
|
|
4862
|
-
|
|
4863
|
-
|
|
5012
|
+
/** product_tags edge predicates */
|
|
5013
|
+
hasProductTags?: InputMaybe<Scalars['Boolean']>;
|
|
5014
|
+
hasProductTagsWith?: InputMaybe<Array<ProductTagWhereInput>>;
|
|
4864
5015
|
/** variants edge predicates */
|
|
4865
5016
|
hasVariants?: InputMaybe<Scalars['Boolean']>;
|
|
4866
5017
|
hasVariantsWith?: InputMaybe<Array<ProductVariantWhereInput>>;
|
|
@@ -5947,6 +6098,7 @@ type Query = {
|
|
|
5947
6098
|
pages?: Maybe<PageConnection>;
|
|
5948
6099
|
previewPage?: Maybe<PublishedThemePage>;
|
|
5949
6100
|
product?: Maybe<Product>;
|
|
6101
|
+
productOptions?: Maybe<ProductOptionConnection>;
|
|
5950
6102
|
products?: Maybe<ProductConnection>;
|
|
5951
6103
|
publishedThemePages?: Maybe<Array<Maybe<PublishedThemePage>>>;
|
|
5952
6104
|
storeProperty?: Maybe<StoreProperty>;
|
|
@@ -6030,6 +6182,14 @@ type QueryProductArgs = {
|
|
|
6030
6182
|
handle?: InputMaybe<Scalars['String']>;
|
|
6031
6183
|
id?: InputMaybe<Scalars['ID']>;
|
|
6032
6184
|
};
|
|
6185
|
+
type QueryProductOptionsArgs = {
|
|
6186
|
+
after?: InputMaybe<Scalars['Cursor']>;
|
|
6187
|
+
before?: InputMaybe<Scalars['Cursor']>;
|
|
6188
|
+
first?: InputMaybe<Scalars['Int']>;
|
|
6189
|
+
last?: InputMaybe<Scalars['Int']>;
|
|
6190
|
+
orderBy?: InputMaybe<ProductOptionOrder>;
|
|
6191
|
+
where?: InputMaybe<ProductOptionWhereInput>;
|
|
6192
|
+
};
|
|
6033
6193
|
type QueryProductsArgs = {
|
|
6034
6194
|
after?: InputMaybe<Scalars['Cursor']>;
|
|
6035
6195
|
before?: InputMaybe<Scalars['Cursor']>;
|
|
@@ -6173,18 +6333,15 @@ type TagWhereInput = {
|
|
|
6173
6333
|
deletedAtNEQ?: InputMaybe<Scalars['Time']>;
|
|
6174
6334
|
deletedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
|
|
6175
6335
|
deletedAtNotNil?: InputMaybe<Scalars['Boolean']>;
|
|
6176
|
-
/**
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
/**
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
/**
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
/** products edge predicates */
|
|
6186
|
-
hasProducts?: InputMaybe<Scalars['Boolean']>;
|
|
6187
|
-
hasProductsWith?: InputMaybe<Array<ProductWhereInput>>;
|
|
6336
|
+
/** article_tags edge predicates */
|
|
6337
|
+
hasArticleTags?: InputMaybe<Scalars['Boolean']>;
|
|
6338
|
+
hasArticleTagsWith?: InputMaybe<Array<ArticleTagWhereInput>>;
|
|
6339
|
+
/** collection_tags edge predicates */
|
|
6340
|
+
hasCollectionTags?: InputMaybe<Scalars['Boolean']>;
|
|
6341
|
+
hasCollectionTagsWith?: InputMaybe<Array<CollectionTagWhereInput>>;
|
|
6342
|
+
/** product_tags edge predicates */
|
|
6343
|
+
hasProductTags?: InputMaybe<Scalars['Boolean']>;
|
|
6344
|
+
hasProductTagsWith?: InputMaybe<Array<ProductTagWhereInput>>;
|
|
6188
6345
|
/** id field predicates */
|
|
6189
6346
|
id?: InputMaybe<Scalars['ID']>;
|
|
6190
6347
|
idGT?: InputMaybe<Scalars['ID']>;
|
|
@@ -6282,6 +6439,7 @@ type shop_ArticleMetafieldArgs = ArticleMetafieldArgs;
|
|
|
6282
6439
|
type shop_ArticleOrder = ArticleOrder;
|
|
6283
6440
|
type shop_ArticleOrderField = ArticleOrderField;
|
|
6284
6441
|
type shop_ArticlePlatform = ArticlePlatform;
|
|
6442
|
+
type shop_ArticleTagWhereInput = ArticleTagWhereInput;
|
|
6285
6443
|
type shop_ArticleWhereInput = ArticleWhereInput;
|
|
6286
6444
|
type shop_AttributeInput = AttributeInput;
|
|
6287
6445
|
type shop_Blog = Blog;
|
|
@@ -6315,6 +6473,7 @@ type shop_CollectionOrderField = CollectionOrderField;
|
|
|
6315
6473
|
type shop_CollectionPlatform = CollectionPlatform;
|
|
6316
6474
|
type shop_CollectionProductWhereInput = CollectionProductWhereInput;
|
|
6317
6475
|
type shop_CollectionProductsArgs = CollectionProductsArgs;
|
|
6476
|
+
type shop_CollectionTagWhereInput = CollectionTagWhereInput;
|
|
6318
6477
|
type shop_CollectionWhereInput = CollectionWhereInput;
|
|
6319
6478
|
type shop_CustomCode = CustomCode;
|
|
6320
6479
|
type shop_Customer = Customer;
|
|
@@ -6389,6 +6548,10 @@ type shop_ProductEdge = ProductEdge;
|
|
|
6389
6548
|
type shop_ProductMediasArgs = ProductMediasArgs;
|
|
6390
6549
|
type shop_ProductMetafieldArgs = ProductMetafieldArgs;
|
|
6391
6550
|
type shop_ProductOption = ProductOption;
|
|
6551
|
+
type shop_ProductOptionConnection = ProductOptionConnection;
|
|
6552
|
+
type shop_ProductOptionEdge = ProductOptionEdge;
|
|
6553
|
+
type shop_ProductOptionOrder = ProductOptionOrder;
|
|
6554
|
+
type shop_ProductOptionOrderField = ProductOptionOrderField;
|
|
6392
6555
|
type shop_ProductOptionPlatform = ProductOptionPlatform;
|
|
6393
6556
|
type shop_ProductOptionValue = ProductOptionValue;
|
|
6394
6557
|
type shop_ProductOptionValuePlatform = ProductOptionValuePlatform;
|
|
@@ -6397,6 +6560,7 @@ type shop_ProductOptionWhereInput = ProductOptionWhereInput;
|
|
|
6397
6560
|
type shop_ProductOrder = ProductOrder;
|
|
6398
6561
|
type shop_ProductOrderField = ProductOrderField;
|
|
6399
6562
|
type shop_ProductPlatform = ProductPlatform;
|
|
6563
|
+
type shop_ProductTagWhereInput = ProductTagWhereInput;
|
|
6400
6564
|
type shop_ProductVariant = ProductVariant;
|
|
6401
6565
|
type shop_ProductVariantConnection = ProductVariantConnection;
|
|
6402
6566
|
type shop_ProductVariantEdge = ProductVariantEdge;
|
|
@@ -6443,6 +6607,7 @@ type shop_QueryPageArgs = QueryPageArgs;
|
|
|
6443
6607
|
type shop_QueryPagesArgs = QueryPagesArgs;
|
|
6444
6608
|
type shop_QueryPreviewPageArgs = QueryPreviewPageArgs;
|
|
6445
6609
|
type shop_QueryProductArgs = QueryProductArgs;
|
|
6610
|
+
type shop_QueryProductOptionsArgs = QueryProductOptionsArgs;
|
|
6446
6611
|
type shop_QueryProductsArgs = QueryProductsArgs;
|
|
6447
6612
|
type shop_QueryPublishedThemePagesArgs = QueryPublishedThemePagesArgs;
|
|
6448
6613
|
type shop_Query_EntitiesArgs = Query_EntitiesArgs;
|
|
@@ -6467,6 +6632,7 @@ declare namespace shop {
|
|
|
6467
6632
|
shop_ArticleOrder as ArticleOrder,
|
|
6468
6633
|
shop_ArticleOrderField as ArticleOrderField,
|
|
6469
6634
|
shop_ArticlePlatform as ArticlePlatform,
|
|
6635
|
+
shop_ArticleTagWhereInput as ArticleTagWhereInput,
|
|
6470
6636
|
shop_ArticleWhereInput as ArticleWhereInput,
|
|
6471
6637
|
shop_AttributeInput as AttributeInput,
|
|
6472
6638
|
shop_Blog as Blog,
|
|
@@ -6500,6 +6666,7 @@ declare namespace shop {
|
|
|
6500
6666
|
shop_CollectionPlatform as CollectionPlatform,
|
|
6501
6667
|
shop_CollectionProductWhereInput as CollectionProductWhereInput,
|
|
6502
6668
|
shop_CollectionProductsArgs as CollectionProductsArgs,
|
|
6669
|
+
shop_CollectionTagWhereInput as CollectionTagWhereInput,
|
|
6503
6670
|
shop_CollectionWhereInput as CollectionWhereInput,
|
|
6504
6671
|
shop_CustomCode as CustomCode,
|
|
6505
6672
|
shop_Customer as Customer,
|
|
@@ -6572,6 +6739,10 @@ declare namespace shop {
|
|
|
6572
6739
|
shop_ProductMediasArgs as ProductMediasArgs,
|
|
6573
6740
|
shop_ProductMetafieldArgs as ProductMetafieldArgs,
|
|
6574
6741
|
shop_ProductOption as ProductOption,
|
|
6742
|
+
shop_ProductOptionConnection as ProductOptionConnection,
|
|
6743
|
+
shop_ProductOptionEdge as ProductOptionEdge,
|
|
6744
|
+
shop_ProductOptionOrder as ProductOptionOrder,
|
|
6745
|
+
shop_ProductOptionOrderField as ProductOptionOrderField,
|
|
6575
6746
|
shop_ProductOptionPlatform as ProductOptionPlatform,
|
|
6576
6747
|
shop_ProductOptionValue as ProductOptionValue,
|
|
6577
6748
|
shop_ProductOptionValuePlatform as ProductOptionValuePlatform,
|
|
@@ -6580,6 +6751,7 @@ declare namespace shop {
|
|
|
6580
6751
|
shop_ProductOrder as ProductOrder,
|
|
6581
6752
|
shop_ProductOrderField as ProductOrderField,
|
|
6582
6753
|
shop_ProductPlatform as ProductPlatform,
|
|
6754
|
+
shop_ProductTagWhereInput as ProductTagWhereInput,
|
|
6583
6755
|
shop_ProductVariant as ProductVariant,
|
|
6584
6756
|
shop_ProductVariantConnection as ProductVariantConnection,
|
|
6585
6757
|
shop_ProductVariantEdge as ProductVariantEdge,
|
|
@@ -6626,6 +6798,7 @@ declare namespace shop {
|
|
|
6626
6798
|
shop_QueryPagesArgs as QueryPagesArgs,
|
|
6627
6799
|
shop_QueryPreviewPageArgs as QueryPreviewPageArgs,
|
|
6628
6800
|
shop_QueryProductArgs as QueryProductArgs,
|
|
6801
|
+
shop_QueryProductOptionsArgs as QueryProductOptionsArgs,
|
|
6629
6802
|
shop_QueryProductsArgs as QueryProductsArgs,
|
|
6630
6803
|
shop_QueryPublishedThemePagesArgs as QueryPublishedThemePagesArgs,
|
|
6631
6804
|
shop_Query_EntitiesArgs as Query_EntitiesArgs,
|
|
@@ -7207,7 +7380,9 @@ type CollectionsQueryResponse = {
|
|
|
7207
7380
|
node?: Maybe<Pick<Collection, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
7208
7381
|
products?: Maybe<{
|
|
7209
7382
|
edges: Array<{
|
|
7210
|
-
node?: Maybe<Pick<Product, 'id' | 'title' | 'handle' | 'description' | 'status'
|
|
7383
|
+
node?: Maybe<Pick<Product, 'id' | 'title' | 'handle' | 'description' | 'status'> & {
|
|
7384
|
+
featuredImage?: Maybe<Pick<Media, 'src'>>;
|
|
7385
|
+
}>;
|
|
7211
7386
|
}>;
|
|
7212
7387
|
}>;
|
|
7213
7388
|
collectionMedia?: Maybe<Pick<CollectionMedia, 'src'>>;
|
|
@@ -7505,7 +7680,7 @@ type Options = {
|
|
|
7505
7680
|
declare const getStyleBackgroundByDevice: (background?: ObjectDevices<Background>, options?: Options) => {};
|
|
7506
7681
|
declare const composeBackgroundCss: (backgroundColor?: ColorValueType) => string;
|
|
7507
7682
|
|
|
7508
|
-
type OrderByType = 'TITLE_ASC' | 'TITLE_DESC' | 'CREATED_AT_ASC' |
|
|
7683
|
+
type OrderByType = 'TITLE_ASC' | 'TITLE_DESC' | 'CREATED_AT_ASC' | 'none' | 'CREATED_AT_DESC';
|
|
7509
7684
|
type FetchCollectionArgs = {
|
|
7510
7685
|
id?: string;
|
|
7511
7686
|
numberOfProducts?: number;
|