@evenicanpm/storefront-graphql-codegen 1.2.1 → 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 +1 -1
- package/documents/Cart/interfaces.ts +1 -1
- package/documents/Product/interfaces.ts +1 -1
- package/documents/Session/fragments.ts +1 -1
- package/documents/Session/login.ts +1 -1
- package/documents/core/SampleData/list.ts +0 -70
- package/package.json +2 -2
- package/tsconfig.json +17 -0
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:
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
|
-
import {
|
|
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 {
|
|
@@ -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.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
|
-
"gitHead": "
|
|
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
|
+
}
|