npm-pkg-hook 1.0.7 → 1.0.8
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/package.json +1 -1
- package/src/config/client/errors.js +24 -0
- package/src/config/client/index.js +1 -0
- package/src/hooks/index.js +4 -0
- package/src/hooks/useCatWithProduct/queries.js +5 -5
- package/src/hooks/useCategoryInStore/index.js +1 -0
- package/src/hooks/useClients/index.js +63 -13
- package/src/hooks/useClients/queries.js +10 -1
- package/src/hooks/useCreateProduct/helpers/useEditImageProduct/index.js +9 -2
- package/src/hooks/useCreateProduct/index.js +19 -6
- package/src/hooks/useEmployee/index.js +13 -0
- package/src/hooks/useEmployee/queries.js +17 -0
- package/src/hooks/useFormTools/index.js +22 -8
- package/src/hooks/useImagesStore/queries.js +213 -173
- package/src/hooks/useLazyScript/index.js +3 -3
- package/src/hooks/useLogout/index.js +41 -0
- package/src/hooks/useProductsFood/index.js +3 -3
- package/src/hooks/useProductsFood/queriesStore.js +632 -526
- package/src/hooks/useProductsFood/usetagsProducts.js +22 -10
- package/src/hooks/useReport/queries.js +2 -1
- package/src/hooks/useSales/index.js +47 -17
- package/src/hooks/useSetSession/index.js +21 -0
- package/src/hooks/useStore/index.js +42 -13
- package/src/hooks/useStoreContacts/index.js +47 -0
- package/src/hooks/useStoreContacts/queries.js +48 -0
- package/src/hooks/useUser/index.js +6 -1
- package/src/hooks/useUser/queries.js +18 -0
- package/src/utils/index.js +46 -9
|
@@ -1,108 +1,128 @@
|
|
|
1
|
-
import { gql } from
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
export const CREATE_SCHEDULE_STORE = gql`
|
|
4
|
-
mutation setStoreSchedule($input: IsStoreSchedule!){
|
|
5
|
-
setStoreSchedule(input: $input){
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
4
|
+
mutation setStoreSchedule($input: IsStoreSchedule!) {
|
|
5
|
+
setStoreSchedule(input: $input) {
|
|
6
|
+
success
|
|
7
|
+
message
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
11
|
export const GET_SCHEDULE_STORE = gql`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
12
|
+
query getStoreSchedules($schDay: Int, $idStore: ID) {
|
|
13
|
+
getStoreSchedules(schDay: $schDay, idStore: $idStore) {
|
|
14
|
+
schId
|
|
15
|
+
idStore
|
|
16
|
+
schDay
|
|
17
|
+
schHoSta
|
|
18
|
+
schHoEnd
|
|
19
|
+
schState
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
23
|
export const GET_ONE_SCHEDULE_STORE = gql`
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
24
|
+
query getOneStoreSchedules($schDay: Int, $idStore: ID) {
|
|
25
|
+
getOneStoreSchedules(schDay: $schDay, idStore: $idStore) {
|
|
26
|
+
schId
|
|
27
|
+
schDay
|
|
28
|
+
schHoSta
|
|
29
|
+
schHoEnd
|
|
30
|
+
schState
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
34
|
export const GET_CAT_OF_PRODUCTS = gql`
|
|
35
|
-
query getAllCatOfProducts($idStore: ID) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
35
|
+
query getAllCatOfProducts($idStore: ID) {
|
|
36
|
+
getAllCatOfProducts(idStore: $idStore) {
|
|
37
|
+
id
|
|
38
|
+
cpId
|
|
39
|
+
catName
|
|
40
|
+
catDescription
|
|
41
|
+
schState
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
45
|
export const REGISTER_CAT_OF_PRODUCTS = gql`
|
|
46
|
-
mutation
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
mutation updatedProducts($input: InputCatProducts) {
|
|
47
|
+
updatedProducts(input: $input) {
|
|
48
|
+
success
|
|
49
|
+
message
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
-
`
|
|
52
|
+
`;
|
|
53
53
|
export const REGISTER_CONTRACT_STORE = gql`
|
|
54
|
-
mutation createOneContract($input: InputContractType) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
mutation createOneContract($input: InputContractType) {
|
|
55
|
+
createOneContract(input: $input) {
|
|
56
|
+
success
|
|
57
|
+
message
|
|
58
|
+
}
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
-
`
|
|
60
|
+
`;
|
|
61
61
|
export const GET_ALL_EMPLOYEE_STORE = gql`
|
|
62
|
-
query employees
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
62
|
+
query employees($umId: ID, $cId: ID, $aId: ID) {
|
|
63
|
+
employees(umId: $umId, cId: $cId, aId: $aId) {
|
|
64
|
+
eId
|
|
65
|
+
idStore
|
|
66
|
+
id
|
|
67
|
+
idEmployee
|
|
68
|
+
eSalary
|
|
69
|
+
typeContract
|
|
70
|
+
uEmail
|
|
71
|
+
termContract
|
|
72
|
+
eDatAdm
|
|
73
|
+
eState
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
77
|
|
|
78
78
|
export const GET_ALL_PRODUCT_STORE = gql`
|
|
79
|
-
query productFoodsAll(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
query productFoodsAll(
|
|
80
|
+
$search: String
|
|
81
|
+
$min: Int
|
|
82
|
+
$max: Int
|
|
83
|
+
$gender: [String]
|
|
84
|
+
$pState: Int
|
|
85
|
+
$desc: [String]
|
|
86
|
+
$categories: [ID]
|
|
87
|
+
$fromDate: DateTime
|
|
88
|
+
$toDate: DateTime
|
|
89
|
+
) {
|
|
90
|
+
productFoodsAll(
|
|
91
|
+
search: $search
|
|
92
|
+
min: $min
|
|
93
|
+
max: $max
|
|
94
|
+
gender: $gender
|
|
95
|
+
desc: $desc
|
|
96
|
+
pState: $pState
|
|
97
|
+
categories: $categories
|
|
98
|
+
toDate: $toDate
|
|
99
|
+
fromDate: $fromDate
|
|
100
|
+
) {
|
|
93
101
|
pId
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
sizeId #Talla
|
|
103
|
+
colorId #Color
|
|
104
|
+
cId #Country
|
|
105
|
+
dId #Department
|
|
106
|
+
ctId #Cuidad
|
|
107
|
+
fId #Características
|
|
108
|
+
pName
|
|
109
|
+
getOneTags {
|
|
110
|
+
tPsId
|
|
111
|
+
idUser
|
|
112
|
+
idStore
|
|
113
|
+
pId
|
|
114
|
+
nameTag
|
|
115
|
+
}
|
|
116
|
+
ProPrice
|
|
117
|
+
ProDescuento
|
|
118
|
+
free
|
|
99
119
|
ProUniDisponibles
|
|
100
120
|
ProDescription
|
|
101
121
|
ProProtegido
|
|
102
122
|
ProAssurance
|
|
103
123
|
ValueDelivery
|
|
104
124
|
ProStar
|
|
105
|
-
|
|
125
|
+
sTateLogistic
|
|
106
126
|
ProImage
|
|
107
127
|
ProWidth
|
|
108
128
|
ProHeight
|
|
@@ -110,147 +130,170 @@ query productFoodsAll($search: String, $min: Int, $max: Int, $gender: [String],
|
|
|
110
130
|
ProWeight
|
|
111
131
|
ProQuantity
|
|
112
132
|
ProOutstanding
|
|
113
|
-
|
|
114
|
-
|
|
133
|
+
pDatCre
|
|
134
|
+
pDatMod
|
|
115
135
|
ProDelivery
|
|
116
136
|
ProVoltaje
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
pState
|
|
138
|
+
feat {
|
|
139
|
+
fId
|
|
140
|
+
thpId
|
|
141
|
+
hpqrQuestion
|
|
142
|
+
}
|
|
143
|
+
area {
|
|
144
|
+
aId
|
|
145
|
+
aName
|
|
146
|
+
}
|
|
126
147
|
}
|
|
127
148
|
}
|
|
128
|
-
|
|
129
|
-
`
|
|
149
|
+
`;
|
|
130
150
|
export const GET_ALL_RATING_START_STORE = gql`
|
|
131
|
-
query getAllRatingStar($idStore: ID){
|
|
132
|
-
getAllRatingStar(idStore: $idStore){
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
151
|
+
query getAllRatingStar($idStore: ID) {
|
|
152
|
+
getAllRatingStar(idStore: $idStore) {
|
|
153
|
+
rSId
|
|
154
|
+
rScore
|
|
155
|
+
idStore
|
|
156
|
+
createAt
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`;
|
|
140
160
|
export const GET_ALL_VISITOR_STORE = gql`
|
|
141
|
-
query getAllVisitorStore(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
161
|
+
query getAllVisitorStore(
|
|
162
|
+
$idStore: ID
|
|
163
|
+
$search: String
|
|
164
|
+
$min: Int
|
|
165
|
+
$max: Int
|
|
166
|
+
$fromDate: DateTime
|
|
167
|
+
$toDate: DateTime
|
|
168
|
+
) {
|
|
169
|
+
getAllVisitorStore(
|
|
170
|
+
idStore: $idStore
|
|
171
|
+
search: $search
|
|
172
|
+
min: $min
|
|
173
|
+
max: $max
|
|
174
|
+
fromDate: $fromDate
|
|
175
|
+
toDate: $toDate
|
|
176
|
+
) {
|
|
177
|
+
visitStoreId
|
|
178
|
+
id
|
|
179
|
+
idStore
|
|
180
|
+
createAt
|
|
181
|
+
updateAt
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
`;
|
|
151
185
|
export const GET_MIN_PEDIDO = gql`
|
|
152
|
-
query getMinPrice($idStore: ID){
|
|
153
|
-
getMinPrice(idStore: $idStore)
|
|
154
|
-
}
|
|
155
|
-
|
|
186
|
+
query getMinPrice($idStore: ID) {
|
|
187
|
+
getMinPrice(idStore: $idStore)
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
156
190
|
|
|
157
191
|
export const GET_All_RATING_STORE = gql`
|
|
158
|
-
query getAllRating($idStore: ID){
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
192
|
+
query getAllRating($idStore: ID) {
|
|
193
|
+
getAllRating(idStore: $idStore) {
|
|
194
|
+
idStore
|
|
195
|
+
rId
|
|
196
|
+
id
|
|
197
|
+
rAppearance
|
|
198
|
+
rTasty
|
|
199
|
+
rGoodTemperature
|
|
200
|
+
rGoodCondition
|
|
201
|
+
rState
|
|
202
|
+
createAt
|
|
203
|
+
updateAt
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
`;
|
|
173
207
|
export const CREATE_LOGO = gql`
|
|
174
|
-
mutation setALogoStore($logo: Upload, $idStore: ID) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
208
|
+
mutation setALogoStore($logo: Upload, $idStore: ID) {
|
|
209
|
+
setALogoStore(logo: $logo, idStore: $idStore) {
|
|
210
|
+
success
|
|
211
|
+
message
|
|
212
|
+
}
|
|
178
213
|
}
|
|
179
|
-
|
|
180
|
-
`
|
|
214
|
+
`;
|
|
181
215
|
export const CREATE_BANNER_STORE = gql`
|
|
182
|
-
mutation registerBanner($input: IBanner) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
`
|
|
216
|
+
mutation registerBanner($input: IBanner) {
|
|
217
|
+
registerBanner(input: $input) {
|
|
218
|
+
success
|
|
219
|
+
message
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
`;
|
|
190
223
|
export const DELETE_ONE_LOGO_STORE = gql`
|
|
191
224
|
mutation deleteALogoStore($idStore: ID, $Image: String) {
|
|
192
|
-
|
|
225
|
+
deleteALogoStore(idStore: $idStore, Image: $Image) {
|
|
193
226
|
message
|
|
194
227
|
success
|
|
228
|
+
}
|
|
195
229
|
}
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
`
|
|
230
|
+
`;
|
|
199
231
|
export const GET_ONE_BANNER_STORE = gql`
|
|
200
|
-
query getOneBanners($idStore: ID, $id: ID) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
232
|
+
query getOneBanners($idStore: ID, $id: ID) {
|
|
233
|
+
getOneBanners(idStore: $idStore, id: $id) {
|
|
234
|
+
bnId
|
|
235
|
+
id
|
|
236
|
+
path
|
|
237
|
+
bnImageFileName
|
|
238
|
+
idStore
|
|
239
|
+
bnState
|
|
240
|
+
createAt
|
|
241
|
+
updateAt
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
`;
|
|
213
245
|
export const DELETE_ONE_BANNER_STORE = gql`
|
|
214
|
-
mutation DeleteOneBanner(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
246
|
+
mutation DeleteOneBanner(
|
|
247
|
+
$bnState: Int
|
|
248
|
+
$idStore: ID
|
|
249
|
+
$bnId: ID
|
|
250
|
+
$bnImage: String
|
|
251
|
+
$bnImageFileName: String
|
|
252
|
+
) {
|
|
253
|
+
DeleteOneBanner(
|
|
254
|
+
bnState: $bnState
|
|
255
|
+
idStore: $idStore
|
|
256
|
+
bnId: $bnId
|
|
257
|
+
bnImage: $bnImage
|
|
258
|
+
bnImageFileName: $bnImageFileName
|
|
259
|
+
) {
|
|
260
|
+
success
|
|
261
|
+
message
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`;
|
|
222
265
|
|
|
223
266
|
export const GET_ALL_PQR = gql`
|
|
224
|
-
query getOnePqr($hpqrId: ID, $thpId: ID){
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
267
|
+
query getOnePqr($hpqrId: ID, $thpId: ID) {
|
|
268
|
+
getOnePqr(hpqrId: $hpqrId, thpId: $thpId) {
|
|
269
|
+
hpqrId
|
|
270
|
+
thpId
|
|
271
|
+
hpqrQuestion
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
`;
|
|
232
275
|
export const GET_ONE_COLOR = gql`
|
|
233
|
-
query getAllColor{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
276
|
+
query getAllColor {
|
|
277
|
+
getAllColor {
|
|
278
|
+
colorId
|
|
279
|
+
colorName
|
|
280
|
+
colorState
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
`;
|
|
241
284
|
export const UPDATE = gql`
|
|
242
|
-
mutation updateProducts($input: InputProduct){
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
285
|
+
mutation updateProducts($input: InputProduct) {
|
|
286
|
+
updateProducts(input: $input) {
|
|
287
|
+
pId
|
|
288
|
+
sizeId #Talla
|
|
289
|
+
colorId #Color
|
|
290
|
+
cId #Country
|
|
291
|
+
dId #Department
|
|
292
|
+
ctId #Cuidad
|
|
293
|
+
fId #Características
|
|
294
|
+
pName
|
|
295
|
+
ProPrice
|
|
296
|
+
ProDescuento
|
|
254
297
|
ProUniDisponibles
|
|
255
298
|
ProDescription
|
|
256
299
|
ProProtegido
|
|
@@ -266,33 +309,32 @@ mutation updateProducts($input: InputProduct){
|
|
|
266
309
|
ProOutstanding
|
|
267
310
|
ProDelivery
|
|
268
311
|
ProVoltaje
|
|
312
|
+
}
|
|
269
313
|
}
|
|
270
|
-
|
|
271
|
-
`
|
|
314
|
+
`;
|
|
272
315
|
export const UPDATE_IMAGE_PRODUCT_FOOD = gql`
|
|
273
316
|
mutation setImageProducts($input: IFileImageProductFood) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
317
|
+
setImageProducts(input: $input) {
|
|
318
|
+
success
|
|
319
|
+
message
|
|
320
|
+
}
|
|
278
321
|
}
|
|
279
|
-
|
|
280
|
-
`
|
|
322
|
+
`;
|
|
281
323
|
export const UPDATE_PRODUCT_FOOD = gql`
|
|
282
|
-
mutation updateProductFoods($input: InputProductFood){
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
324
|
+
mutation updateProductFoods($input: InputProductFood) {
|
|
325
|
+
updateProductFoods(input: $input) {
|
|
326
|
+
pId
|
|
327
|
+
sizeId #Talla
|
|
328
|
+
colorId #Color
|
|
329
|
+
cId #Country
|
|
330
|
+
dId #Department
|
|
331
|
+
ctId #Cuidad
|
|
332
|
+
fId #Características
|
|
333
|
+
pName
|
|
334
|
+
pCode
|
|
335
|
+
ProPrice
|
|
336
|
+
carProId
|
|
337
|
+
ProDescuento
|
|
296
338
|
ProUniDisponibles
|
|
297
339
|
ValueDelivery
|
|
298
340
|
ProDescription
|
|
@@ -309,41 +351,51 @@ mutation updateProductFoods($input: InputProductFood){
|
|
|
309
351
|
ProOutstanding
|
|
310
352
|
ProDelivery
|
|
311
353
|
ProVoltaje
|
|
354
|
+
}
|
|
312
355
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
// UPDATE EXTRAS
|
|
356
|
+
`;
|
|
357
|
+
// UPDATE EXTRAS
|
|
316
358
|
export const UPDATE_EXTRAS_PRODUCT_FOOD = gql`
|
|
317
|
-
mutation updateExtProductFoods($input: InputExtProductFood){
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
|
|
359
|
+
mutation updateExtProductFoods($input: InputExtProductFood) {
|
|
360
|
+
updateExtProductFoods(input: $input) {
|
|
361
|
+
pId
|
|
362
|
+
exPid
|
|
363
|
+
exState
|
|
364
|
+
extraName
|
|
365
|
+
extraPrice
|
|
366
|
+
state
|
|
367
|
+
pDatCre
|
|
368
|
+
pDatMod
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
`;
|
|
330
372
|
// EXTRA PRODUCTS
|
|
331
373
|
export const UPDATE_EXTRAS_PRODUCT_FOOD_OPTIONAL = gql`
|
|
332
|
-
mutation updateExtProductFoodsOptional($input: InputExtProductFoodOptional){
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
374
|
+
mutation updateExtProductFoodsOptional($input: InputExtProductFoodOptional) {
|
|
375
|
+
updateExtProductFoodsOptional(input: $input) {
|
|
376
|
+
pId
|
|
377
|
+
opExPid
|
|
378
|
+
OptionalProName
|
|
379
|
+
code
|
|
380
|
+
required
|
|
381
|
+
state
|
|
382
|
+
numbersOptionalOnly
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
344
386
|
export const GET_EXTRAS_PRODUCT_FOOD_OPTIONAL = gql`
|
|
345
|
-
query ExtProductFoodsOptionalAll(
|
|
346
|
-
|
|
387
|
+
query ExtProductFoodsOptionalAll(
|
|
388
|
+
$search: String
|
|
389
|
+
$min: Int
|
|
390
|
+
$max: Int
|
|
391
|
+
$pId: ID
|
|
392
|
+
) {
|
|
393
|
+
ExtProductFoodsOptionalAll(
|
|
394
|
+
search: $search
|
|
395
|
+
min: $min
|
|
396
|
+
max: $max
|
|
397
|
+
pId: $pId
|
|
398
|
+
) {
|
|
347
399
|
pId
|
|
348
400
|
opExPid
|
|
349
401
|
OptionalProName
|
|
@@ -353,7 +405,7 @@ query ExtProductFoodsOptionalAll($search: String, $min: Int, $max: Int, $pId: ID
|
|
|
353
405
|
pDatCre
|
|
354
406
|
required
|
|
355
407
|
pDatMod
|
|
356
|
-
|
|
408
|
+
ExtProductFoodsSubOptionalAll {
|
|
357
409
|
pId
|
|
358
410
|
opExPid
|
|
359
411
|
idStore
|
|
@@ -364,13 +416,15 @@ query ExtProductFoodsOptionalAll($search: String, $min: Int, $max: Int, $pId: ID
|
|
|
364
416
|
state
|
|
365
417
|
pDatCre
|
|
366
418
|
pDatMod
|
|
419
|
+
}
|
|
367
420
|
}
|
|
368
421
|
}
|
|
369
|
-
|
|
370
|
-
`
|
|
422
|
+
`;
|
|
371
423
|
export const GET_EXTRAS_PRODUCT_FOOD_SUB_OPTIONAL = gql`
|
|
372
|
-
mutation updateExtProductFoodsSubOptional(
|
|
373
|
-
|
|
424
|
+
mutation updateExtProductFoodsSubOptional(
|
|
425
|
+
$input: InputExtProductFoodSubOptional
|
|
426
|
+
) {
|
|
427
|
+
updateExtProductFoodsSubOptional(input: $input) {
|
|
374
428
|
pId
|
|
375
429
|
opExPid
|
|
376
430
|
idStore
|
|
@@ -381,52 +435,68 @@ mutation updateExtProductFoodsSubOptional($input: InputExtProductFoodSubOptional
|
|
|
381
435
|
state
|
|
382
436
|
pDatCre
|
|
383
437
|
pDatMod
|
|
438
|
+
}
|
|
384
439
|
}
|
|
385
|
-
|
|
386
|
-
`
|
|
440
|
+
`;
|
|
387
441
|
|
|
388
442
|
// CREATE EXTRAS PRODUCT
|
|
389
443
|
export const UPDATE_MULTI_EXTRAS_PRODUCT_FOOD = gql`
|
|
390
|
-
mutation updateMultipleExtProductFoods(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
444
|
+
mutation updateMultipleExtProductFoods(
|
|
445
|
+
$inputLineItems: ILineItemsExtraFinal
|
|
446
|
+
) {
|
|
447
|
+
updateMultipleExtProductFoods(inputLineItems: $inputLineItems) {
|
|
448
|
+
pId
|
|
449
|
+
exPid
|
|
450
|
+
exState
|
|
451
|
+
extraName
|
|
452
|
+
extraPrice
|
|
453
|
+
state
|
|
454
|
+
pDatCre
|
|
455
|
+
pDatMod
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
`;
|
|
403
459
|
|
|
404
460
|
export const DELETE_ONE_PRODUCT = gql`
|
|
405
|
-
mutation deleteProducts($input: IDeleteProduct){
|
|
406
|
-
|
|
407
|
-
|
|
461
|
+
mutation deleteProducts($input: IDeleteProduct) {
|
|
462
|
+
deleteProducts(input: $input) {
|
|
463
|
+
pId
|
|
464
|
+
}
|
|
408
465
|
}
|
|
409
|
-
|
|
410
|
-
`
|
|
466
|
+
`;
|
|
411
467
|
export const GET_ALL_PRODUCTS = gql`
|
|
412
|
-
query productsAll(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
468
|
+
query productsAll(
|
|
469
|
+
$search: String
|
|
470
|
+
$min: Int
|
|
471
|
+
$max: Int
|
|
472
|
+
$gender: [String]
|
|
473
|
+
$desc: [String]
|
|
474
|
+
$categories: [ID]
|
|
475
|
+
) {
|
|
476
|
+
productsAll(
|
|
477
|
+
search: $search
|
|
478
|
+
min: $min
|
|
479
|
+
max: $max
|
|
480
|
+
gender: $gender
|
|
481
|
+
desc: $desc
|
|
482
|
+
categories: $categories
|
|
483
|
+
) {
|
|
484
|
+
pId
|
|
485
|
+
sizeId #Talla
|
|
486
|
+
colorId #Color
|
|
487
|
+
cId #Country
|
|
488
|
+
dId #Department
|
|
489
|
+
ctId #Cuidad
|
|
490
|
+
fId #Características
|
|
491
|
+
pName
|
|
492
|
+
ProPrice
|
|
493
|
+
ProDescuento
|
|
424
494
|
ProUniDisponibles
|
|
425
495
|
ProDescription
|
|
426
496
|
ProProtegido
|
|
427
497
|
ProAssurance
|
|
428
498
|
ProStar
|
|
429
|
-
|
|
499
|
+
sTateLogistic
|
|
430
500
|
ProImage
|
|
431
501
|
ProWidth
|
|
432
502
|
ProHeight
|
|
@@ -436,110 +506,122 @@ query productsAll($search: String, $min: Int, $max: Int, $gender: [String], $des
|
|
|
436
506
|
ProOutstanding
|
|
437
507
|
ProDelivery
|
|
438
508
|
ProVoltaje
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
509
|
+
pState
|
|
510
|
+
feat {
|
|
511
|
+
fId
|
|
512
|
+
thpId
|
|
513
|
+
hpqrQuestion
|
|
514
|
+
}
|
|
515
|
+
area {
|
|
516
|
+
aId
|
|
517
|
+
aName
|
|
518
|
+
}
|
|
448
519
|
}
|
|
449
|
-
|
|
450
520
|
}
|
|
451
|
-
|
|
452
|
-
`
|
|
521
|
+
`;
|
|
453
522
|
export const GET_ALL_FOOD_PRODUCTS = gql`
|
|
454
|
-
query getFoodAllProduct(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
523
|
+
query getFoodAllProduct(
|
|
524
|
+
$search: String
|
|
525
|
+
$min: Int
|
|
526
|
+
$max: Int
|
|
527
|
+
$gender: [String]
|
|
528
|
+
$desc: [String]
|
|
529
|
+
$categories: [ID]
|
|
530
|
+
) {
|
|
531
|
+
getFoodAllProduct(
|
|
532
|
+
search: $search
|
|
533
|
+
min: $min
|
|
534
|
+
max: $max
|
|
535
|
+
gender: $gender
|
|
536
|
+
desc: $desc
|
|
537
|
+
categories: $categories
|
|
538
|
+
) {
|
|
539
|
+
id
|
|
540
|
+
pfId
|
|
541
|
+
idStore
|
|
542
|
+
ProPrice
|
|
543
|
+
ProDescuento
|
|
544
|
+
ProDescription
|
|
545
|
+
pName
|
|
546
|
+
pState
|
|
547
|
+
sTateLogistic
|
|
548
|
+
ProStar
|
|
549
|
+
ProImage
|
|
550
|
+
ProHeight
|
|
551
|
+
ProWeight
|
|
552
|
+
ProOutstanding
|
|
553
|
+
ProDelivery
|
|
554
|
+
pDatCre
|
|
555
|
+
pDatMod
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
`;
|
|
477
559
|
|
|
478
560
|
export const EDIT_PRODUCT = gql`
|
|
479
561
|
mutation editProductFoods($input: InputProductFood) {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
562
|
+
editProductFoods(input: $input) {
|
|
563
|
+
success
|
|
564
|
+
message
|
|
565
|
+
}
|
|
483
566
|
}
|
|
484
|
-
|
|
485
|
-
`
|
|
567
|
+
`;
|
|
486
568
|
export const SET_EDIT_STORE_NAME = gql`
|
|
487
|
-
mutation setEditNameStore($StoreName: String){
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
569
|
+
mutation setEditNameStore($StoreName: String) {
|
|
570
|
+
setEditNameStore(StoreName: $StoreName) {
|
|
571
|
+
success
|
|
572
|
+
message
|
|
573
|
+
}
|
|
491
574
|
}
|
|
492
|
-
|
|
493
|
-
`
|
|
575
|
+
`;
|
|
494
576
|
export const GET_ONE_PRODUCTS_FOOD = gql`
|
|
495
|
-
query productFoodsOne($pId: ID){
|
|
496
|
-
productFoodsOne(pId: $pId
|
|
577
|
+
query productFoodsOne($pId: ID) {
|
|
578
|
+
productFoodsOne(pId: $pId) {
|
|
579
|
+
pId
|
|
580
|
+
carProId
|
|
581
|
+
pCode
|
|
582
|
+
sizeId
|
|
583
|
+
colorId
|
|
584
|
+
idStore
|
|
585
|
+
cId
|
|
586
|
+
caId
|
|
587
|
+
dId
|
|
588
|
+
ctId
|
|
589
|
+
tpId
|
|
590
|
+
|
|
591
|
+
fId
|
|
592
|
+
pName
|
|
593
|
+
ProPrice
|
|
594
|
+
ProDescuento
|
|
595
|
+
ValueDelivery
|
|
596
|
+
ProUniDisponibles
|
|
597
|
+
ProDescription
|
|
598
|
+
ProProtegido
|
|
599
|
+
ProAssurance
|
|
600
|
+
ProImage
|
|
601
|
+
ProStar
|
|
602
|
+
ProWidth
|
|
603
|
+
ProHeight
|
|
604
|
+
ProLength
|
|
605
|
+
ProWeight
|
|
606
|
+
ProQuantity
|
|
607
|
+
ProOutstanding
|
|
608
|
+
ProDelivery
|
|
609
|
+
ProVoltaje
|
|
610
|
+
pState
|
|
611
|
+
sTateLogistic
|
|
612
|
+
pDatCre
|
|
613
|
+
pDatMod
|
|
614
|
+
ExtProductFoodsAll {
|
|
497
615
|
pId
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
cId
|
|
504
|
-
caId
|
|
505
|
-
dId
|
|
506
|
-
ctId
|
|
507
|
-
tpId
|
|
508
|
-
|
|
509
|
-
fId
|
|
510
|
-
pName
|
|
511
|
-
ProPrice
|
|
512
|
-
ProDescuento
|
|
513
|
-
ValueDelivery
|
|
514
|
-
ProUniDisponibles
|
|
515
|
-
ProDescription
|
|
516
|
-
ProProtegido
|
|
517
|
-
ProAssurance
|
|
518
|
-
ProImage
|
|
519
|
-
ProStar
|
|
520
|
-
ProWidth
|
|
521
|
-
ProHeight
|
|
522
|
-
ProLength
|
|
523
|
-
ProWeight
|
|
524
|
-
ProQuantity
|
|
525
|
-
ProOutstanding
|
|
526
|
-
ProDelivery
|
|
527
|
-
ProVoltaje
|
|
528
|
-
pState
|
|
529
|
-
sTateLogistic
|
|
616
|
+
exPid
|
|
617
|
+
exState
|
|
618
|
+
extraName
|
|
619
|
+
extraPrice
|
|
620
|
+
state
|
|
530
621
|
pDatCre
|
|
531
622
|
pDatMod
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
exPid
|
|
535
|
-
exState
|
|
536
|
-
extraName
|
|
537
|
-
extraPrice
|
|
538
|
-
state
|
|
539
|
-
pDatCre
|
|
540
|
-
pDatMod
|
|
541
|
-
}
|
|
542
|
-
getStore {
|
|
623
|
+
}
|
|
624
|
+
getStore {
|
|
543
625
|
idStore
|
|
544
626
|
cId
|
|
545
627
|
id
|
|
@@ -569,168 +651,192 @@ query productFoodsOne($pId: ID){
|
|
|
569
651
|
secVia
|
|
570
652
|
addressStore
|
|
571
653
|
createdAt
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
654
|
+
department {
|
|
655
|
+
dId
|
|
656
|
+
cId
|
|
657
|
+
dName
|
|
658
|
+
dDatCre
|
|
659
|
+
dDatMod
|
|
660
|
+
dState
|
|
661
|
+
}
|
|
662
|
+
pais {
|
|
663
|
+
cId
|
|
664
|
+
cName
|
|
665
|
+
cCalCod
|
|
666
|
+
cState
|
|
667
|
+
}
|
|
668
|
+
city {
|
|
669
|
+
ctId
|
|
670
|
+
dId
|
|
671
|
+
cName
|
|
672
|
+
cState
|
|
673
|
+
cDatCre
|
|
674
|
+
cDatMod
|
|
675
|
+
}
|
|
594
676
|
}
|
|
595
677
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
`
|
|
600
|
-
|
|
678
|
+
}
|
|
679
|
+
`;
|
|
601
680
|
|
|
602
681
|
export const CREATE_FOOD_PRODUCT = gql`
|
|
603
|
-
mutation
|
|
604
|
-
newRegisterFoodProduct(input: $input){
|
|
682
|
+
mutation newRegisterFoodProduct($input: FoodProductInput) {
|
|
683
|
+
newRegisterFoodProduct(input: $input) {
|
|
605
684
|
success
|
|
606
685
|
message
|
|
607
686
|
}
|
|
608
687
|
}
|
|
609
|
-
|
|
688
|
+
`;
|
|
610
689
|
export const GET_BANNER_PROMO_DASHBOARD = gql`
|
|
611
|
-
query getPromoStoreAdmin($min: Int, $max: Int){
|
|
612
|
-
getPromoStoreAdmin(min: $min, max: $max){
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
|
|
690
|
+
query getPromoStoreAdmin($min: Int, $max: Int) {
|
|
691
|
+
getPromoStoreAdmin(min: $min, max: $max) {
|
|
692
|
+
pSoId
|
|
693
|
+
comments
|
|
694
|
+
mainName
|
|
695
|
+
metaTags
|
|
696
|
+
urlImage
|
|
697
|
+
bPromoState
|
|
698
|
+
createAt
|
|
699
|
+
updateAt
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
`;
|
|
624
703
|
|
|
625
704
|
export const CREATE_STORE_CALENDAR = gql`
|
|
626
|
-
mutation
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
705
|
+
mutation setStoreSchedule($input: ITstoreSchedule!) {
|
|
706
|
+
setStoreSchedule(input: $input) {
|
|
707
|
+
message
|
|
708
|
+
success
|
|
709
|
+
}
|
|
630
710
|
}
|
|
631
|
-
|
|
632
|
-
`
|
|
711
|
+
`;
|
|
633
712
|
export const DELETE_ONE_CAT_PRODUCTS = gql`
|
|
634
|
-
mutation
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
713
|
+
mutation deleteCatOfProducts($idPc: ID!, $pState: Int) {
|
|
714
|
+
deleteCatOfProducts(idPc: $idPc, pState: $pState) {
|
|
715
|
+
success
|
|
716
|
+
message
|
|
717
|
+
}
|
|
638
718
|
}
|
|
639
|
-
|
|
640
|
-
`
|
|
719
|
+
`;
|
|
641
720
|
export const DELETE_ONE_CAT_PRODUCTS_FINAL = gql`
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
721
|
+
mutation deleteCatFinalOfProducts($idPc: ID, $withProduct: Boolean) {
|
|
722
|
+
deleteCatFinalOfProducts(idPc: $idPc, withProduct: $withProduct) {
|
|
723
|
+
success
|
|
724
|
+
message
|
|
725
|
+
}
|
|
647
726
|
}
|
|
648
|
-
|
|
649
|
-
`
|
|
727
|
+
`;
|
|
650
728
|
export const DELETE_EXTRA_PRODUCTS = gql`
|
|
651
|
-
mutation
|
|
652
|
-
deleteextraproductfoods(id: $id, state: $state){
|
|
653
|
-
success
|
|
729
|
+
mutation deleteextraproductfoods($id: ID, $state: Int) {
|
|
730
|
+
deleteextraproductfoods(id: $id, state: $state) {
|
|
731
|
+
success
|
|
654
732
|
message
|
|
733
|
+
}
|
|
655
734
|
}
|
|
656
|
-
|
|
657
|
-
`
|
|
735
|
+
`;
|
|
658
736
|
export const EDIT_EXTRA_PRODUCTS = gql`
|
|
659
|
-
mutation editExtProductFoods($input: InputExtProductFood!) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
737
|
+
mutation editExtProductFoods($input: InputExtProductFood!) {
|
|
738
|
+
editExtProductFoods(input: $input) {
|
|
739
|
+
success
|
|
740
|
+
message
|
|
741
|
+
}
|
|
663
742
|
}
|
|
664
|
-
|
|
665
|
-
`
|
|
743
|
+
`;
|
|
666
744
|
export const DELETE_CAT_EXTRA_PRODUCTS = gql`
|
|
667
|
-
mutation
|
|
668
|
-
DeleteExtProductFoodsOptional(opExPid: $opExPid, state: $state){
|
|
669
|
-
success
|
|
745
|
+
mutation DeleteExtProductFoodsOptional($opExPid: ID, $state: Int) {
|
|
746
|
+
DeleteExtProductFoodsOptional(opExPid: $opExPid, state: $state) {
|
|
747
|
+
success
|
|
670
748
|
message
|
|
749
|
+
}
|
|
671
750
|
}
|
|
672
|
-
|
|
673
|
-
`
|
|
751
|
+
`;
|
|
674
752
|
export const DELETE_CAT_EXTRA_SUB_OPTIONAL_PRODUCTS = gql`
|
|
675
|
-
mutation
|
|
676
|
-
DeleteExtFoodSubsOptional(opSubExPid: $opSubExPid, state: $state){
|
|
677
|
-
success
|
|
753
|
+
mutation DeleteExtFoodSubsOptional($opSubExPid: ID, $state: Int) {
|
|
754
|
+
DeleteExtFoodSubsOptional(opSubExPid: $opSubExPid, state: $state) {
|
|
755
|
+
success
|
|
678
756
|
message
|
|
757
|
+
}
|
|
679
758
|
}
|
|
680
|
-
|
|
681
|
-
`
|
|
759
|
+
`;
|
|
682
760
|
export const UPDATE_CAT_IN_PRODUCT = gql`
|
|
683
|
-
mutation
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
761
|
+
mutation updatedCatWithProducts($input: LineItemsIdPro) {
|
|
762
|
+
updatedCatWithProducts(input: $input) {
|
|
763
|
+
success
|
|
764
|
+
message
|
|
765
|
+
}
|
|
687
766
|
}
|
|
688
|
-
|
|
689
|
-
`
|
|
767
|
+
`;
|
|
690
768
|
export const GET_ULTIMATE_CATEGORY_PRODUCTS = gql`
|
|
691
|
-
query catProductsAll(
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
769
|
+
query catProductsAll(
|
|
770
|
+
$search: String
|
|
771
|
+
$min: Int
|
|
772
|
+
$max: Int
|
|
773
|
+
$gender: [String]
|
|
774
|
+
$desc: [String]
|
|
775
|
+
$categories: [ID]
|
|
776
|
+
) {
|
|
777
|
+
catProductsAll(
|
|
778
|
+
search: $search
|
|
779
|
+
min: $min
|
|
780
|
+
max: $max
|
|
781
|
+
gender: $gender
|
|
782
|
+
desc: $desc
|
|
783
|
+
categories: $categories
|
|
784
|
+
) {
|
|
785
|
+
carProId
|
|
786
|
+
idStore
|
|
787
|
+
pName
|
|
788
|
+
ProDescription
|
|
789
|
+
ProImage
|
|
790
|
+
pState
|
|
791
|
+
pDatCre
|
|
792
|
+
pDatMod
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
`;
|
|
704
796
|
export const GET_ALL_EXTRA_PRODUCT = gql`
|
|
705
|
-
query ExtProductFoodsAll($search: String, $min: Int, $max: Int, $pId: ID) {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
|
|
797
|
+
query ExtProductFoodsAll($search: String, $min: Int, $max: Int, $pId: ID) {
|
|
798
|
+
ExtProductFoodsAll(search: $search, min: $min, max: $max, pId: $pId) {
|
|
799
|
+
pId
|
|
800
|
+
exPid
|
|
801
|
+
exState
|
|
802
|
+
extraName
|
|
803
|
+
extraPrice
|
|
804
|
+
state
|
|
805
|
+
pDatCre
|
|
806
|
+
pDatMod
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
`;
|
|
718
810
|
export const GET_ALL_CATEGORIES_WITH_PRODUCT = gql`
|
|
719
|
-
query getCatProductsWithProduct(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
811
|
+
query getCatProductsWithProduct(
|
|
812
|
+
$search: String
|
|
813
|
+
$min: Int
|
|
814
|
+
$max: Int
|
|
815
|
+
$gender: [String]
|
|
816
|
+
$desc: [String]
|
|
817
|
+
$categories: [ID]
|
|
818
|
+
) {
|
|
819
|
+
getCatProductsWithProduct(
|
|
820
|
+
search: $search
|
|
821
|
+
min: $min
|
|
822
|
+
max: $max
|
|
823
|
+
gender: $gender
|
|
824
|
+
desc: $desc
|
|
825
|
+
categories: $categories
|
|
826
|
+
) {
|
|
827
|
+
carProId
|
|
828
|
+
pState
|
|
829
|
+
pState
|
|
830
|
+
ProImage
|
|
831
|
+
idStore
|
|
832
|
+
pName
|
|
833
|
+
ProDescription
|
|
834
|
+
ProImage
|
|
835
|
+
pState
|
|
836
|
+
pDatCre
|
|
837
|
+
pDatMod
|
|
838
|
+
productFoodsAll {
|
|
839
|
+
pId
|
|
734
840
|
sizeId
|
|
735
841
|
colorId
|
|
736
842
|
carProId
|
|
@@ -761,20 +867,20 @@ query getCatProductsWithProduct($search: String, $min: Int, $max: Int, $gender:
|
|
|
761
867
|
sTateLogistic
|
|
762
868
|
pDatCre
|
|
763
869
|
pDatMod
|
|
870
|
+
}
|
|
764
871
|
}
|
|
765
872
|
}
|
|
766
|
-
|
|
767
|
-
`
|
|
873
|
+
`;
|
|
768
874
|
|
|
769
875
|
export const REGISTER_TAGS_PRODUCT = gql`
|
|
770
|
-
mutation registerTag($input: ITag) {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
|
|
876
|
+
mutation registerTag($input: ITag) {
|
|
877
|
+
registerTag(input: $input) {
|
|
878
|
+
tPsId
|
|
879
|
+
idUser
|
|
880
|
+
idStore
|
|
881
|
+
pId
|
|
882
|
+
nameTag
|
|
883
|
+
aName
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
`;
|