@gem-sdk/core 1.41.0-staging.13 → 1.41.0-staging.18

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.
@@ -74,11 +74,28 @@ const getProductQueryAll = async (fetcher, arg)=>{
74
74
  },
75
75
  where: {
76
76
  status: 'ACTIVE',
77
- ...arg
77
+ ...arg,
78
+ or: [
79
+ {
80
+ hasProductTags: false
81
+ },
82
+ {
83
+ hasProductTagsWith: [
84
+ {
85
+ hasTagsWith: [
86
+ {
87
+ nameNotIn: [
88
+ "bogos-gift"
89
+ ]
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
95
+ ]
78
96
  }
79
97
  };
80
- const pageData = await fetchProducts(fetcher, variables);
81
- return pageData;
98
+ return fetchProducts(fetcher, variables);
82
99
  };
83
100
  const fetchProducts = async (fetcher, variables)=>{
84
101
  return fetcher([
@@ -122,7 +139,25 @@ const loopFetchProducts = async (fetcher, { ids, isSample, isStorefront, default
122
139
  },
123
140
  ...ids?.length ? {
124
141
  baseIDIn: ids
125
- } : {}
142
+ } : {},
143
+ or: [
144
+ {
145
+ hasProductTags: false
146
+ },
147
+ {
148
+ hasProductTagsWith: [
149
+ {
150
+ hasTagsWith: [
151
+ {
152
+ nameNotIn: [
153
+ "bogos-gift"
154
+ ]
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ }
160
+ ]
126
161
  },
127
162
  after: productAfterFetcher
128
163
  };
@@ -72,11 +72,28 @@ const getProductQueryAll = async (fetcher, arg)=>{
72
72
  },
73
73
  where: {
74
74
  status: 'ACTIVE',
75
- ...arg
75
+ ...arg,
76
+ or: [
77
+ {
78
+ hasProductTags: false
79
+ },
80
+ {
81
+ hasProductTagsWith: [
82
+ {
83
+ hasTagsWith: [
84
+ {
85
+ nameNotIn: [
86
+ "bogos-gift"
87
+ ]
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ }
93
+ ]
76
94
  }
77
95
  };
78
- const pageData = await fetchProducts(fetcher, variables);
79
- return pageData;
96
+ return fetchProducts(fetcher, variables);
80
97
  };
81
98
  const fetchProducts = async (fetcher, variables)=>{
82
99
  return fetcher([
@@ -120,7 +137,25 @@ const loopFetchProducts = async (fetcher, { ids, isSample, isStorefront, default
120
137
  },
121
138
  ...ids?.length ? {
122
139
  baseIDIn: ids
123
- } : {}
140
+ } : {},
141
+ or: [
142
+ {
143
+ hasProductTags: false
144
+ },
145
+ {
146
+ hasProductTagsWith: [
147
+ {
148
+ hasTagsWith: [
149
+ {
150
+ nameNotIn: [
151
+ "bogos-gift"
152
+ ]
153
+ }
154
+ ]
155
+ }
156
+ ]
157
+ }
158
+ ]
124
159
  },
125
160
  after: productAfterFetcher
126
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.41.0-staging.13",
3
+ "version": "1.41.0-staging.18",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.41.0-staging.13",
31
- "@gem-sdk/styles": "1.41.0-staging.13"
30
+ "@gem-sdk/adapter-shopify": "1.41.0-staging.18",
31
+ "@gem-sdk/styles": "1.41.0-staging.18"
32
32
  },
33
33
  "dependencies": {
34
34
  "react-error-boundary": "4.0.10",