@gem-sdk/core 1.5.4 → 1.5.7

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.
@@ -4,7 +4,6 @@ const ProductOptionValueSelect = `
4
4
  fragment ProductOptionValueSelect on ProductOptionValue {
5
5
  id
6
6
  label
7
- sortOrder
8
7
  isDefault
9
8
  baseID
10
9
  }
@@ -5,6 +5,7 @@ const StorePropertyDocument = `
5
5
  storeProperty {
6
6
  favicon
7
7
  swatchesConfig
8
+ primaryDomain
8
9
  }
9
10
  }
10
11
  `;
@@ -13,7 +13,7 @@ const props = (strings, ...keys) => {
13
13
  for (const attr in props) {
14
14
  if (Object.hasOwnProperty.call(props, attr)) {
15
15
  const val = props[attr];
16
- if (typeof val === 'string') {
16
+ if (!['symbol', 'object', 'function'].includes(typeof val)) {
17
17
  if (val) {
18
18
  propsArr.push(`${attr}="${val}"`);
19
19
  }
@@ -2,7 +2,6 @@ const ProductOptionValueSelect = `
2
2
  fragment ProductOptionValueSelect on ProductOptionValue {
3
3
  id
4
4
  label
5
- sortOrder
6
5
  isDefault
7
6
  baseID
8
7
  }
@@ -3,6 +3,7 @@ const StorePropertyDocument = `
3
3
  storeProperty {
4
4
  favicon
5
5
  swatchesConfig
6
+ primaryDomain
6
7
  }
7
8
  }
8
9
  `;
@@ -11,7 +11,7 @@ const props = (strings, ...keys) => {
11
11
  for (const attr in props) {
12
12
  if (Object.hasOwnProperty.call(props, attr)) {
13
13
  const val = props[attr];
14
- if (typeof val === 'string') {
14
+ if (!['symbol', 'object', 'function'].includes(typeof val)) {
15
15
  if (val) {
16
16
  propsArr.push(`${attr}="${val}"`);
17
17
  }
@@ -3945,6 +3945,7 @@ type ProductOption = {
3945
3945
  id: Scalars['ID'];
3946
3946
  name?: Maybe<Scalars['String']>;
3947
3947
  optionType?: Maybe<Scalars['String']>;
3948
+ position?: Maybe<Scalars['Int']>;
3948
3949
  values: Array<ProductOptionValue>;
3949
3950
  };
3950
3951
  type ProductOptionPlatform = 'BIG' | 'SHOPIFY' | 'WOO';
@@ -3956,7 +3957,7 @@ type ProductOptionValue = {
3956
3957
  isDefault?: Maybe<Scalars['Boolean']>;
3957
3958
  label?: Maybe<Scalars['String']>;
3958
3959
  platform?: Maybe<ProductOptionValuePlatform>;
3959
- sortOrder?: Maybe<Scalars['Float']>;
3960
+ position?: Maybe<Scalars['Int']>;
3960
3961
  updatedAt?: Maybe<Scalars['Time']>;
3961
3962
  };
3962
3963
  type ProductOptionValuePlatform = 'BIG' | 'SHOPIFY' | 'WOO';
@@ -4068,15 +4069,17 @@ type ProductOptionValueWhereInput = {
4068
4069
  platformUpdatedAtNEQ?: InputMaybe<Scalars['Time']>;
4069
4070
  platformUpdatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
4070
4071
  platformUpdatedAtNotNil?: InputMaybe<Scalars['Boolean']>;
4071
- /** sort_order field predicates */
4072
- sortOrder?: InputMaybe<Scalars['Float']>;
4073
- sortOrderGT?: InputMaybe<Scalars['Float']>;
4074
- sortOrderGTE?: InputMaybe<Scalars['Float']>;
4075
- sortOrderIn?: InputMaybe<Array<Scalars['Float']>>;
4076
- sortOrderLT?: InputMaybe<Scalars['Float']>;
4077
- sortOrderLTE?: InputMaybe<Scalars['Float']>;
4078
- sortOrderNEQ?: InputMaybe<Scalars['Float']>;
4079
- sortOrderNotIn?: InputMaybe<Array<Scalars['Float']>>;
4072
+ /** position field predicates */
4073
+ position?: InputMaybe<Scalars['Int']>;
4074
+ positionGT?: InputMaybe<Scalars['Int']>;
4075
+ positionGTE?: InputMaybe<Scalars['Int']>;
4076
+ positionIn?: InputMaybe<Array<Scalars['Int']>>;
4077
+ positionIsNil?: InputMaybe<Scalars['Boolean']>;
4078
+ positionLT?: InputMaybe<Scalars['Int']>;
4079
+ positionLTE?: InputMaybe<Scalars['Int']>;
4080
+ positionNEQ?: InputMaybe<Scalars['Int']>;
4081
+ positionNotIn?: InputMaybe<Array<Scalars['Int']>>;
4082
+ positionNotNil?: InputMaybe<Scalars['Boolean']>;
4080
4083
  /** updated_at field predicates */
4081
4084
  updatedAt?: InputMaybe<Scalars['Time']>;
4082
4085
  updatedAtGT?: InputMaybe<Scalars['Time']>;
@@ -4204,6 +4207,17 @@ type ProductOptionWhereInput = {
4204
4207
  platformUpdatedAtNEQ?: InputMaybe<Scalars['Time']>;
4205
4208
  platformUpdatedAtNotIn?: InputMaybe<Array<Scalars['Time']>>;
4206
4209
  platformUpdatedAtNotNil?: InputMaybe<Scalars['Boolean']>;
4210
+ /** position field predicates */
4211
+ position?: InputMaybe<Scalars['Int']>;
4212
+ positionGT?: InputMaybe<Scalars['Int']>;
4213
+ positionGTE?: InputMaybe<Scalars['Int']>;
4214
+ positionIn?: InputMaybe<Array<Scalars['Int']>>;
4215
+ positionIsNil?: InputMaybe<Scalars['Boolean']>;
4216
+ positionLT?: InputMaybe<Scalars['Int']>;
4217
+ positionLTE?: InputMaybe<Scalars['Int']>;
4218
+ positionNEQ?: InputMaybe<Scalars['Int']>;
4219
+ positionNotIn?: InputMaybe<Array<Scalars['Int']>>;
4220
+ positionNotNil?: InputMaybe<Scalars['Boolean']>;
4207
4221
  /** product_id field predicates */
4208
4222
  productID?: InputMaybe<Scalars['ID']>;
4209
4223
  productIDIn?: InputMaybe<Array<Scalars['ID']>>;
@@ -5484,7 +5498,7 @@ type PublishedThemePageMetaWhereInput = {
5484
5498
  };
5485
5499
  type PublishedThemePageOnlineStoreData = {
5486
5500
  id: Scalars['ID'];
5487
- onlineStoreObjectIDs?: Maybe<Array<Scalars['ID']>>;
5501
+ onlineStoreObjectBaseIDs?: Maybe<Array<Scalars['String']>>;
5488
5502
  publishedThemePage?: Maybe<PublishedThemePage>;
5489
5503
  type: PublishedThemePageOnlineStoreDataType;
5490
5504
  };
@@ -5983,6 +5997,7 @@ type ShopTokenWhereInput = {
5983
5997
  };
5984
5998
  type StoreProperty = {
5985
5999
  favicon: Scalars['String'];
6000
+ primaryDomain?: Maybe<Scalars['String']>;
5986
6001
  swatchesConfig: Scalars['String'];
5987
6002
  };
5988
6003
  type TagType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'PRODUCT';
@@ -6730,7 +6745,7 @@ type CollectionProductSelectFragment = Pick<Collection$1, 'id' | 'baseID' | 'tit
6730
6745
  pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
6731
6746
  }>;
6732
6747
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
6733
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
6748
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
6734
6749
  }>>;
6735
6750
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
6736
6751
  }>;
@@ -6742,7 +6757,7 @@ type CollectionProductSelectFragment = Pick<Collection$1, 'id' | 'baseID' | 'tit
6742
6757
  type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'averageRating' | 'baseID' | 'description' | 'sku' | 'vendor'> & {
6743
6758
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
6744
6759
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
6745
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
6760
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
6746
6761
  }>>;
6747
6762
  variants?: Maybe<{
6748
6763
  edges: Array<{
@@ -6801,7 +6816,7 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
6801
6816
  pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
6802
6817
  }>;
6803
6818
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
6804
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
6819
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
6805
6820
  }>>;
6806
6821
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
6807
6822
  };
@@ -6960,7 +6975,7 @@ type CollectionDetailFilterQueryResponse = {
6960
6975
  pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
6961
6976
  }>;
6962
6977
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
6963
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
6978
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
6964
6979
  }>>;
6965
6980
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
6966
6981
  }>;
@@ -7003,7 +7018,7 @@ type CollectionQueryResponse = {
7003
7018
  pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
7004
7019
  }>;
7005
7020
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
7006
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
7021
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
7007
7022
  }>>;
7008
7023
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
7009
7024
  }>;
@@ -7060,7 +7075,7 @@ type ProductsQueryResponse = {
7060
7075
  pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
7061
7076
  }>;
7062
7077
  options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
7063
- values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'sortOrder' | 'isDefault' | 'baseID'>>;
7078
+ values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
7064
7079
  }>>;
7065
7080
  featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
7066
7081
  }>;
@@ -7074,9 +7089,9 @@ type StorePropertyQueryVariables = Exact<{
7074
7089
  [key: string]: never;
7075
7090
  }>;
7076
7091
  type StorePropertyQueryResponse = {
7077
- storeProperty?: Maybe<Pick<StoreProperty, 'favicon' | 'swatchesConfig'>>;
7092
+ storeProperty?: Maybe<Pick<StoreProperty, 'favicon' | 'swatchesConfig' | 'primaryDomain'>>;
7078
7093
  };
7079
- declare const StorePropertyDocument = "\n query storeProperty {\n storeProperty {\n favicon\n swatchesConfig\n }\n}\n ";
7094
+ declare const StorePropertyDocument = "\n query storeProperty {\n storeProperty {\n favicon\n swatchesConfig\n primaryDomain\n }\n}\n ";
7080
7095
 
7081
7096
  type PreviewPageQueryVariables = Exact<{
7082
7097
  handleURL?: InputMaybe<Scalars['String']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.5.4",
3
+ "version": "1.5.7",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",