npm-pkg-hook 1.0.1 → 1.0.4

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.
Files changed (65) hide show
  1. package/.env +1 -0
  2. package/.eslintrc.js +132 -0
  3. package/.github/pull_request_template.md +18 -0
  4. package/.github/workflows/pepeline.yaml +30 -0
  5. package/.vscode/extensions.json +6 -0
  6. package/.vscode/settings.json +12 -0
  7. package/next.config.js +4 -4
  8. package/package.json +17 -7
  9. package/script.txt +7 -0
  10. package/src/hooks/index.js +39 -8
  11. package/src/hooks/updateExtProductFoodsOptional/index.js +38 -0
  12. package/src/hooks/useAcumulateDate/index.js +14 -14
  13. package/src/hooks/useAnimationText/index.jsx +7 -6
  14. package/src/hooks/useBanner/index.js +19 -0
  15. package/src/hooks/useCatWithProduct/index.js +42 -0
  16. package/src/hooks/useCatWithProduct/queries.js +172 -0
  17. package/src/hooks/useCategoryInStore/index.js +94 -0
  18. package/src/hooks/{useGetCategorieStore → useCategoryInStore}/queries.js +0 -0
  19. package/src/hooks/useChartData/index.js +168 -0
  20. package/src/hooks/useCheckbox/index.js +114 -0
  21. package/src/hooks/useClients/index.js +13 -0
  22. package/src/hooks/useClients/queries.js +118 -0
  23. package/src/hooks/useConnection/index.js +23 -0
  24. package/src/hooks/useCreateProduct/helpers/useEditImageProduct/index.js +165 -0
  25. package/src/hooks/useCreateProduct/index.js +268 -0
  26. package/src/hooks/useDessert/index.js +141 -0
  27. package/src/hooks/useDrag/index.js +14 -9
  28. package/src/hooks/useFetchMoreInteractions/index.jsx +6 -3
  29. package/src/hooks/useFormTools/index.js +16 -3
  30. package/src/hooks/useFormatDate/index.js +34 -0
  31. package/src/hooks/useImageOptimization/index.js +28 -0
  32. package/src/hooks/useImageWeight/index.js +52 -0
  33. package/src/hooks/useImagesStore/index.js +171 -0
  34. package/src/hooks/useImagesStore/queries.js +216 -0
  35. package/src/hooks/useIntersection/index.js +54 -1
  36. package/src/hooks/useLazyScript/index.js +72 -0
  37. package/src/hooks/useLocationNavigate/index.js +1 -1
  38. package/src/hooks/useMobile/index.js +38 -0
  39. package/src/hooks/useMutateHeight/index.js +37 -0
  40. package/src/hooks/useProductsFood/index.js +190 -0
  41. package/src/hooks/useProductsFood/queriesStore.js +781 -0
  42. package/src/hooks/useProductsFood/usetagsProducts.js +57 -0
  43. package/src/hooks/useReport/index.js +35 -0
  44. package/src/hooks/useReport/queries.js +122 -0
  45. package/src/hooks/useRestaurant/queries.js +11 -1
  46. package/src/hooks/useSales/index.js +589 -0
  47. package/src/hooks/useSales/queries.js +291 -0
  48. package/src/hooks/useSales/useGetSale.js +12 -0
  49. package/src/hooks/useSales/useTotalSales.js +17 -0
  50. package/src/hooks/useSaveAvailableProduct/helpers/index.js +30 -0
  51. package/src/hooks/useSaveAvailableProduct/index.js +26 -0
  52. package/src/hooks/useSaveAvailableProduct/queries.js +10 -0
  53. package/src/hooks/useSchedule/index.jsx +23 -0
  54. package/src/hooks/useStore/index.js +18 -0
  55. package/src/hooks/useStore/queries.js +136 -0
  56. package/src/hooks/useStoreCalendar/index.js +7 -0
  57. package/src/hooks/useUpdateCart/index.js +5 -4
  58. package/src/hooks/useUpdateExtProductFoodsSubOptional/index.js +37 -0
  59. package/src/hooks/useUser/index.js +6 -2
  60. package/src/hooks/useUser/queries.js +69 -0
  61. package/src/index.jsx +2 -1
  62. package/src/mock/dessert/index.js +16 -0
  63. package/src/mock/index.js +2 -0
  64. package/src/utils/index.js +80 -1
  65. package/src/hooks/useGetCategorieStore/index.js +0 -21
@@ -0,0 +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
+ 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
+ }
781
+ `