@evenicanpm/storefront-graphql-codegen 1.1.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/README.md +9 -0
- package/codegen.ts +26 -0
- package/documents/Account/index.ts +1 -0
- package/documents/Account/interfaces.ts +124 -0
- package/documents/Account/read.ts +22 -0
- package/documents/Account/readList.ts +28 -0
- package/documents/Account/update.ts +12 -0
- package/documents/Address/addressType.ts +12 -0
- package/documents/Address/countries.ts +27 -0
- package/documents/Address/create.ts +12 -0
- package/documents/Address/delete.ts +7 -0
- package/documents/Address/fragments.ts +56 -0
- package/documents/Address/index.ts +2 -0
- package/documents/Address/interfaces.ts +41 -0
- package/documents/Address/update.ts +12 -0
- package/documents/Cart/add.ts +64 -0
- package/documents/Cart/checkoutRead.ts +88 -0
- package/documents/Cart/checkoutSubmit.ts +18 -0
- package/documents/Cart/createCartAddress.ts +12 -0
- package/documents/Cart/deleteLine.ts +64 -0
- package/documents/Cart/fragments.ts +204 -0
- package/documents/Cart/interfaces.ts +56 -0
- package/documents/Cart/read.ts +44 -0
- package/documents/Cart/setOrderEmail.ts +9 -0
- package/documents/Cart/shippingMethodRead.ts +44 -0
- package/documents/Cart/shippingMethodUpdate.ts +64 -0
- package/documents/Cart/submit.ts +18 -0
- package/documents/Cart/updateCartAddress.ts +9 -0
- package/documents/Cart/updateLine.ts +64 -0
- package/documents/Catalog/create.ts +15 -0
- package/documents/Catalog/delete.ts +9 -0
- package/documents/Catalog/deleteProducts.ts +10 -0
- package/documents/Catalog/fragments.ts +80 -0
- package/documents/Catalog/interfaces.ts +34 -0
- package/documents/Catalog/linkMedia/create.ts +20 -0
- package/documents/Catalog/linkMedia/delete.ts +9 -0
- package/documents/Catalog/linkMedia/update.ts +11 -0
- package/documents/Catalog/linkProduct.ts +12 -0
- package/documents/Catalog/list.ts +23 -0
- package/documents/Catalog/read.ts +56 -0
- package/documents/Catalog/removeProduct.ts +11 -0
- package/documents/Catalog/save.ts +17 -0
- package/documents/Catalog/statusList.ts +12 -0
- package/documents/Catalog/update.ts +15 -0
- package/documents/Category/fragments.ts +54 -0
- package/documents/Category/interfaces.ts +18 -0
- package/documents/Category/list.ts +55 -0
- package/documents/MediaLibrary/File/create.ts +44 -0
- package/documents/MediaLibrary/File/delete.ts +12 -0
- package/documents/MediaLibrary/File/read.ts +36 -0
- package/documents/MediaLibrary/File/update.ts +43 -0
- package/documents/MediaLibrary/Folder/create.ts +24 -0
- package/documents/MediaLibrary/Folder/delete.ts +11 -0
- package/documents/MediaLibrary/Folder/read.ts +101 -0
- package/documents/MediaLibrary/Folder/update.ts +10 -0
- package/documents/MediaLibrary/move.ts +44 -0
- package/documents/MediaLibrary/search.ts +84 -0
- package/documents/Order/fragments.ts +116 -0
- package/documents/Order/index.ts +2 -0
- package/documents/Order/interfaces.ts +30 -0
- package/documents/Order/list.ts +129 -0
- package/documents/Order/read.ts +44 -0
- package/documents/Product/facets.ts +34 -0
- package/documents/Product/fragments.ts +167 -0
- package/documents/Product/getAll.ts +77 -0
- package/documents/Product/interfaces.ts +45 -0
- package/documents/Product/list.ts +248 -0
- package/documents/Product/read.ts +70 -0
- package/documents/Product/search.ts +170 -0
- package/documents/Review/create.ts +22 -0
- package/documents/ServerCache/productIndex.ts +11 -0
- package/documents/Session/Customer/init.ts +12 -0
- package/documents/Session/Customer/logout.ts +11 -0
- package/documents/Session/Customer/read.ts +15 -0
- package/documents/Session/fragments.ts +69 -0
- package/documents/Session/index.ts +8 -0
- package/documents/Session/interfaces.ts +11 -0
- package/documents/Session/login.ts +36 -0
- package/documents/Session/logout.ts +11 -0
- package/documents/Session/read.ts +43 -0
- package/documents/Settings/ClearCache/clearcache.ts +10 -0
- package/documents/Settings/SystemInformation/index.ts +1 -0
- package/documents/Settings/SystemInformation/interfaces.ts +16 -0
- package/documents/Settings/SystemInformation/system-information.ts +20 -0
- package/documents/Settings/aliases.ts +96 -0
- package/documents/Settings/claims.ts +124 -0
- package/documents/Settings/contacts.ts +133 -0
- package/documents/Settings/index.ts +12 -0
- package/documents/Settings/indexes.ts +73 -0
- package/documents/Settings/roles.ts +93 -0
- package/documents/Settings/settingsGroup.ts +266 -0
- package/documents/Settings/users.ts +19 -0
- package/documents/Settings/words.ts +115 -0
- package/documents/Theme/create.ts +46 -0
- package/documents/Theme/delete.ts +9 -0
- package/documents/Theme/interfaces.ts +63 -0
- package/documents/Theme/read.ts +83 -0
- package/documents/User/changePassword.ts +11 -0
- package/documents/User/counts.ts +8 -0
- package/documents/User/fragments.ts +61 -0
- package/documents/User/index.ts +2 -0
- package/documents/User/interfaces.ts +29 -0
- package/documents/User/read.ts +44 -0
- package/documents/User/register.ts +11 -0
- package/documents/User/resetPassword.ts +11 -0
- package/documents/User/update.ts +44 -0
- package/documents/WishList/add.ts +10 -0
- package/documents/WishList/create.ts +12 -0
- package/documents/WishList/delete.ts +7 -0
- package/documents/WishList/deleteLine.ts +7 -0
- package/documents/WishList/fragments.ts +98 -0
- package/documents/WishList/index.ts +2 -0
- package/documents/WishList/interfaces.ts +68 -0
- package/documents/WishList/list.ts +136 -0
- package/documents/WishList/read.ts +44 -0
- package/documents/base/interfaces.ts +34 -0
- package/documents/base/logger.ts +20 -0
- package/documents/base/pageInfoFragments.ts +25 -0
- package/documents/base/refresh-token.ts +15 -0
- package/documents/core/Logger/create.ts +64 -0
- package/documents/core/Logger/delete.ts +14 -0
- package/documents/core/Logger/fragments.ts +55 -0
- package/documents/core/Logger/index.ts +2 -0
- package/documents/core/Logger/interfaces.ts +39 -0
- package/documents/core/Logger/list.ts +56 -0
- package/documents/core/Logger/read.ts +44 -0
- package/documents/core/Logger/update.ts +64 -0
- package/documents/core/SampleData/create.ts +76 -0
- package/documents/core/SampleData/delete.ts +14 -0
- package/documents/core/SampleData/fragments.ts +48 -0
- package/documents/core/SampleData/index.ts +7 -0
- package/documents/core/SampleData/interfaces.ts +11 -0
- package/documents/core/SampleData/list.ts +233 -0
- package/documents/core/SampleData/read.ts +44 -0
- package/documents/core/SampleData/update.ts +76 -0
- package/documents/core/index.ts +2 -0
- package/documents/messages/messages.ts +21 -0
- package/package.json +22 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
import { ThemeInputBase } from "../Theme/interfaces";
|
|
3
|
+
|
|
4
|
+
const SETTING_GROUP_LIST = gql`
|
|
5
|
+
query settingGroupsAll {
|
|
6
|
+
settingGroups {
|
|
7
|
+
id
|
|
8
|
+
name
|
|
9
|
+
code
|
|
10
|
+
description
|
|
11
|
+
settings {
|
|
12
|
+
id
|
|
13
|
+
attributeId
|
|
14
|
+
displayName
|
|
15
|
+
name
|
|
16
|
+
enumValueId
|
|
17
|
+
bigIntValue
|
|
18
|
+
value
|
|
19
|
+
textValue
|
|
20
|
+
enumId
|
|
21
|
+
isEnum
|
|
22
|
+
options {
|
|
23
|
+
id
|
|
24
|
+
displayName
|
|
25
|
+
code
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
themeListList {
|
|
30
|
+
themeName
|
|
31
|
+
themeId
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
const SETTINGS_GROUP_READ = gql`
|
|
37
|
+
query settingGroups($options: SettingsInput, $includeTheme: Boolean!) {
|
|
38
|
+
settingGroups(options: $options) {
|
|
39
|
+
id
|
|
40
|
+
name
|
|
41
|
+
code
|
|
42
|
+
description
|
|
43
|
+
settings {
|
|
44
|
+
id
|
|
45
|
+
attributeId
|
|
46
|
+
displayName
|
|
47
|
+
name
|
|
48
|
+
enumValueId
|
|
49
|
+
bigIntValue
|
|
50
|
+
value
|
|
51
|
+
textValue
|
|
52
|
+
enumId
|
|
53
|
+
isEnum
|
|
54
|
+
attributeEntityValueId
|
|
55
|
+
options {
|
|
56
|
+
id
|
|
57
|
+
displayName
|
|
58
|
+
code
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
getAllOrderAddressTypes {
|
|
63
|
+
pageInfo {
|
|
64
|
+
skip
|
|
65
|
+
}
|
|
66
|
+
nodes {
|
|
67
|
+
id
|
|
68
|
+
name
|
|
69
|
+
displayName
|
|
70
|
+
}
|
|
71
|
+
recordCount
|
|
72
|
+
}
|
|
73
|
+
getAllOrderTransactStatus {
|
|
74
|
+
pageInfo {
|
|
75
|
+
skip
|
|
76
|
+
}
|
|
77
|
+
nodes {
|
|
78
|
+
id
|
|
79
|
+
name
|
|
80
|
+
code
|
|
81
|
+
}
|
|
82
|
+
recordCount
|
|
83
|
+
}
|
|
84
|
+
themeListList @include(if: $includeTheme) {
|
|
85
|
+
themeId
|
|
86
|
+
themeName
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
const UPDATE_SETTING = gql`
|
|
92
|
+
mutation updateSetting($siteSetting: [SiteSettingInput!]!) {
|
|
93
|
+
updateSetting(siteSetting: $siteSetting) {
|
|
94
|
+
id
|
|
95
|
+
settingGroupId
|
|
96
|
+
attributeId
|
|
97
|
+
enumId
|
|
98
|
+
handle
|
|
99
|
+
code
|
|
100
|
+
name
|
|
101
|
+
displayName
|
|
102
|
+
sort
|
|
103
|
+
enumValueId
|
|
104
|
+
value
|
|
105
|
+
textValue
|
|
106
|
+
isEnum
|
|
107
|
+
success
|
|
108
|
+
options {
|
|
109
|
+
id
|
|
110
|
+
displayName
|
|
111
|
+
code
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
const SELECTED_THEME = gql`
|
|
118
|
+
query Settings {
|
|
119
|
+
settings {
|
|
120
|
+
selectedTheme {
|
|
121
|
+
id
|
|
122
|
+
themeId
|
|
123
|
+
colorPrimary
|
|
124
|
+
colorSecondary
|
|
125
|
+
textPrimary
|
|
126
|
+
textSecondary
|
|
127
|
+
error
|
|
128
|
+
warning
|
|
129
|
+
success
|
|
130
|
+
info
|
|
131
|
+
background
|
|
132
|
+
panelBackground
|
|
133
|
+
defaultTheme
|
|
134
|
+
themeName
|
|
135
|
+
fontFamily
|
|
136
|
+
h1
|
|
137
|
+
h2
|
|
138
|
+
h3
|
|
139
|
+
h4
|
|
140
|
+
h5
|
|
141
|
+
h6
|
|
142
|
+
body1
|
|
143
|
+
body2
|
|
144
|
+
button
|
|
145
|
+
h1Font
|
|
146
|
+
h2Font
|
|
147
|
+
h3Font
|
|
148
|
+
h4Font
|
|
149
|
+
h5Font
|
|
150
|
+
h6Font
|
|
151
|
+
body1Font
|
|
152
|
+
body2Font
|
|
153
|
+
buttonFont
|
|
154
|
+
xsBreakpoint
|
|
155
|
+
smBreakpoint
|
|
156
|
+
mdBreakpoint
|
|
157
|
+
lgBreakpoint
|
|
158
|
+
xlBreakpoint
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
`;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* FIXME: Currently using Developer created interfaces for datachecking
|
|
166
|
+
* Upgrade to generated types
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
export interface SettingGroup {
|
|
170
|
+
code: string;
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
settings: Settings;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface settingsGroup {
|
|
177
|
+
code: string;
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
displayName: string;
|
|
181
|
+
description: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface Settings {
|
|
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
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface SettingsOptions {
|
|
196
|
+
code: string;
|
|
197
|
+
id: string;
|
|
198
|
+
displayName: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface SettingData {
|
|
202
|
+
getAllOrderAddressTypes: AddressTypeWrapper;
|
|
203
|
+
getAllOrderTransactStatus: TransactStatusWrapper;
|
|
204
|
+
settingGroups: SettingGroup;
|
|
205
|
+
themeListList?: ThemeInputBase[];
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface getAllOrderAddressTypes {
|
|
209
|
+
id: string;
|
|
210
|
+
displayName: string;
|
|
211
|
+
name: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface getAllOrderTransactStatus {
|
|
215
|
+
id: string;
|
|
216
|
+
code: string;
|
|
217
|
+
name: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface TransactStatus {
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
code: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface TransactStatusEdge {
|
|
227
|
+
cursor: String;
|
|
228
|
+
node: TransactStatus;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface TransactStatusWrapper {
|
|
232
|
+
pageInfo: any;
|
|
233
|
+
nodes: [TransactStatus];
|
|
234
|
+
edges: [TransactStatusEdge];
|
|
235
|
+
recordCount: number;
|
|
236
|
+
}
|
|
237
|
+
export interface AddressTypeEdge {
|
|
238
|
+
cursor: String;
|
|
239
|
+
node: any;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface AddressTypeWrapper {
|
|
243
|
+
pageInfo: any;
|
|
244
|
+
nodes: any;
|
|
245
|
+
edges: [AddressTypeEdge];
|
|
246
|
+
recordCount: number;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// these are coming from SettingsValues in interfaces folder
|
|
250
|
+
export interface SettingsValue {
|
|
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
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface SettingsOption {
|
|
263
|
+
displayName: string;
|
|
264
|
+
code: string;
|
|
265
|
+
id: string | number;
|
|
266
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
|
|
3
|
+
const ASSIGN_USER_TO_ROLE = gql`
|
|
4
|
+
mutation assignUserToRole($input: UserRoleInput!) {
|
|
5
|
+
assignUserToRole(input: $input) {
|
|
6
|
+
userId
|
|
7
|
+
roleId
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
const REMOVE_USER_FROM_ROLE = gql`
|
|
13
|
+
mutation removeUserFromRole($input: UserRoleInput!) {
|
|
14
|
+
removeUserFromRole(input: $input) {
|
|
15
|
+
userId
|
|
16
|
+
roleId
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { gql } from "graphql-request"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const SEARCH_WORDS = gql`
|
|
5
|
+
query searchWords($input: SearchWordSearchInput) {
|
|
6
|
+
searchWords(input: $input) {
|
|
7
|
+
id
|
|
8
|
+
alias
|
|
9
|
+
searchWord
|
|
10
|
+
status
|
|
11
|
+
synonyms {
|
|
12
|
+
id
|
|
13
|
+
searchWordId
|
|
14
|
+
synonym
|
|
15
|
+
status
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
const CREATE_SEARCH_WORD = gql`
|
|
22
|
+
mutation createSearchWord($searchWord: String!, $alias: String) {
|
|
23
|
+
createSearchWord(searchWord: $searchWord, alias: $alias) {
|
|
24
|
+
id
|
|
25
|
+
searchWord
|
|
26
|
+
status
|
|
27
|
+
synonyms {
|
|
28
|
+
id
|
|
29
|
+
searchWordId
|
|
30
|
+
synonym
|
|
31
|
+
status
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
const DELETE_SEARCH_WORD = gql`
|
|
38
|
+
mutation deleteSearchWord($id: ID!) {
|
|
39
|
+
deleteSearchWord(id: $id) {
|
|
40
|
+
id
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
const CREATE_SEARCH_WORD_SYNONYM = gql`
|
|
46
|
+
mutation createSearchWordSynonym($searchWordId: ID!, $synonym: String!) {
|
|
47
|
+
createSearchWordSynonym(searchWordId: $searchWordId, synonym: $synonym) {
|
|
48
|
+
id
|
|
49
|
+
searchWordId
|
|
50
|
+
synonym
|
|
51
|
+
status
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
const DELETE_SEARCH_WORD_SYNONYM = gql`
|
|
57
|
+
mutation deleteSearchWordSynonym($id: ID!) {
|
|
58
|
+
deleteSearchWordSynonym(id: $id) {
|
|
59
|
+
id
|
|
60
|
+
searchWordId
|
|
61
|
+
synonym
|
|
62
|
+
status
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
const STOP_WORDS = gql`
|
|
68
|
+
query stopWords($input: StopWordSearchInput) {
|
|
69
|
+
stopWords(input: $input) {
|
|
70
|
+
id
|
|
71
|
+
stopWord
|
|
72
|
+
status
|
|
73
|
+
global
|
|
74
|
+
createdAt
|
|
75
|
+
updatedAt
|
|
76
|
+
createdBy
|
|
77
|
+
updatedBy
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
const CREATE_STOP_WORD = gql`
|
|
83
|
+
mutation createStopWord($input: StopWordInput!) {
|
|
84
|
+
createStopWord(input: $input) {
|
|
85
|
+
... on StopWord {
|
|
86
|
+
id
|
|
87
|
+
stopWord
|
|
88
|
+
__typename
|
|
89
|
+
}
|
|
90
|
+
... on StopWordExistsError {
|
|
91
|
+
message
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
const DELETE_STOP_WORD = gql`
|
|
98
|
+
mutation deleteStopWord($id: ID!) {
|
|
99
|
+
deleteStopWord(id: $id) {
|
|
100
|
+
id
|
|
101
|
+
stopWord
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
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
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
|
|
3
|
+
const CREATE_THEME = gql`
|
|
4
|
+
mutation CreateNewTheme($themeInput: ThemeInput!) {
|
|
5
|
+
createNewTheme(themeInput: $themeInput) {
|
|
6
|
+
id
|
|
7
|
+
themeId
|
|
8
|
+
colorPrimary
|
|
9
|
+
colorSecondary
|
|
10
|
+
textPrimary
|
|
11
|
+
textSecondary
|
|
12
|
+
error
|
|
13
|
+
warning
|
|
14
|
+
info
|
|
15
|
+
success
|
|
16
|
+
background
|
|
17
|
+
panelBackground
|
|
18
|
+
h1
|
|
19
|
+
h2
|
|
20
|
+
h3
|
|
21
|
+
h4
|
|
22
|
+
h5
|
|
23
|
+
h6
|
|
24
|
+
body1
|
|
25
|
+
body2
|
|
26
|
+
h1Font
|
|
27
|
+
h2Font
|
|
28
|
+
h3Font
|
|
29
|
+
h4Font
|
|
30
|
+
h5Font
|
|
31
|
+
h6Font
|
|
32
|
+
body1Font
|
|
33
|
+
body2Font
|
|
34
|
+
button
|
|
35
|
+
buttonFont
|
|
36
|
+
xsBreakpoint
|
|
37
|
+
smBreakpoint
|
|
38
|
+
mdBreakpoint
|
|
39
|
+
lgBreakpoint
|
|
40
|
+
xlBreakpoint
|
|
41
|
+
defaultTheme
|
|
42
|
+
themeName
|
|
43
|
+
fontFamily
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface Theme {
|
|
2
|
+
background: string;
|
|
3
|
+
textPrimary: string;
|
|
4
|
+
textSecondary: string;
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
colorSecondary: string;
|
|
7
|
+
themeId: string;
|
|
8
|
+
themeName: string;
|
|
9
|
+
error: string | null;
|
|
10
|
+
defaultTheme: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ThemeListQuery {
|
|
14
|
+
themeListList: Theme[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ThemeInputBase {
|
|
18
|
+
themeId?: string;
|
|
19
|
+
themeName: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ThemeInput extends ThemeInputBase {
|
|
22
|
+
textPrimary: string;
|
|
23
|
+
textSecondary: string;
|
|
24
|
+
colorPrimary: string;
|
|
25
|
+
colorSecondary: string;
|
|
26
|
+
success: string;
|
|
27
|
+
error: string;
|
|
28
|
+
info: string;
|
|
29
|
+
warning: string;
|
|
30
|
+
background: string;
|
|
31
|
+
panelBackground: string;
|
|
32
|
+
themeName: string;
|
|
33
|
+
baseTheme?: string;
|
|
34
|
+
newOrExisting: string;
|
|
35
|
+
defaultTheme: boolean;
|
|
36
|
+
fontFamily: string;
|
|
37
|
+
h1: number;
|
|
38
|
+
h2: number;
|
|
39
|
+
h3: number;
|
|
40
|
+
h4: number;
|
|
41
|
+
h5: number;
|
|
42
|
+
h6: number;
|
|
43
|
+
body1: number;
|
|
44
|
+
body2: number;
|
|
45
|
+
button: number;
|
|
46
|
+
h1Font: string | undefined;
|
|
47
|
+
h2Font: string | undefined;
|
|
48
|
+
h3Font: string | undefined;
|
|
49
|
+
h4Font: string | undefined;
|
|
50
|
+
h5Font: string | undefined;
|
|
51
|
+
h6Font: string | undefined;
|
|
52
|
+
body1Font: string | undefined;
|
|
53
|
+
body2Font: string | undefined;
|
|
54
|
+
buttonFont: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
export interface Font {
|
|
57
|
+
family: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ThemeData {
|
|
61
|
+
themeListList: ThemeInput[];
|
|
62
|
+
getFonts: Font[];
|
|
63
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
|
|
3
|
+
const THEME_READ = gql`
|
|
4
|
+
query ThemeListList {
|
|
5
|
+
themeListList {
|
|
6
|
+
background
|
|
7
|
+
textPrimary
|
|
8
|
+
textSecondary
|
|
9
|
+
colorPrimary
|
|
10
|
+
colorSecondary
|
|
11
|
+
themeId
|
|
12
|
+
themeName
|
|
13
|
+
error
|
|
14
|
+
defaultTheme
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const THEME_READ_LG = gql`
|
|
20
|
+
query ThemeListListLG {
|
|
21
|
+
themeListList {
|
|
22
|
+
id
|
|
23
|
+
themeId
|
|
24
|
+
colorPrimary
|
|
25
|
+
colorSecondary
|
|
26
|
+
textPrimary
|
|
27
|
+
textSecondary
|
|
28
|
+
error
|
|
29
|
+
warning
|
|
30
|
+
info
|
|
31
|
+
success
|
|
32
|
+
background
|
|
33
|
+
panelBackground
|
|
34
|
+
h1
|
|
35
|
+
h2
|
|
36
|
+
h3
|
|
37
|
+
h4
|
|
38
|
+
h5
|
|
39
|
+
h6
|
|
40
|
+
body1
|
|
41
|
+
body2
|
|
42
|
+
button
|
|
43
|
+
h1Font
|
|
44
|
+
h2Font
|
|
45
|
+
h3Font
|
|
46
|
+
h4Font
|
|
47
|
+
h5Font
|
|
48
|
+
h6Font
|
|
49
|
+
body1Font
|
|
50
|
+
body2Font
|
|
51
|
+
buttonFont
|
|
52
|
+
xsBreakpoint
|
|
53
|
+
smBreakpoint
|
|
54
|
+
mdBreakpoint
|
|
55
|
+
lgBreakpoint
|
|
56
|
+
xlBreakpoint
|
|
57
|
+
defaultTheme
|
|
58
|
+
themeName
|
|
59
|
+
fontFamily
|
|
60
|
+
}
|
|
61
|
+
getFonts {
|
|
62
|
+
family
|
|
63
|
+
}
|
|
64
|
+
settingGroups(options: { code: "GEN" }) {
|
|
65
|
+
settings {
|
|
66
|
+
id
|
|
67
|
+
settingGroupId
|
|
68
|
+
attributeId
|
|
69
|
+
displayName
|
|
70
|
+
name
|
|
71
|
+
enumValueId
|
|
72
|
+
value
|
|
73
|
+
textValue
|
|
74
|
+
enumId
|
|
75
|
+
isEnum
|
|
76
|
+
attributeEntityValueId
|
|
77
|
+
|
|
78
|
+
__typename
|
|
79
|
+
}
|
|
80
|
+
__typename
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
|
|
3
|
+
const USER_CHANGE_PASSWORD = gql`
|
|
4
|
+
mutation changePassword($oldPassword: String!, $newPassword: String!) {
|
|
5
|
+
changePassword(oldPassword: $oldPassword, newPassword: $newPassword) {
|
|
6
|
+
code
|
|
7
|
+
message
|
|
8
|
+
success
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
2
|
+
|
|
3
|
+
import { ADDRESS_FRAGMENT } from "../Address";
|
|
4
|
+
|
|
5
|
+
export const USER_FRAGMENT_XS = gql`
|
|
6
|
+
fragment UserFragmentXS on Me {
|
|
7
|
+
id
|
|
8
|
+
fullName
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
export const USER_FRAGMENT_SM = gql`
|
|
13
|
+
fragment UserFragmentSM on Me {
|
|
14
|
+
id
|
|
15
|
+
code
|
|
16
|
+
firstName
|
|
17
|
+
lastName
|
|
18
|
+
email
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export const USER_FRAGMENT_MD = gql`
|
|
23
|
+
${ADDRESS_FRAGMENT}
|
|
24
|
+
fragment UserFragmentMD on Me {
|
|
25
|
+
id
|
|
26
|
+
code
|
|
27
|
+
firstName
|
|
28
|
+
lastName
|
|
29
|
+
email
|
|
30
|
+
defaultBillingAddressId
|
|
31
|
+
defaultShippingAddressId
|
|
32
|
+
defaultShippingCountry
|
|
33
|
+
contact {
|
|
34
|
+
phoneNumber
|
|
35
|
+
id
|
|
36
|
+
}
|
|
37
|
+
addresses {
|
|
38
|
+
...AddressFragment
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
export const USER_FRAGMENT_LG = gql`
|
|
44
|
+
${ADDRESS_FRAGMENT}
|
|
45
|
+
fragment UserFragmentLG on Me {
|
|
46
|
+
id
|
|
47
|
+
code
|
|
48
|
+
firstName
|
|
49
|
+
lastName
|
|
50
|
+
email
|
|
51
|
+
defaultBillingAddressId
|
|
52
|
+
defaultShippingAddressId
|
|
53
|
+
defaultShippingCountry
|
|
54
|
+
contact {
|
|
55
|
+
phoneNumber
|
|
56
|
+
}
|
|
57
|
+
addresses {
|
|
58
|
+
...AddressFragment
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Address } from "../Address";
|
|
2
|
+
|
|
3
|
+
export interface Me {
|
|
4
|
+
id: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
account?: any;
|
|
8
|
+
contact?: any;
|
|
9
|
+
defaultBillingAddressId?: string;
|
|
10
|
+
defaultShippingAddressId?: string;
|
|
11
|
+
defaultShippingCountry?: string;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
fullName?: string;
|
|
14
|
+
lastName?: string;
|
|
15
|
+
addresses?: Address[];
|
|
16
|
+
roles?: any[];
|
|
17
|
+
claims?: any[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface RegistrationInput {
|
|
21
|
+
userName: string;
|
|
22
|
+
password?: string;
|
|
23
|
+
firstName: string;
|
|
24
|
+
lastName: string;
|
|
25
|
+
address?: Address | null;
|
|
26
|
+
orderNumber?: string | null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type { Address };
|