@gem-sdk/core 1.9.39 → 1.9.41

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