@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
|
@@ -2,29 +2,29 @@ import { Address } from "@evenicanpm/e4-shared-client-graphql/Address/interfaces
|
|
|
2
2
|
import { Product } from "@evenicanpm/e4-shared-client-graphql/Product/interfaces";
|
|
3
3
|
|
|
4
4
|
export interface OrderLine {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
id: string;
|
|
6
|
+
product: Product;
|
|
7
|
+
lineNumber?: number;
|
|
8
|
+
quantity: number;
|
|
9
|
+
price: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
unitOfMeasure: string;
|
|
12
|
+
selectedDimensions: any[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface Order {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
id: string;
|
|
17
|
+
orderType: string;
|
|
18
|
+
orderStatus: string;
|
|
19
|
+
orderNumber: string;
|
|
20
|
+
orderDate: string;
|
|
21
|
+
itemCount: number;
|
|
22
|
+
subTotal: number;
|
|
23
|
+
taxTotal?: number;
|
|
24
|
+
freightTotal?: number;
|
|
25
|
+
promotionTotal?: number;
|
|
26
|
+
total: number;
|
|
27
|
+
lines: OrderLine[];
|
|
28
|
+
addresses: Address[];
|
|
29
|
+
completedCartId: string;
|
|
30
30
|
}
|
package/documents/Order/list.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { gql } from "graphql-request";
|
|
|
3
3
|
// GraphQL
|
|
4
4
|
// import { PAGE_INFO } from "../base/fragments";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
ORDER_FRAGMENT_XS,
|
|
7
|
+
ORDER_FRAGMENT_SM,
|
|
8
|
+
ORDER_FRAGMENT_MD,
|
|
9
|
+
ORDER_FRAGMENT_LG,
|
|
10
10
|
} from "./fragments";
|
|
11
11
|
|
|
12
12
|
const PAGE_INFO = gql`
|
package/documents/Order/read.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
ORDER_FRAGMENT_XS,
|
|
5
|
+
ORDER_FRAGMENT_SM,
|
|
6
|
+
ORDER_FRAGMENT_MD,
|
|
7
|
+
ORDER_FRAGMENT_LG,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const ORDER_READ_XS = gql`
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { Category, Breadcrumb } from "../Category/interfaces";
|
|
2
2
|
|
|
3
3
|
export interface Product {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
4
|
+
id: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
productTypeName?: string;
|
|
8
|
+
img?: any;
|
|
9
|
+
masterProductId?: string;
|
|
10
|
+
productEntity?: any;
|
|
11
|
+
seoName?: string;
|
|
12
|
+
sku?: string;
|
|
13
|
+
upc?: string;
|
|
14
|
+
shortDescription?: string;
|
|
15
|
+
longDescription?: string;
|
|
16
|
+
productStatus?: any;
|
|
17
|
+
unitOfMeasure?: string;
|
|
18
|
+
salesEndDate?: string;
|
|
19
|
+
listPrice?: number;
|
|
20
|
+
discountAmount?: number;
|
|
21
|
+
price?: number;
|
|
22
|
+
isDefaultProduct?: boolean;
|
|
23
|
+
isDimensionedProduct?: boolean;
|
|
24
|
+
masterAttributes?: any;
|
|
25
|
+
priceGroupListPrice?: any;
|
|
26
|
+
variants?: any;
|
|
27
|
+
primaryVariantOptions?: any;
|
|
28
|
+
selectedDimensions?: any;
|
|
29
|
+
available?: number;
|
|
30
|
+
attributes?: any;
|
|
31
|
+
modifiedBy?: any;
|
|
32
|
+
created?: string;
|
|
33
|
+
modified?: string;
|
|
34
|
+
Variants?: any;
|
|
35
|
+
Dimensions?: any;
|
|
36
|
+
Available?: number;
|
|
37
|
+
category?: Category[];
|
|
38
|
+
inventory?: any;
|
|
39
|
+
Reviews?: any;
|
|
40
|
+
origin?: any;
|
|
41
|
+
uom?: any;
|
|
42
|
+
isInWishList?: boolean;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export type { Category, Breadcrumb };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
PRODUCT_FRAGMENT_XS,
|
|
5
|
+
PRODUCT_FRAGMENT_SM,
|
|
6
|
+
PRODUCT_FRAGMENT_MD,
|
|
7
|
+
PRODUCT_FRAGMENT_LG,
|
|
8
|
+
ATTRIBUTE_VALUE_FRAGMENT,
|
|
9
9
|
} from "./fragments";
|
|
10
10
|
|
|
11
11
|
const PRODUCT_LIST_XS = gql`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
PRODUCT_FRAGMENT_XS,
|
|
4
|
+
PRODUCT_FRAGMENT_SM,
|
|
5
|
+
PRODUCT_FRAGMENT_MD,
|
|
6
|
+
PRODUCT_FRAGMENT_LG,
|
|
7
|
+
REVIEW_FRAGMENT,
|
|
8
8
|
} from "./fragments";
|
|
9
9
|
|
|
10
10
|
const PRODUCT_READ_XS = gql`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
PRODUCT_FRAGMENT_XS,
|
|
5
|
+
PRODUCT_FRAGMENT_SM,
|
|
6
|
+
PRODUCT_FRAGMENT_MD,
|
|
7
|
+
PRODUCT_FRAGMENT_LG,
|
|
8
|
+
ATTRIBUTE_VALUE_FRAGMENT,
|
|
9
9
|
} from "./fragments";
|
|
10
10
|
|
|
11
11
|
const PRODUCT_SEARCH_XS = gql`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface LoginInput {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
userName: string;
|
|
3
|
+
password?: string;
|
|
4
|
+
authToken?: string;
|
|
5
|
+
withCart?: boolean;
|
|
6
|
+
withSobo?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface CustomerInitSessionInput {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
userName: string;
|
|
10
|
+
authToken: string;
|
|
11
11
|
}
|
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import { gql } from "graphql-request"
|
|
2
|
-
|
|
3
|
-
import { SESSION_FRAGMENT_XS, SESSION_FRAGMENT_SM } from './fragments';
|
|
4
|
-
|
|
1
|
+
import { gql } from "graphql-request";
|
|
5
2
|
|
|
3
|
+
import { SESSION_FRAGMENT_XS, SESSION_FRAGMENT_SM } from "./fragments";
|
|
6
4
|
|
|
7
5
|
const SESSION_LOGIN_XS = gql`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
${SESSION_FRAGMENT_XS}
|
|
7
|
+
mutation e4LoginXS($input: LoginInput!) {
|
|
8
|
+
login(input: $input) {
|
|
9
|
+
token
|
|
10
|
+
refreshToken
|
|
11
|
+
session {
|
|
12
|
+
...SessionFragmentXS
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
18
16
|
`;
|
|
19
17
|
|
|
20
18
|
const SESSION_LOGIN_SM = gql`
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
${SESSION_FRAGMENT_SM}
|
|
20
|
+
mutation e4LoginSM($input: LoginInput!) {
|
|
21
|
+
login(input: $input) {
|
|
22
|
+
token
|
|
23
|
+
refreshToken
|
|
24
|
+
session {
|
|
25
|
+
...SessionFragmentSM
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
31
29
|
`;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
SESSION_LOGIN_XS,
|
|
35
|
-
SESSION_LOGIN_SM
|
|
36
|
-
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
SESSION_FRAGMENT_XS,
|
|
5
|
+
SESSION_FRAGMENT_SM,
|
|
6
|
+
SESSION_FRAGMENT_MANAGEMENT_WITH_CLAIMS,
|
|
7
7
|
} from "./fragments";
|
|
8
8
|
|
|
9
9
|
const SESSION_READ_XS = gql`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export interface App {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
plugins: [Plugin];
|
|
3
|
+
version: string;
|
|
4
|
+
environment: string;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export interface Plugin {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { gql } from "graphql-request";
|
|
2
2
|
|
|
3
3
|
interface Role {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
id: string | null;
|
|
5
|
+
name: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
autoAssign: number | null;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
interface CreateRoleInput {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
id: string | null;
|
|
12
|
+
name: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
autoAssign: number | null;
|
|
15
|
+
assignToExistingUsers: boolean | null;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const GET_ROLES = gql`
|
|
@@ -167,100 +167,100 @@ const SELECTED_THEME = gql`
|
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
169
|
export interface SettingGroup {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
170
|
+
code: string;
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
settings: Settings;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
export interface settingsGroup {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
code: string;
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
displayName: string;
|
|
181
|
+
description: string;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
export interface Settings {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
185
|
+
id: string;
|
|
186
|
+
attributeId: string;
|
|
187
|
+
displayName: string;
|
|
188
|
+
name: string;
|
|
189
|
+
enumValueId: string;
|
|
190
|
+
value: string;
|
|
191
|
+
textValue: string;
|
|
192
|
+
options: SettingsOptions;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export interface SettingsOptions {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
code: string;
|
|
197
|
+
id: string;
|
|
198
|
+
displayName: string;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
export interface SettingData {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
getAllOrderAddressTypes: AddressTypeWrapper;
|
|
203
|
+
getAllOrderTransactStatus: TransactStatusWrapper;
|
|
204
|
+
settingGroups: SettingGroup;
|
|
205
|
+
themeListList?: ThemeInputBase[];
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
export interface getAllOrderAddressTypes {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
id: string;
|
|
210
|
+
displayName: string;
|
|
211
|
+
name: string;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export interface getAllOrderTransactStatus {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
id: string;
|
|
216
|
+
code: string;
|
|
217
|
+
name: string;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
export interface TransactStatus {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
code: string;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
export interface TransactStatusEdge {
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
cursor: String;
|
|
228
|
+
node: TransactStatus;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
export interface TransactStatusWrapper {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
pageInfo: any;
|
|
233
|
+
nodes: [TransactStatus];
|
|
234
|
+
edges: [TransactStatusEdge];
|
|
235
|
+
recordCount: number;
|
|
236
236
|
}
|
|
237
237
|
export interface AddressTypeEdge {
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
cursor: String;
|
|
239
|
+
node: any;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
export interface AddressTypeWrapper {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
pageInfo: any;
|
|
244
|
+
nodes: any;
|
|
245
|
+
edges: [AddressTypeEdge];
|
|
246
|
+
recordCount: number;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// these are coming from SettingsValues in interfaces folder
|
|
250
250
|
export interface SettingsValue {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
251
|
+
displayName: string;
|
|
252
|
+
enumId: number | null;
|
|
253
|
+
id: number;
|
|
254
|
+
isEnum: boolean;
|
|
255
|
+
name: string;
|
|
256
|
+
bigIntValue: string;
|
|
257
|
+
options: SettingsOption[];
|
|
258
|
+
value: string | number;
|
|
259
|
+
attributeEntityValueId?: string;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
export interface SettingsOption {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
displayName: string;
|
|
264
|
+
code: string;
|
|
265
|
+
id: string | number;
|
|
266
266
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { gql } from "graphql-request"
|
|
2
|
-
|
|
1
|
+
import { gql } from "graphql-request";
|
|
3
2
|
|
|
4
3
|
const SEARCH_WORDS = gql`
|
|
5
4
|
query searchWords($input: SearchWordSearchInput) {
|
|
@@ -57,9 +56,6 @@ const DELETE_SEARCH_WORD_SYNONYM = gql`
|
|
|
57
56
|
mutation deleteSearchWordSynonym($id: ID!) {
|
|
58
57
|
deleteSearchWordSynonym(id: $id) {
|
|
59
58
|
id
|
|
60
|
-
searchWordId
|
|
61
|
-
synonym
|
|
62
|
-
status
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
`;
|
|
@@ -102,14 +98,3 @@ const DELETE_STOP_WORD = gql`
|
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
`;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
SEARCH_WORDS,
|
|
108
|
-
CREATE_SEARCH_WORD,
|
|
109
|
-
DELETE_SEARCH_WORD,
|
|
110
|
-
CREATE_SEARCH_WORD_SYNONYM,
|
|
111
|
-
DELETE_SEARCH_WORD_SYNONYM,
|
|
112
|
-
STOP_WORDS,
|
|
113
|
-
CREATE_STOP_WORD,
|
|
114
|
-
DELETE_STOP_WORD
|
|
115
|
-
});
|