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.
@@ -1,108 +1,128 @@
1
- import { gql } from '@apollo/client'
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
- success
7
- message
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
- 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
- }
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
- query getOneStoreSchedules($schDay: Int, $idStore: ID) {
25
- getOneStoreSchedules(schDay: $schDay, idStore: $idStore){
26
- schId
27
- schDay
28
- schHoSta
29
- schHoEnd
30
- schState
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
- getAllCatOfProducts(idStore: $idStore) {
37
- id
38
- cpId
39
- catName
40
- catDescription
41
- schState
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 updatedProducts($input: InputCatProducts){
47
- updatedProducts(input: $input){
48
- success
49
- message
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
- createOneContract(input: $input) {
56
- success
57
- message
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 ($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
- `
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($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
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
- nameTag
95
- }
96
- ProPrice
97
- ProDescuento
98
- free
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
- sTateLogistic
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
- pDatCre
114
- pDatMod
133
+ pDatCre
134
+ pDatMod
115
135
  ProDelivery
116
136
  ProVoltaje
117
- pState
118
- feat {
119
- fId
120
- thpId
121
- hpqrQuestion
122
- }
123
- area {
124
- aId
125
- aName
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
- rSId
134
- rScore
135
- idStore
136
- createAt
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($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
- `
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
- 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
- `
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
- setALogoStore(logo: $logo, idStore: $idStore) {
176
- success
177
- message
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
- registerBanner(input: $input) {
184
- success
185
- message
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
- deleteALogoStore(idStore: $idStore, Image: $Image) {
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
- getOneBanners(idStore: $idStore, id: $id) {
202
- bnId
203
- id
204
- path
205
- bnImageFileName
206
- idStore
207
- bnState
208
- createAt
209
- updateAt
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($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
- `
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
- getOnePqr(hpqrId: $hpqrId, thpId: $thpId ){
226
- hpqrId
227
- thpId
228
- hpqrQuestion
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
- getAllColor{
235
- colorId
236
- colorName
237
- colorState
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
- 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
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
- setImageProducts(input: $input) {
275
- success
276
- message
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
- 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
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
- updateExtProductFoods(input: $input){
319
- pId
320
- exPid
321
- exState
322
- extraName
323
- extraPrice
324
- state
325
- pDatCre
326
- pDatMod
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
- updateExtProductFoodsOptional(input: $input){
334
- pId
335
- opExPid
336
- OptionalProName
337
- code
338
- required
339
- state
340
- numbersOptionalOnly
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($search: String, $min: Int, $max: Int, $pId: ID) {
346
- ExtProductFoodsOptionalAll(search: $search, min: $min, max: $max, pId: $pId) {
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
- ExtProductFoodsSubOptionalAll {
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($input: InputExtProductFoodSubOptional){
373
- updateExtProductFoodsSubOptional(input: $input){
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($inputLineItems: ILineItemsExtraFinal){
391
- updateMultipleExtProductFoods(inputLineItems: $inputLineItems){
392
- pId
393
- exPid
394
- exState
395
- extraName
396
- extraPrice
397
- state
398
- pDatCre
399
- pDatMod
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
- deleteProducts(input: $input){
407
- pId
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($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
413
- productsAll(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
414
- pId
415
- sizeId #Talla
416
- colorId #Color
417
- cId #Country
418
- dId #Department
419
- ctId #Cuidad
420
- fId #Características
421
- pName
422
- ProPrice
423
- ProDescuento
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
- sTateLogistic
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
- pState
440
- feat {
441
- fId
442
- thpId
443
- hpqrQuestion
444
- }
445
- area {
446
- aId
447
- aName
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($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
455
- getFoodAllProduct(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
456
- id
457
- pfId
458
- idStore
459
- ProPrice
460
- ProDescuento
461
- ProDescription
462
- pName
463
- pState
464
- sTateLogistic
465
- ProStar
466
- ProImage
467
- ProHeight
468
- ProWeight
469
- ProOutstanding
470
- ProDelivery
471
- pDatCre
472
- pDatMod
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
- editProductFoods(input: $input) {
481
- success
482
- message
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
- setEditNameStore(StoreName: $StoreName){
489
- success
490
- message
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
- carProId
499
- pCode
500
- sizeId
501
- colorId
502
- idStore
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
- ExtProductFoodsAll {
533
- pId
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
- department {
573
- dId
574
- cId
575
- dName
576
- dDatCre
577
- dDatMod
578
- dState
579
- }
580
- pais {
581
- cId
582
- cName
583
- cCalCod
584
- cState
585
-
586
- }
587
- city {
588
- ctId
589
- dId
590
- cName
591
- cState
592
- cDatCre
593
- cDatMod
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 newRegisterFoodProduct($input: FoodProductInput){
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
- pSoId
614
- comments
615
- mainName
616
- metaTags
617
- urlImage
618
- bPromoState
619
- createAt
620
- updateAt
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 setStoreSchedule($input: ITstoreSchedule!){
627
- setStoreSchedule(input: $input){
628
- message
629
- success
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 deleteCatOfProducts($idPc: ID!, $pState: Int){
635
- deleteCatOfProducts(idPc: $idPc, pState: $pState){
636
- success
637
- message
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
- mutation deleteCatFinalOfProducts($idPc: ID){
644
- deleteCatFinalOfProducts(idPc: $idPc){
645
- success
646
- message
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 deleteextraproductfoods($id: ID, $state: Int){
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
- editExtProductFoods(input: $input) {
661
- success
662
- message
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 DeleteExtProductFoodsOptional($opExPid: ID, $state: Int){
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 DeleteExtFoodSubsOptional($opSubExPid: ID, $state: Int){
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 updatedCatWithProducts($input: LineItemsIdPro){
684
- updatedCatWithProducts(input: $input){
685
- success
686
- message
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($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
692
- catProductsAll(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
693
- carProId
694
- idStore
695
- pName
696
- ProDescription
697
- ProImage
698
- pState
699
- pDatCre
700
- pDatMod
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
- ExtProductFoodsAll(search: $search, min: $min, max: $max, pId: $pId) {
707
- pId
708
- exPid
709
- exState
710
- extraName
711
- extraPrice
712
- state
713
- pDatCre
714
- pDatMod
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($search: String, $min: Int, $max: Int, $gender: [String], $desc: [String], $categories: [ID], ) {
720
- getCatProductsWithProduct(search: $search, min: $min, max: $max, gender: $gender, desc: $desc, categories: $categories,) {
721
- carProId
722
- pState
723
- pState
724
- ProImage
725
- idStore
726
- pName
727
- ProDescription
728
- ProImage
729
- pState
730
- pDatCre
731
- pDatMod
732
- productFoodsAll {
733
- pId
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
- registerTag(input: $input) {
772
- tPsId
773
- idUser
774
- idStore
775
- pId
776
- nameTag
777
- aName
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
+ `;