@evenicanpm/storefront-graphql-codegen 1.3.0 → 1.4.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/documents/Catalog/interfaces.ts +11 -11
- package/documents/Catalog/list.ts +0 -1
- package/documents/Catalog/read.ts +0 -1
- package/documents/Catalog/statusList.ts +0 -1
- package/documents/Order/fragments.ts +1 -2
- package/documents/Order/list.ts +0 -2
- package/documents/Product/interfaces.ts +2 -4
- package/documents/Product/read.ts +1 -16
- package/documents/Session/fragments.ts +1 -1
- package/documents/Settings/SystemInformation/interfaces.ts +8 -8
- package/documents/Settings/settingsGroup.ts +6 -6
- package/documents/User/interfaces.ts +2 -3
- package/documents/WishList/fragments.ts +0 -2
- package/documents/WishList/interfaces.ts +1 -1
- package/package.json +2 -2
- package/documents/ServerCache/productIndex.ts +0 -11
|
@@ -8,27 +8,27 @@ export interface Category {
|
|
|
8
8
|
id?: any;
|
|
9
9
|
rootId?: any;
|
|
10
10
|
parentId?: any;
|
|
11
|
-
name?:
|
|
12
|
-
displayName?:
|
|
13
|
-
code?:
|
|
11
|
+
name?: string;
|
|
12
|
+
displayName?: string;
|
|
13
|
+
code?: string;
|
|
14
14
|
tier?: any;
|
|
15
15
|
isLink?: any;
|
|
16
16
|
categoryStatus?: any;
|
|
17
|
-
extendedFields?:
|
|
17
|
+
extendedFields?: string;
|
|
18
18
|
sort?: any;
|
|
19
|
-
breadcrumbs?:
|
|
20
|
-
breadcrumbIds?:
|
|
21
|
-
seoCrumb?:
|
|
22
|
-
created?:
|
|
19
|
+
breadcrumbs?: string;
|
|
20
|
+
breadcrumbIds?: string;
|
|
21
|
+
seoCrumb?: string;
|
|
22
|
+
created?: string;
|
|
23
23
|
count?: any;
|
|
24
24
|
hasChildren?: any;
|
|
25
25
|
children?: [Category];
|
|
26
|
-
_action?:
|
|
26
|
+
_action?: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export interface
|
|
29
|
+
export interface DeleteItemFromCategoryInput {
|
|
30
30
|
categoryId?: any;
|
|
31
31
|
productId?: any;
|
|
32
32
|
sort?: any;
|
|
33
|
-
_action?:
|
|
33
|
+
_action?: string;
|
|
34
34
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
|
-
|
|
3
|
-
import { PRODUCT_FRAGMENT_MD, PRODUCT_FRAGMENT_LG } from "../Product/fragments";
|
|
2
|
+
import { PRODUCT_FRAGMENT_LG } from "../Product/fragments";
|
|
4
3
|
import { ADDRESS_FRAGMENT } from "../Address/fragments";
|
|
5
4
|
|
|
6
5
|
export const ORDER_FRAGMENT_XS = gql`
|
package/documents/Order/list.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { Category } from "../Category/interfaces";
|
|
2
|
+
export type { Category, Breadcrumb } from "../Category/interfaces";
|
|
3
3
|
export interface Product {
|
|
4
4
|
id: string;
|
|
5
5
|
code?: string;
|
|
@@ -41,5 +41,3 @@ export interface Product {
|
|
|
41
41
|
uom?: any;
|
|
42
42
|
isInWishList?: boolean;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
export type { Category, Breadcrumb };
|
|
@@ -3,8 +3,7 @@ import {
|
|
|
3
3
|
PRODUCT_FRAGMENT_XS,
|
|
4
4
|
PRODUCT_FRAGMENT_SM,
|
|
5
5
|
PRODUCT_FRAGMENT_MD,
|
|
6
|
-
PRODUCT_FRAGMENT_LG
|
|
7
|
-
REVIEW_FRAGMENT,
|
|
6
|
+
PRODUCT_FRAGMENT_LG
|
|
8
7
|
} from "./fragments";
|
|
9
8
|
|
|
10
9
|
const PRODUCT_READ_XS = gql`
|
|
@@ -54,17 +53,3 @@ const PRODUCT_READ_LG = gql`
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
`;
|
|
57
|
-
|
|
58
|
-
// const PRODUCT_READ_W_REVIEWS = gql`
|
|
59
|
-
// ${PRODUCT_FRAGMENT_MD}
|
|
60
|
-
// ${REVIEW_FRAGMENT}
|
|
61
|
-
// query e4ProductReadMD(
|
|
62
|
-
// $id: String!
|
|
63
|
-
// $productLookupType: ProductLookupType! = CODE
|
|
64
|
-
// ) {
|
|
65
|
-
// product(id: $id, productLookupType: $productLookupType) {
|
|
66
|
-
// ...ProductFragmentMD
|
|
67
|
-
// ...ProductReview
|
|
68
|
-
// }
|
|
69
|
-
// }
|
|
70
|
-
// `;
|
|
@@ -5,12 +5,12 @@ export interface App {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export interface Plugin {
|
|
8
|
-
description:
|
|
9
|
-
displayName:
|
|
10
|
-
icon:
|
|
11
|
-
npmPackageName:
|
|
12
|
-
provider:
|
|
13
|
-
required:
|
|
14
|
-
version:
|
|
15
|
-
launchedAt:
|
|
8
|
+
description: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
npmPackageName: string;
|
|
12
|
+
provider: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
version: string;
|
|
15
|
+
launchedAt: string;
|
|
16
16
|
}
|
|
@@ -162,7 +162,7 @@ const SELECTED_THEME = gql`
|
|
|
162
162
|
`;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
* Currently using Developer created interfaces for datachecking
|
|
166
166
|
* Upgrade to generated types
|
|
167
167
|
*/
|
|
168
168
|
|
|
@@ -173,7 +173,7 @@ export interface SettingGroup {
|
|
|
173
173
|
settings: Settings;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
export interface
|
|
176
|
+
export interface SettingsGroup {
|
|
177
177
|
code: string;
|
|
178
178
|
id: string;
|
|
179
179
|
name: string;
|
|
@@ -205,13 +205,13 @@ export interface SettingData {
|
|
|
205
205
|
themeListList?: ThemeInputBase[];
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
export interface
|
|
208
|
+
export interface GetAllOrderAddressTypes {
|
|
209
209
|
id: string;
|
|
210
210
|
displayName: string;
|
|
211
211
|
name: string;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
export interface
|
|
214
|
+
export interface GetAllOrderTransactStatus {
|
|
215
215
|
id: string;
|
|
216
216
|
code: string;
|
|
217
217
|
name: string;
|
|
@@ -224,7 +224,7 @@ export interface TransactStatus {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
export interface TransactStatusEdge {
|
|
227
|
-
cursor:
|
|
227
|
+
cursor: string;
|
|
228
228
|
node: TransactStatus;
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -235,7 +235,7 @@ export interface TransactStatusWrapper {
|
|
|
235
235
|
recordCount: number;
|
|
236
236
|
}
|
|
237
237
|
export interface AddressTypeEdge {
|
|
238
|
-
cursor:
|
|
238
|
+
cursor: string;
|
|
239
239
|
node: any;
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Address } from "../Address";
|
|
1
|
+
import type { Address } from "../Address";
|
|
2
|
+
export type { Address } from "../Address";
|
|
2
3
|
|
|
3
4
|
export interface Me {
|
|
4
5
|
id: string;
|
|
@@ -25,5 +26,3 @@ export interface RegistrationInput {
|
|
|
25
26
|
address?: Address | null;
|
|
26
27
|
orderNumber?: string | null;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
export type { Address };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evenicanpm/storefront-graphql-codegen",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
8
|
-
"gitHead": "
|
|
8
|
+
"gitHead": "0614726ec6b7ce9564706514a6b756b390a13e96",
|
|
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",
|