@evenicanpm/storefront-graphql-codegen 1.2.0 → 1.3.0

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/codegen.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { CodegenConfig } from "@graphql-codegen/cli";
2
2
 
3
3
  const config: CodegenConfig = {
4
- schema: "https://api.e4.local/graphql",
4
+ schema: `${process.env.NEXT_PUBLIC_E4_API_ENDPOINT}/graphql`,
5
5
  documents: [
6
6
  "./documents/**/*.ts",
7
7
  "!./documents/core/**",
@@ -1,5 +1,5 @@
1
- import { Product } from "@evenicanpm/e4-shared-client-graphql/Product/interfaces";
2
1
  import { Address } from "@evenicanpm/e4-shared-client-graphql/Address/interfaces";
2
+ import { Product } from "@evenicanpm/e4-shared-client-graphql/Product/interfaces";
3
3
 
4
4
  export interface Image {
5
5
  id: string;
@@ -1,4 +1,4 @@
1
- import { Category, Breadcrumb } from "../Category/interfaces";
1
+ import { Breadcrumb, Category } from "../Category/interfaces";
2
2
 
3
3
  export interface Product {
4
4
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { gql } from "graphql-request";
2
2
 
3
- import { CART_FRAGMENT_MD, CART_FRAGMENT_LG } from "../Cart/fragments";
3
+ import { CART_FRAGMENT_LG, CART_FRAGMENT_MD } from "../Cart/fragments";
4
4
 
5
5
  export const SESSION_FRAGMENT_XS = gql`
6
6
  fragment SessionFragmentXS on Session {
@@ -1,6 +1,6 @@
1
1
  import { gql } from "graphql-request";
2
2
 
3
- import { SESSION_FRAGMENT_XS, SESSION_FRAGMENT_SM } from "./fragments";
3
+ import { SESSION_FRAGMENT_SM, SESSION_FRAGMENT_XS } from "./fragments";
4
4
 
5
5
  const SESSION_LOGIN_XS = gql`
6
6
  ${SESSION_FRAGMENT_XS}
@@ -56,9 +56,6 @@ const DELETE_SEARCH_WORD_SYNONYM = gql`
56
56
  mutation deleteSearchWordSynonym($id: ID!) {
57
57
  deleteSearchWordSynonym(id: $id) {
58
58
  id
59
- searchWordId
60
- synonym
61
- status
62
59
  }
63
60
  }
64
61
  `;
@@ -87,7 +87,6 @@ export const SAMPLE_DATA_LIST_LG_PN = gql`
87
87
 
88
88
  // ENDLESS
89
89
  export const SAMPLE_DATA_LIST_XS_EL = gql`
90
- <<<<<<< HEAD
91
90
  ${PAGE_INFO_ENDLESS}
92
91
  ${SAMPLE_DATA_FRAGMENT_XS}
93
92
  query e4SampleDataListXS_Endless(
@@ -161,73 +160,4 @@ export const SAMPLE_DATA_LIST_LG_EL = gql`
161
160
  }
162
161
  }
163
162
  }
164
- =======
165
- ${PAGE_INFO_ENDLESS}
166
- ${SAMPLE_DATA_FRAGMENT_XS}
167
- query e4SampleDataListXS_Endless($input: SampleDataInputList, $withExtendedFields: Boolean = false) {
168
- sampleDataList(input: $input, withExtendedFields: $withExtendedFields) {
169
- recordCount
170
- pageInfo {
171
- ...PageInfoEndless
172
- }
173
- nodes {
174
- ...SampleDataFragmentXS
175
- }
176
- }
177
- }
178
- `;
179
-
180
- export const SAMPLE_DATA_LIST_SM_EL = gql`
181
- ${PAGE_INFO_ENDLESS}
182
- ${SAMPLE_DATA_FRAGMENT_SM}
183
- query e4SampleDataListSM_Endless(
184
- $input: SampleDataInputList
185
- $withExtendedFields: Boolean = false
186
- ) {
187
- sampleDataList(input: $input, withExtendedFields: $withExtendedFields) {
188
- recordCount
189
- pageInfo {
190
- ...PageInfoEndless
191
- }
192
- nodes {
193
- ...SampleDataFragmentSM
194
- }
195
- }
196
- }
197
- `;
198
-
199
- export const SAMPLE_DATA_LIST_MD_EL = gql`
200
- ${PAGE_INFO_ENDLESS}
201
- ${SAMPLE_DATA_FRAGMENT_MD}
202
- query e4SampleDataListMD_Endless(
203
- $input: SampleDataInputList
204
- $withExtendedFields: Boolean = false
205
- ) {
206
- sampleDataList(input: $input, withExtendedFields: $withExtendedFields) {
207
- recordCount
208
- pageInfo {
209
- ...PageInfoEndless
210
- }
211
- nodes {
212
- ...SampleDataFragmentMD
213
- }
214
- }
215
- }
216
- `;
217
-
218
- export const SAMPLE_DATA_LIST_LG_EL = gql`
219
- ${PAGE_INFO_ENDLESS}
220
- ${SAMPLE_DATA_FRAGMENT_LG}
221
- query e4SampleDataListLG_Endless($input: SampleDataInputList, $withExtendedFields: Boolean = false) {
222
- sampleDataList(input: $input, withExtendedFields: $withExtendedFields) {
223
- recordCount
224
- pageInfo {
225
- ...PageInfoEndless
226
- }
227
- nodes {
228
- ...SampleDataFragmentLG
229
- }
230
- }
231
- }
232
- >>>>>>> develop
233
163
  `;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@evenicanpm/storefront-graphql-codegen",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
7
7
  "license": "ISC",
8
- "gitHead": "6a95e9f84f48a7e1e96bfdf4ee1a766a7d8808b6",
8
+ "gitHead": "074f33378006dfc21ceb49456806a18dbb6e91ad",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1",
11
11
  "codegen:insecure": "NODE_TLS_REJECT_UNAUTHORIZED=0 npm run codegen",
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "ESNext",
5
+ "moduleResolution": "node",
6
+
7
+ "esModuleInterop": true,
8
+ "allowSyntheticDefaultImports": true,
9
+
10
+ "strict": false,
11
+ "skipLibCheck": true,
12
+
13
+ "noEmit": true,
14
+ "types": ["node"]
15
+ },
16
+ "include": ["codegen.ts", "documents/**/*.ts"]
17
+ }