@evenicanpm/storefront-graphql-codegen 1.1.0 → 1.2.1
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 +20 -20
- package/documents/Account/interfaces.ts +89 -89
- package/documents/Address/interfaces.ts +30 -30
- package/documents/Cart/add.ts +4 -4
- package/documents/Cart/checkoutRead.ts +4 -4
- package/documents/Cart/deleteLine.ts +4 -4
- package/documents/Cart/interfaces.ts +36 -36
- package/documents/Cart/read.ts +4 -4
- package/documents/Cart/shippingMethodRead.ts +4 -4
- package/documents/Cart/shippingMethodUpdate.ts +4 -4
- package/documents/Cart/updateLine.ts +4 -4
- package/documents/Catalog/interfaces.ts +26 -26
- package/documents/Category/interfaces.ts +13 -13
- package/documents/Category/list.ts +4 -4
- package/documents/Order/interfaces.ts +22 -22
- package/documents/Order/list.ts +4 -4
- package/documents/Order/read.ts +4 -4
- package/documents/Product/interfaces.ts +39 -39
- package/documents/Product/list.ts +5 -5
- package/documents/Product/read.ts +5 -5
- package/documents/Product/search.ts +5 -5
- package/documents/Session/interfaces.ts +7 -7
- package/documents/Session/login.ts +22 -29
- package/documents/Session/read.ts +3 -3
- package/documents/Settings/SystemInformation/interfaces.ts +11 -11
- package/documents/Settings/claims.ts +3 -3
- package/documents/Settings/roles.ts +9 -9
- package/documents/Settings/settingsGroup.ts +57 -57
- package/documents/Settings/words.ts +1 -16
- package/documents/Theme/interfaces.ts +48 -48
- package/documents/User/interfaces.ts +20 -20
- package/documents/User/read.ts +4 -4
- package/documents/User/update.ts +4 -4
- package/documents/WishList/interfaces.ts +50 -50
- package/documents/WishList/list.ts +4 -4
- package/documents/WishList/read.ts +4 -4
- package/documents/base/interfaces.ts +26 -26
- package/documents/core/Logger/create.ts +4 -4
- package/documents/core/Logger/interfaces.ts +35 -35
- package/documents/core/Logger/list.ts +4 -4
- package/documents/core/Logger/read.ts +4 -4
- package/documents/core/Logger/update.ts +4 -4
- package/documents/core/SampleData/create.ts +4 -4
- package/documents/core/SampleData/interfaces.ts +9 -9
- package/documents/core/SampleData/list.ts +4 -4
- package/documents/core/SampleData/read.ts +4 -4
- package/documents/core/SampleData/update.ts +4 -4
- package/documents/messages/messages.ts +13 -13
- package/package.json +20 -20
package/codegen.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import type { CodegenConfig } from "@graphql-codegen/cli";
|
|
2
2
|
|
|
3
3
|
const config: CodegenConfig = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
schema: "https://api.e4.local/graphql",
|
|
5
|
+
documents: [
|
|
6
|
+
"./documents/**/*.ts",
|
|
7
|
+
"!./documents/core/**",
|
|
8
|
+
"!./documents/base/**",
|
|
9
|
+
],
|
|
10
|
+
generates: {
|
|
11
|
+
"./index.ts": {
|
|
12
|
+
plugins: [
|
|
13
|
+
"typescript",
|
|
14
|
+
"typescript-operations",
|
|
15
|
+
"typescript-graphql-request",
|
|
16
|
+
],
|
|
17
|
+
config: {
|
|
18
|
+
preset: "client",
|
|
19
|
+
rawRequest: true,
|
|
20
|
+
documentMode: "documentNode",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export default config;
|
|
@@ -2,123 +2,123 @@ import { Address } from "../Address";
|
|
|
2
2
|
import { PageInfo } from "../base/interfaces";
|
|
3
3
|
|
|
4
4
|
export interface ContactType {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
code?: string;
|
|
9
|
+
created?: string;
|
|
10
|
+
modified?: string;
|
|
11
|
+
modifiedBy?: Contact;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface ContactStatus {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
id: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
code?: string;
|
|
18
|
+
created?: string;
|
|
19
|
+
modified?: string;
|
|
20
|
+
modifiedBy?: Contact;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface Contact {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
24
|
+
id: string;
|
|
25
|
+
accountId?: string;
|
|
26
|
+
account?: Account;
|
|
27
|
+
aspNetUserId?: number;
|
|
28
|
+
code?: string;
|
|
29
|
+
fullName?: string;
|
|
30
|
+
firstName?: string;
|
|
31
|
+
lastName?: string;
|
|
32
|
+
phone?: string;
|
|
33
|
+
contactTypeId?: string;
|
|
34
|
+
contactStatusId?: string;
|
|
35
|
+
defaultShippingAddressId?: string;
|
|
36
|
+
defaultBillingAddressId?: string;
|
|
37
|
+
mediaId?: string;
|
|
38
|
+
avatar?: string;
|
|
39
|
+
email?: string;
|
|
40
|
+
phoneNumber?: string;
|
|
41
|
+
defaultShippingAddress?: Address;
|
|
42
|
+
defaultBillingAddress?: Address;
|
|
43
|
+
addresses?: Address[];
|
|
44
|
+
roles?: string[];
|
|
45
|
+
type?: ContactType;
|
|
46
|
+
status?: ContactStatus;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface AccountStatus {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
id: string;
|
|
51
|
+
code?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
created?: string;
|
|
54
|
+
modified?: string;
|
|
55
|
+
modifiedBy?: Contact;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export interface AccountType {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
id: string;
|
|
60
|
+
code?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
displayName?: string;
|
|
63
|
+
created?: string;
|
|
64
|
+
modified?: string;
|
|
65
|
+
modifiedBy?: Contact;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface Account {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
69
|
+
accountId?: string;
|
|
70
|
+
id?: string;
|
|
71
|
+
code?: string;
|
|
72
|
+
isErpAccount?: number;
|
|
73
|
+
name?: string;
|
|
74
|
+
dbaName?: string;
|
|
75
|
+
accountTypeId?: number;
|
|
76
|
+
accountType?: string;
|
|
77
|
+
type?: AccountType;
|
|
78
|
+
status?: AccountStatus;
|
|
79
|
+
sumOrderValue?: number;
|
|
80
|
+
email?: string;
|
|
81
|
+
isSubscribed?: number;
|
|
82
|
+
defaultContact?: Contact;
|
|
83
|
+
defaultShippingAddressId?: number;
|
|
84
|
+
defaultBillingAddressId?: number;
|
|
85
|
+
defaultBillingAddress?: Address;
|
|
86
|
+
defaultShippingAddress?: Address;
|
|
87
|
+
defaultPhone?: string;
|
|
88
|
+
defaultEmail?: string;
|
|
89
|
+
originCode?: string;
|
|
90
|
+
created?: string;
|
|
91
|
+
contactCode?: string;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface ProfileInput {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
id?: string;
|
|
96
|
+
email?: string;
|
|
97
|
+
firstName?: string;
|
|
98
|
+
lastName?: string;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface Page {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
cursor?: string;
|
|
103
|
+
isCurrentPage?: boolean;
|
|
104
|
+
page?: number;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export interface AccountEdge {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
cursor?: string;
|
|
109
|
+
node?: Account;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface AccountConnection {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
recordCount?: number;
|
|
114
|
+
pageInfo?: PageInfo;
|
|
115
|
+
nodes?: Account[];
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export interface AccountQueryInput {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
search?: string;
|
|
120
|
+
skip?: number;
|
|
121
|
+
sort?: string;
|
|
122
|
+
sortDesc?: boolean;
|
|
123
|
+
top?: number;
|
|
124
124
|
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
export interface Country {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
id: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
isoAlpha2Code?: string;
|
|
5
|
+
isoAlpha3Code?: string;
|
|
6
|
+
state: State[];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface State {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
id: string;
|
|
11
|
+
countryId: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
code?: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface AddressType {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
id?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
displayName?: string;
|
|
20
|
+
created?: string;
|
|
21
|
+
modified?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface Address {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
id?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
firstName?: string;
|
|
28
|
+
lastName?: string;
|
|
29
|
+
address1?: string;
|
|
30
|
+
address2?: string;
|
|
31
|
+
addressType?: AddressType;
|
|
32
|
+
city?: string;
|
|
33
|
+
stateId?: string;
|
|
34
|
+
stateName?: string;
|
|
35
|
+
countryId?: string;
|
|
36
|
+
countryCode?: string;
|
|
37
|
+
countryName?: string;
|
|
38
|
+
postalCode?: string;
|
|
39
|
+
isPrimary?: boolean;
|
|
40
|
+
phoneNumber?: string;
|
|
41
41
|
}
|
package/documents/Cart/add.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const ADD_TO_CART_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const CART_CHECKOUT_READ_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const DELETE_CART_LINE_XS = gql`
|
|
@@ -2,55 +2,55 @@ import { Product } from "@evenicanpm/e4-shared-client-graphql/Product/interfaces
|
|
|
2
2
|
import { Address } from "@evenicanpm/e4-shared-client-graphql/Address/interfaces";
|
|
3
3
|
|
|
4
4
|
export interface Image {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
cdnURL: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface SelectedDimension {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface UnitOfMeasure {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface CartLine {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
id: string;
|
|
23
|
+
product: Product;
|
|
24
|
+
available: number;
|
|
25
|
+
quantity: number;
|
|
26
|
+
amount: number;
|
|
27
|
+
price: number;
|
|
28
|
+
selectedDimensions: SelectedDimension[];
|
|
29
|
+
uom: UnitOfMeasure;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export interface Cart {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
id: string;
|
|
34
|
+
orderBillingAddressId: string;
|
|
35
|
+
orderShippingAddressId: string;
|
|
36
|
+
itemCount: number;
|
|
37
|
+
subtotal: number;
|
|
38
|
+
total: number;
|
|
39
|
+
taxTotal: number;
|
|
40
|
+
freightTotal: number;
|
|
41
|
+
shippingMethodId: string;
|
|
42
|
+
email: string;
|
|
43
|
+
lines?: CartLine[];
|
|
44
|
+
addresses?: Address[];
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface Shipping {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
code: string;
|
|
51
|
+
baseAmount: number;
|
|
52
|
+
discount: number;
|
|
53
|
+
total: number;
|
|
54
|
+
shippingRateTypeName: string;
|
|
55
|
+
shippingRateTypeCode: string;
|
|
56
56
|
}
|
package/documents/Cart/read.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const CART_READ_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
SHIPPING_METHOD_FRAGMENT_XS,
|
|
5
|
+
SHIPPING_METHOD_FRAGMENT_SM,
|
|
6
|
+
SHIPPING_METHOD_FRAGMENT_MD,
|
|
7
|
+
SHIPPING_METHOD_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const SHIPPING_METHOD_READ_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const SHIPPING_METHOD_UPDATE_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CART_FRAGMENT_XS,
|
|
5
|
+
CART_FRAGMENT_SM,
|
|
6
|
+
CART_FRAGMENT_MD,
|
|
7
|
+
CART_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const UPDATE_CART_LINE_XS = gql`
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export interface Breadcrumb {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
CategoryId?: string;
|
|
3
|
+
Name?: string;
|
|
4
|
+
seoName?: string;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export interface Category {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
id?: any;
|
|
9
|
+
rootId?: any;
|
|
10
|
+
parentId?: any;
|
|
11
|
+
name?: String;
|
|
12
|
+
displayName?: String;
|
|
13
|
+
code?: String;
|
|
14
|
+
tier?: any;
|
|
15
|
+
isLink?: any;
|
|
16
|
+
categoryStatus?: any;
|
|
17
|
+
extendedFields?: String;
|
|
18
|
+
sort?: any;
|
|
19
|
+
breadcrumbs?: String;
|
|
20
|
+
breadcrumbIds?: String;
|
|
21
|
+
seoCrumb?: String;
|
|
22
|
+
created?: String;
|
|
23
|
+
count?: any;
|
|
24
|
+
hasChildren?: any;
|
|
25
|
+
children?: [Category];
|
|
26
|
+
_action?: String;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface deleteItemFromCategoryInput {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
categoryId?: any;
|
|
31
|
+
productId?: any;
|
|
32
|
+
sort?: any;
|
|
33
|
+
_action?: String;
|
|
34
34
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export interface Breadcrumb {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
CategoryId?: string;
|
|
3
|
+
Name?: string;
|
|
4
|
+
seoName?: string;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export interface Category {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
id: string;
|
|
9
|
+
parentId?: string;
|
|
10
|
+
tier: number;
|
|
11
|
+
name: string;
|
|
12
|
+
displayName?: string;
|
|
13
|
+
hasChildren?: boolean;
|
|
14
|
+
seoCrumb?: string;
|
|
15
|
+
img?: any;
|
|
16
|
+
breadcrumb?: Breadcrumb[];
|
|
17
|
+
children?: Category[];
|
|
18
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
CATEGORY_FRAGMENT_XS,
|
|
4
|
+
CATEGORY_FRAGMENT_SM,
|
|
5
|
+
CATEGORY_FRAGMENT_MD,
|
|
6
|
+
CATEGORY_FRAGMENT_LG,
|
|
7
7
|
} from "./fragments";
|
|
8
8
|
|
|
9
9
|
const CATEGORY_LIST_XS = gql`
|