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