@timardex/cluemart-shared 1.2.70 → 1.2.71
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/dist/{ad-CJBWZnb9.d.ts → ad-DIpc7lyr.d.ts} +1 -1
- package/dist/{ad-BdK9N1Fw.d.mts → ad-_p1gmLNT.d.mts} +1 -1
- package/dist/{auth-Dxb3_Ak-.d.ts → auth-Bjqk92cx.d.ts} +1 -1
- package/dist/{auth-BKpylbaZ.d.mts → auth-CcX2zTDU.d.mts} +1 -1
- package/dist/formFields/index.cjs +198 -105
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +198 -105
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-CfX05e2q.d.mts → global-B0AzhgkH.d.mts} +4 -4
- package/dist/{global-flZOvt2w.d.ts → global-BH6qrlBv.d.ts} +4 -4
- package/dist/graphql/index.cjs +573 -565
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +459 -211
- package/dist/graphql/index.d.ts +459 -211
- package/dist/graphql/index.mjs +378 -370
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +10 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +10 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +787 -681
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +460 -212
- package/dist/index.d.ts +460 -212
- package/dist/index.mjs +586 -480
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +24 -24
package/dist/index.mjs
CHANGED
|
@@ -1019,75 +1019,6 @@ var profileFields = [
|
|
|
1019
1019
|
}
|
|
1020
1020
|
];
|
|
1021
1021
|
|
|
1022
|
-
// src/formFields/categories/antiquesAndCollectibles.ts
|
|
1023
|
-
var antiquesAndCollectibles = [
|
|
1024
|
-
{
|
|
1025
|
-
id: "antiques-collectibles",
|
|
1026
|
-
name: "Antiques & Collectibles",
|
|
1027
|
-
description: "Vintage and collectible goods with historic, nostalgic, or decorative value.",
|
|
1028
|
-
subcategories: [
|
|
1029
|
-
{
|
|
1030
|
-
id: "vintage-fashion-personal-items",
|
|
1031
|
-
name: "Vintage Fashion & Personal Items",
|
|
1032
|
-
items: [
|
|
1033
|
-
{
|
|
1034
|
-
id: "vintage-clothing-accessories",
|
|
1035
|
-
name: "Vintage Clothing & Accessories",
|
|
1036
|
-
description: "Retro jackets, dresses, hats, gloves, belts, era-specific fashion."
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
id: "collectibles-memorabilia",
|
|
1040
|
-
name: "Collectibles & Memorabilia",
|
|
1041
|
-
description: "Coins, stamps, toys, postcards, comics, sports cards, vintage packaging."
|
|
1042
|
-
},
|
|
1043
|
-
{
|
|
1044
|
-
id: "other-fashion-collectibles",
|
|
1045
|
-
name: "Other fashion-related collectibles",
|
|
1046
|
-
description: "Items with both fashion and collector value."
|
|
1047
|
-
}
|
|
1048
|
-
]
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
id: "antique-home-curiosities",
|
|
1052
|
-
name: "Antique Home & Curiosities",
|
|
1053
|
-
items: [
|
|
1054
|
-
{
|
|
1055
|
-
id: "antique-homewares-decor",
|
|
1056
|
-
name: "Antique Homewares & Decor",
|
|
1057
|
-
description: "Teacups, plates, vases, mirrors, clocks, furniture accents."
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
id: "other-unique-finds",
|
|
1061
|
-
name: "Other Unique Finds",
|
|
1062
|
-
description: "Old tools, lanterns, typewriters, binoculars, relics, curios."
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
id: "other-antique-items",
|
|
1066
|
-
name: "Other antique items",
|
|
1067
|
-
description: "Vintage or handmade pieces not listed above."
|
|
1068
|
-
}
|
|
1069
|
-
]
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
id: "media-printed-nostalgia",
|
|
1073
|
-
name: "Media & Printed Nostalgia",
|
|
1074
|
-
items: [
|
|
1075
|
-
{
|
|
1076
|
-
id: "records-books-media",
|
|
1077
|
-
name: "Records, Books & Media",
|
|
1078
|
-
description: "Vinyls, cassette tapes, old books, magazines, board games, DVDs, CDs."
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
id: "other-printed-recorded-media",
|
|
1082
|
-
name: "Other printed or recorded media",
|
|
1083
|
-
description: "Posters, manuals, out-of-print publications."
|
|
1084
|
-
}
|
|
1085
|
-
]
|
|
1086
|
-
}
|
|
1087
|
-
]
|
|
1088
|
-
}
|
|
1089
|
-
];
|
|
1090
|
-
|
|
1091
1022
|
// src/formFields/categories/clothingAndFashion.ts
|
|
1092
1023
|
var clothingAndFashion = [
|
|
1093
1024
|
{
|
|
@@ -1162,6 +1093,22 @@ var clothingAndFashion = [
|
|
|
1162
1093
|
description: "Wearable art, statement pieces, bold handmade designs."
|
|
1163
1094
|
}
|
|
1164
1095
|
]
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
id: "traditional-cultural-clothing-accessories",
|
|
1099
|
+
name: "Traditional & Cultural Clothing and Accessories",
|
|
1100
|
+
items: [
|
|
1101
|
+
{
|
|
1102
|
+
id: "traditional-clothing-accessories",
|
|
1103
|
+
name: "Traditional Clothing & Accessories ",
|
|
1104
|
+
description: "raditional clothing, jewellery, accessories and footwear from around the world, including both handmade and non-handmade items."
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
id: "other-traditional-cultural-items",
|
|
1108
|
+
name: "Other Traditional & Cultural Items",
|
|
1109
|
+
description: "traditional or culturally inspired wearables and decorative cultural pieces such as plates, table linens and similar items."
|
|
1110
|
+
}
|
|
1111
|
+
]
|
|
1165
1112
|
}
|
|
1166
1113
|
]
|
|
1167
1114
|
}
|
|
@@ -1425,7 +1372,12 @@ var handmadeAndLocalProducts = [
|
|
|
1425
1372
|
{
|
|
1426
1373
|
id: "candles-home-scents",
|
|
1427
1374
|
name: "Candles & Home Scents",
|
|
1428
|
-
description: "Soy candles, beeswax candles, wax melts, incense sticks, room sprays."
|
|
1375
|
+
description: "Soy candles, beeswax candles, wax melts, incense sticks, room sprays and herbal sachets."
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
id: "botanical-crafts",
|
|
1379
|
+
name: "Botanical Crafts",
|
|
1380
|
+
description: "Dried-flower d\xE9cor and pressed-flower crafts"
|
|
1429
1381
|
},
|
|
1430
1382
|
{
|
|
1431
1383
|
id: "textiles-embroidery",
|
|
@@ -1437,6 +1389,16 @@ var handmadeAndLocalProducts = [
|
|
|
1437
1389
|
name: "Woodcraft & Metalcraft",
|
|
1438
1390
|
description: "Wooden boards, handmade frames, sculptures, metal signs, furniture."
|
|
1439
1391
|
},
|
|
1392
|
+
{
|
|
1393
|
+
id: "handmade-soaps-natural-body-goods",
|
|
1394
|
+
name: "Handmade Soaps & Natural Body Goods",
|
|
1395
|
+
description: "Handmade soaps, balms, oils, bath items"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
id: "seasonal-festive-crafts",
|
|
1399
|
+
name: "Seasonal & Festive Crafts",
|
|
1400
|
+
description: "Christmas, Easter and seasonal handmade decor"
|
|
1401
|
+
},
|
|
1440
1402
|
{
|
|
1441
1403
|
id: "other-home-living-products",
|
|
1442
1404
|
name: "Other home & living products",
|
|
@@ -1449,24 +1411,55 @@ var handmadeAndLocalProducts = [
|
|
|
1449
1411
|
name: "Art & Personal Expression",
|
|
1450
1412
|
items: [
|
|
1451
1413
|
{
|
|
1452
|
-
id: "
|
|
1453
|
-
name: "
|
|
1454
|
-
description: "
|
|
1414
|
+
id: "paintings-illustrations",
|
|
1415
|
+
name: "Paintings & Illustrations",
|
|
1416
|
+
description: "Paintings, canvas art, hand-drawn illustrations, digital prints, graphic art and calligraphy pieces."
|
|
1455
1417
|
},
|
|
1456
1418
|
{
|
|
1457
|
-
id: "
|
|
1458
|
-
name: "
|
|
1459
|
-
description: "
|
|
1419
|
+
id: "sculptures-carvings",
|
|
1420
|
+
name: "Sculptures & Carvings ",
|
|
1421
|
+
description: "Sculptures made from wood, stone, metal, clay or resin, carved decorative pieces and artistic 3D works."
|
|
1460
1422
|
},
|
|
1461
1423
|
{
|
|
1462
|
-
id: "
|
|
1463
|
-
name: "
|
|
1464
|
-
description: "
|
|
1424
|
+
id: "creative-handmade-alternative-art",
|
|
1425
|
+
name: "Creative Handmade & Alternative Art",
|
|
1426
|
+
description: "Handmade textile d\xE9cor, fabric ornaments, mixed-media art, creative craft pieces and modern handmade artworks."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
id: "handmade-mini-figures-decor",
|
|
1430
|
+
name: "Handmade Mini Figures & D\xE9cor",
|
|
1431
|
+
description: "Small handmade figures, tiny houses and crafted mini decorative items."
|
|
1465
1432
|
},
|
|
1466
1433
|
{
|
|
1467
1434
|
id: "other-artistic-expressive-products",
|
|
1468
|
-
name: "Other
|
|
1469
|
-
description: "Custom artworks, specialty handmade
|
|
1435
|
+
name: "Other Artistic or Expressive Products",
|
|
1436
|
+
description: "Custom artworks, specialty handmade d\xE9cor, unique crafts."
|
|
1437
|
+
}
|
|
1438
|
+
]
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
id: "handmade-jewellery-accessories-cultural-crafts",
|
|
1442
|
+
name: "Handmade Jewellery, Accessories & Cultural Crafts",
|
|
1443
|
+
items: [
|
|
1444
|
+
{
|
|
1445
|
+
id: "jewellery-handmade-items-nz-traditional-materials",
|
|
1446
|
+
name: "Jewellery & Handmade Items from NZ Traditional Materials",
|
|
1447
|
+
description: "Handmade jewellery and decorative or functional items crafted from pounamu, bone, wood and other traditional New Zealand materials."
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
id: "maori-pasifika-cultural-crafts-clothing",
|
|
1451
|
+
name: "M\u0101ori & Pasifika Cultural Crafts and Clothing",
|
|
1452
|
+
description: "Culturally inspired handmade items, accessories and garments featuring M\u0101ori or Pasifika motifs, traditional patterns and regional craftsmanship."
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
id: "traditional-handmade-clothing-jewellery-crafts-global-cultures",
|
|
1456
|
+
name: "Traditional Handmade Clothing, Jewellery & Crafts from Global Cultures",
|
|
1457
|
+
description: "Handcrafted clothing, jewellery and cultural items from diverse traditions \u2014 including Asian, African, European, Middle Eastern, Indian, Chinese, Japanese, Pacific, and other culturally significant handmade pieces."
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
id: "other-handmade-cultural-items",
|
|
1461
|
+
name: "Other Handmade Cultural Items",
|
|
1462
|
+
description: "Unique or culturally inspired handmade pieces not specifically covered in the categories above."
|
|
1470
1463
|
}
|
|
1471
1464
|
]
|
|
1472
1465
|
},
|
|
@@ -1477,12 +1470,22 @@ var handmadeAndLocalProducts = [
|
|
|
1477
1470
|
{
|
|
1478
1471
|
id: "handmade-pens-keychains-fridge-magnets",
|
|
1479
1472
|
name: "Handmade Pens, Keychains and Fridge Magnets",
|
|
1480
|
-
description:
|
|
1473
|
+
description: null
|
|
1481
1474
|
},
|
|
1482
1475
|
{
|
|
1483
1476
|
id: "gift-packaging-wrapping-accessories",
|
|
1484
1477
|
name: "Gift Packaging & Wrapping Accessories",
|
|
1485
|
-
description:
|
|
1478
|
+
description: null
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
id: "handmade-crochet-knitting-fibre-crafts",
|
|
1482
|
+
name: "Handmade Crochet, Knitting & Fibre Crafts",
|
|
1483
|
+
description: "Handmade crochet and knitted items, fabric-based crafts, small decorative pieces, creative fibre artworks and unique handcrafted accessories."
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
id: "handmade-toys-mini-play-items",
|
|
1487
|
+
name: "Handmade Toys & Mini Play Items",
|
|
1488
|
+
description: "small handmade toys, soft toys, wooden miniatures, crochet or felt play pieces"
|
|
1486
1489
|
},
|
|
1487
1490
|
{
|
|
1488
1491
|
id: "other-small-handmade-gifts-accessories",
|
|
@@ -1554,22 +1557,6 @@ var healthAndWellness = [
|
|
|
1554
1557
|
description: "Items that aid relaxation, focus, or inner work."
|
|
1555
1558
|
}
|
|
1556
1559
|
]
|
|
1557
|
-
},
|
|
1558
|
-
{
|
|
1559
|
-
id: "holistic-alternative-services",
|
|
1560
|
-
name: "Holistic & Alternative Services",
|
|
1561
|
-
items: [
|
|
1562
|
-
{
|
|
1563
|
-
id: "holistic-alternative-services",
|
|
1564
|
-
name: "Holistic & Alternative Services",
|
|
1565
|
-
description: "Massage, Reiki, reflexology, chakra balancing, wellness consultations."
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
id: "other-wellness-services",
|
|
1569
|
-
name: "Other wellness services",
|
|
1570
|
-
description: "Please describe at registration."
|
|
1571
|
-
}
|
|
1572
|
-
]
|
|
1573
1560
|
}
|
|
1574
1561
|
]
|
|
1575
1562
|
}
|
|
@@ -1596,6 +1583,11 @@ var homeGardenHousehold = [
|
|
|
1596
1583
|
name: "Kitchenware & Dining",
|
|
1597
1584
|
description: "Mugs, bowls, cutting boards, utensils, jars, coasters, kitchen textiles."
|
|
1598
1585
|
},
|
|
1586
|
+
{
|
|
1587
|
+
id: "mini-figures-decor",
|
|
1588
|
+
name: "Mini Figures & D\xE9cor",
|
|
1589
|
+
description: "handmade or non-handmade small figures, tiny houses and miniature decorative items."
|
|
1590
|
+
},
|
|
1599
1591
|
{
|
|
1600
1592
|
id: "other-indoor-home-items",
|
|
1601
1593
|
name: "Other indoor home items",
|
|
@@ -1628,6 +1620,16 @@ var homeGardenHousehold = [
|
|
|
1628
1620
|
name: "Plants & Botanical Decor",
|
|
1629
1621
|
description: "Potted herbs, succulents, dried flowers, terrariums, plant-based ornaments."
|
|
1630
1622
|
},
|
|
1623
|
+
{
|
|
1624
|
+
id: "fresh-flowers-botanical-bouquets",
|
|
1625
|
+
name: "Fresh Flowers & Botanical Bouquets",
|
|
1626
|
+
description: "Cut flowers, seasonal bouquets, simple floral arrangements, native flower selections, and other fresh botanical items."
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
id: "natural-decor-nature-inspired-elements",
|
|
1630
|
+
name: "Natural Decor & Nature-Inspired Elements",
|
|
1631
|
+
description: "Seashell d\xE9cor, driftwood pieces, sand ornaments, natural wood accents, stone or mineral decorations, and other nature-based decorative items."
|
|
1632
|
+
},
|
|
1631
1633
|
{
|
|
1632
1634
|
id: "garden-tools-outdoor-items",
|
|
1633
1635
|
name: "Garden Tools & Outdoor Items",
|
|
@@ -1856,11 +1858,6 @@ var toysChildren = [
|
|
|
1856
1858
|
name: "Educational & Developmental Tools",
|
|
1857
1859
|
description: "STEM kits, Montessori toys, storybooks, picture books, flashcards, early learning games, language tools."
|
|
1858
1860
|
},
|
|
1859
|
-
{
|
|
1860
|
-
id: "kids-experiences-extras",
|
|
1861
|
-
name: "Kids\u2019 Experiences & Extras",
|
|
1862
|
-
description: "Face painting, balloon animals, hair braiding, glitter tattoos, storytime, puppet shows, interactive zones, party gear."
|
|
1863
|
-
},
|
|
1864
1861
|
{
|
|
1865
1862
|
id: "other-educational-experience-based-items",
|
|
1866
1863
|
name: "Other educational or experience-based items",
|
|
@@ -1877,6 +1874,11 @@ var toysChildren = [
|
|
|
1877
1874
|
name: "Baby & Kidswear + Accessories",
|
|
1878
1875
|
description: "Handmade baby clothes, toddler outfits, bibs, hats, headbands, bags, pacifier clips, soft shoes."
|
|
1879
1876
|
},
|
|
1877
|
+
{
|
|
1878
|
+
id: "baby-developmental-soft-toys",
|
|
1879
|
+
name: "Baby Developmental Soft Toys",
|
|
1880
|
+
description: "Sensory toys, rattles, fabric books, teething items, high-contrast cards, and early-skill. Montessori materials designed to support infants\u2019 cognitive and motor development."
|
|
1881
|
+
},
|
|
1880
1882
|
{
|
|
1881
1883
|
id: "other-childrens-clothing-accessories",
|
|
1882
1884
|
name: "Other children\u2019s clothing or accessories",
|
|
@@ -1888,6 +1890,97 @@ var toysChildren = [
|
|
|
1888
1890
|
}
|
|
1889
1891
|
];
|
|
1890
1892
|
|
|
1893
|
+
// src/formFields/categories/vintageAndAntique.ts
|
|
1894
|
+
var vintageAndAntique = [
|
|
1895
|
+
{
|
|
1896
|
+
id: "vintage-antique",
|
|
1897
|
+
name: "Vintage & Antique",
|
|
1898
|
+
description: "Unique, historic, or nostalgic items with collectible or decorative value.",
|
|
1899
|
+
subcategories: [
|
|
1900
|
+
{
|
|
1901
|
+
id: "vintage-antique-clothing-accessories",
|
|
1902
|
+
name: "Vintage & Antique Clothing & Accessories",
|
|
1903
|
+
items: [
|
|
1904
|
+
{
|
|
1905
|
+
id: "clothing-vintage-fashion",
|
|
1906
|
+
name: "Clothing and wearable items from past eras",
|
|
1907
|
+
description: "Vintage dresses, jackets, hats, gloves, belts, bags, shoes, jewellery."
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
id: "other-clothing-accessory-items",
|
|
1911
|
+
name: "Other clothing-related items",
|
|
1912
|
+
description: "Hair clips, brooches, pins, scarf rings, small fashion accessories."
|
|
1913
|
+
}
|
|
1914
|
+
]
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
id: "collectibles-memorabilia",
|
|
1918
|
+
name: "Collectibles & Memorabilia",
|
|
1919
|
+
items: [
|
|
1920
|
+
{
|
|
1921
|
+
id: "small-collectible-items",
|
|
1922
|
+
name: "Small collectible items with historical or nostalgic significance",
|
|
1923
|
+
description: "Coins, stamps, toys, postcards, comics, sports cards, vintage packaging."
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
id: "other-collectible-items",
|
|
1927
|
+
name: "Other collectible items",
|
|
1928
|
+
description: "Rare small objects, miniature figurines, special-edition items."
|
|
1929
|
+
}
|
|
1930
|
+
]
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
id: "homewares-decor-curiosities",
|
|
1934
|
+
name: "Homewares, Decor & Curiosities",
|
|
1935
|
+
items: [
|
|
1936
|
+
{
|
|
1937
|
+
id: "decorative-functional-vintage-items",
|
|
1938
|
+
name: "Decorative or functional items with a vintage or antique aesthetic",
|
|
1939
|
+
description: "Teacups, plates, vases, mirrors, clocks, furniture, old tools, lanterns, typewriters, curiosities."
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
id: "handmade-vintage-art",
|
|
1943
|
+
name: "Handmade vintage art",
|
|
1944
|
+
description: "Paintings, sculptures, crafted pieces."
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
id: "other-home-decor-items",
|
|
1948
|
+
name: "Other home or decor items",
|
|
1949
|
+
description: "Decorative pieces not listed above, unique household objects."
|
|
1950
|
+
}
|
|
1951
|
+
]
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
id: "vintage-media-printed-nostalgia",
|
|
1955
|
+
name: "Vintage Media & Printed Nostalgia",
|
|
1956
|
+
items: [
|
|
1957
|
+
{
|
|
1958
|
+
id: "older-media-printed-works",
|
|
1959
|
+
name: "Older media formats and printed works",
|
|
1960
|
+
description: "Vinyl records, cassette tapes, CDs, DVDs, books, magazines, board games, posters."
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
id: "other-media-printed-items",
|
|
1964
|
+
name: "Other media or printed items",
|
|
1965
|
+
description: "Maps, manuals, leaflets, out-of-print materials."
|
|
1966
|
+
}
|
|
1967
|
+
]
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
id: "other-vintage-antique-items",
|
|
1971
|
+
name: "Other Vintage & Antique Items",
|
|
1972
|
+
items: [
|
|
1973
|
+
{
|
|
1974
|
+
id: "any-vintage-antique-items-not-listed",
|
|
1975
|
+
name: "Any vintage or antique items not listed above",
|
|
1976
|
+
description: "Unique, rare or uncategorised pieces."
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1979
|
+
}
|
|
1980
|
+
]
|
|
1981
|
+
}
|
|
1982
|
+
];
|
|
1983
|
+
|
|
1891
1984
|
// src/formFields/categories/index.ts
|
|
1892
1985
|
var categoryColors = {
|
|
1893
1986
|
"antiques-collectibles": "#8D6748",
|
|
@@ -1916,7 +2009,7 @@ var availableCategories = assignColorToCategories([
|
|
|
1916
2009
|
...toysChildren,
|
|
1917
2010
|
...healthAndWellness,
|
|
1918
2011
|
...electronicsAndTechnology,
|
|
1919
|
-
...
|
|
2012
|
+
...vintageAndAntique,
|
|
1920
2013
|
...petProductsAndAnimalGoods,
|
|
1921
2014
|
...serviceAndExperience
|
|
1922
2015
|
]);
|
|
@@ -2036,7 +2129,7 @@ var partnerBasicInfoFields = [
|
|
|
2036
2129
|
];
|
|
2037
2130
|
|
|
2038
2131
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
2039
|
-
import { useMutation } from "@apollo/client";
|
|
2132
|
+
import { useMutation } from "@apollo/client/react";
|
|
2040
2133
|
|
|
2041
2134
|
// src/graphql/mutations/admin.ts
|
|
2042
2135
|
import { gql } from "@apollo/client";
|
|
@@ -2117,6 +2210,13 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
|
|
|
2117
2210
|
timestamp
|
|
2118
2211
|
}
|
|
2119
2212
|
`;
|
|
2213
|
+
var LICENCE_FIELDS_FRAGMENT = gql2`
|
|
2214
|
+
fragment LicenceFields on LicenceType {
|
|
2215
|
+
expiryDate
|
|
2216
|
+
issuedDate
|
|
2217
|
+
licenceType
|
|
2218
|
+
}
|
|
2219
|
+
`;
|
|
2120
2220
|
var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
2121
2221
|
fragment UserActivityFields on UserActivityType {
|
|
2122
2222
|
favourites {
|
|
@@ -2166,7 +2266,9 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2166
2266
|
firstName
|
|
2167
2267
|
isTester
|
|
2168
2268
|
lastName
|
|
2169
|
-
licences
|
|
2269
|
+
licences {
|
|
2270
|
+
...LicenceFields
|
|
2271
|
+
}
|
|
2170
2272
|
platform
|
|
2171
2273
|
preferredRegion
|
|
2172
2274
|
refreshToken
|
|
@@ -2184,6 +2286,7 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2184
2286
|
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2185
2287
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2186
2288
|
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2289
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
2187
2290
|
`;
|
|
2188
2291
|
var STALL_TYPE_FIELDS_FRAGMENT = gql2`
|
|
2189
2292
|
fragment StallTypeFields on StallTypeType {
|
|
@@ -2602,25 +2705,22 @@ var GET_VENDOR_INFO = gql4`
|
|
|
2602
2705
|
|
|
2603
2706
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
2604
2707
|
var useAdminUpdateResourceType = () => {
|
|
2605
|
-
const [adminUpdateResourceType, { loading, error }] = useMutation(
|
|
2606
|
-
|
|
2607
|
-
{
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
{
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
}
|
|
2620
|
-
];
|
|
2621
|
-
}
|
|
2708
|
+
const [adminUpdateResourceType, { loading, error }] = useMutation(ADMIN_UPDATE_RESOURCE_TYPE_MUTATION, {
|
|
2709
|
+
awaitRefetchQueries: true,
|
|
2710
|
+
refetchQueries: (mutationResult) => {
|
|
2711
|
+
const adminUpdateResourceType2 = mutationResult?.data?.adminUpdateResourceType;
|
|
2712
|
+
const resourceId = adminUpdateResourceType2?.resourceId;
|
|
2713
|
+
const resourceType = adminUpdateResourceType2?.resourceType;
|
|
2714
|
+
if (!resourceId) return [];
|
|
2715
|
+
const detectQuery = resourceType === "event" /* EVENT */ ? GET_EVENT : GET_VENDOR;
|
|
2716
|
+
return [
|
|
2717
|
+
{
|
|
2718
|
+
query: detectQuery,
|
|
2719
|
+
variables: { _id: resourceId }
|
|
2720
|
+
}
|
|
2721
|
+
];
|
|
2622
2722
|
}
|
|
2623
|
-
);
|
|
2723
|
+
});
|
|
2624
2724
|
return {
|
|
2625
2725
|
adminUpdateResourceType,
|
|
2626
2726
|
error,
|
|
@@ -2629,7 +2729,7 @@ var useAdminUpdateResourceType = () => {
|
|
|
2629
2729
|
};
|
|
2630
2730
|
|
|
2631
2731
|
// src/graphql/hooks/auth.ts
|
|
2632
|
-
import { useMutation as useMutation2 } from "@apollo/client";
|
|
2732
|
+
import { useMutation as useMutation2 } from "@apollo/client/react";
|
|
2633
2733
|
|
|
2634
2734
|
// src/graphql/mutations/auth.ts
|
|
2635
2735
|
import { gql as gql5 } from "@apollo/client";
|
|
@@ -2737,7 +2837,7 @@ var useResetPassword = () => {
|
|
|
2737
2837
|
};
|
|
2738
2838
|
|
|
2739
2839
|
// src/graphql/hooks/chat/hooksMutation.ts
|
|
2740
|
-
import { useMutation as useMutation3 } from "@apollo/client";
|
|
2840
|
+
import { useMutation as useMutation3 } from "@apollo/client/react";
|
|
2741
2841
|
|
|
2742
2842
|
// src/graphql/mutations/chat.ts
|
|
2743
2843
|
import { gql as gql7 } from "@apollo/client";
|
|
@@ -2833,21 +2933,18 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
|
|
|
2833
2933
|
|
|
2834
2934
|
// src/graphql/hooks/chat/hooksMutation.ts
|
|
2835
2935
|
var useSendChatMessage = () => {
|
|
2836
|
-
const [sendChatMessage, { loading, error }] = useMutation3(
|
|
2837
|
-
|
|
2838
|
-
{
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
{
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
}
|
|
2847
|
-
];
|
|
2848
|
-
}
|
|
2936
|
+
const [sendChatMessage, { loading, error }] = useMutation3(SEND_CHAT_MESSAGE_MUTATION, {
|
|
2937
|
+
awaitRefetchQueries: true,
|
|
2938
|
+
refetchQueries: (mutationResult) => {
|
|
2939
|
+
const chatId = mutationResult?.data?.sendChatMessage?._id;
|
|
2940
|
+
return [
|
|
2941
|
+
{
|
|
2942
|
+
query: CHAT,
|
|
2943
|
+
variables: { _id: chatId }
|
|
2944
|
+
}
|
|
2945
|
+
];
|
|
2849
2946
|
}
|
|
2850
|
-
);
|
|
2947
|
+
});
|
|
2851
2948
|
return { error, loading, sendChatMessage };
|
|
2852
2949
|
};
|
|
2853
2950
|
var useDeleteChat = () => {
|
|
@@ -2858,24 +2955,21 @@ var useDeleteChat = () => {
|
|
|
2858
2955
|
return { deleteChat, error, loading };
|
|
2859
2956
|
};
|
|
2860
2957
|
var useAddParticipantToChat = () => {
|
|
2861
|
-
const [addParticipantToChat, { loading, error }] = useMutation3(
|
|
2862
|
-
|
|
2863
|
-
{
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
{
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
}
|
|
2875
|
-
];
|
|
2876
|
-
}
|
|
2958
|
+
const [addParticipantToChat, { loading, error }] = useMutation3(ADD_PARTICIPANT_TO_CHAT_MUTATION, {
|
|
2959
|
+
awaitRefetchQueries: true,
|
|
2960
|
+
refetchQueries: (mutationResult) => {
|
|
2961
|
+
const chatId = mutationResult?.data?.addParticipantToChat?._id;
|
|
2962
|
+
return [
|
|
2963
|
+
{
|
|
2964
|
+
query: CHAT,
|
|
2965
|
+
variables: { _id: chatId }
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
query: USER_CHATS
|
|
2969
|
+
}
|
|
2970
|
+
];
|
|
2877
2971
|
}
|
|
2878
|
-
);
|
|
2972
|
+
});
|
|
2879
2973
|
return { addParticipantToChat, error, loading };
|
|
2880
2974
|
};
|
|
2881
2975
|
var useRemoveParticipantFromChat = () => {
|
|
@@ -2890,7 +2984,7 @@ var useRemoveParticipantFromChat = () => {
|
|
|
2890
2984
|
};
|
|
2891
2985
|
|
|
2892
2986
|
// src/graphql/hooks/chat/hooksQuery.ts
|
|
2893
|
-
import { useQuery, useSubscription } from "@apollo/client";
|
|
2987
|
+
import { useQuery, useSubscription } from "@apollo/client/react";
|
|
2894
2988
|
|
|
2895
2989
|
// src/graphql/subscriptions/chat.ts
|
|
2896
2990
|
import { gql as gql8 } from "@apollo/client";
|
|
@@ -2914,20 +3008,25 @@ var useGetChat = (_id) => {
|
|
|
2914
3008
|
return { chat, error, loading, refetch };
|
|
2915
3009
|
};
|
|
2916
3010
|
var useGetUserChats = () => {
|
|
2917
|
-
const { loading, error, data, refetch } = useQuery(
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
3011
|
+
const { loading, error, data, refetch } = useQuery(
|
|
3012
|
+
USER_CHATS,
|
|
3013
|
+
{
|
|
3014
|
+
fetchPolicy: "network-only"
|
|
3015
|
+
}
|
|
3016
|
+
);
|
|
3017
|
+
const userChats = data?.userChats || [];
|
|
2921
3018
|
return { error, loading, refetch, userChats };
|
|
2922
3019
|
};
|
|
2923
3020
|
var useGetChatSubscription = () => {
|
|
2924
|
-
const { data, loading, error } = useSubscription(
|
|
3021
|
+
const { data, loading, error } = useSubscription(
|
|
3022
|
+
GET_CHAT_MESSAGE
|
|
3023
|
+
);
|
|
2925
3024
|
const chat = data?.getChat;
|
|
2926
3025
|
return { chat, error, loading };
|
|
2927
3026
|
};
|
|
2928
3027
|
|
|
2929
3028
|
// src/graphql/hooks/contactUs.ts
|
|
2930
|
-
import { useMutation as useMutation4 } from "@apollo/client";
|
|
3029
|
+
import { useMutation as useMutation4 } from "@apollo/client/react";
|
|
2931
3030
|
|
|
2932
3031
|
// src/graphql/mutations/contactUs.ts
|
|
2933
3032
|
import { gql as gql9 } from "@apollo/client";
|
|
@@ -2946,7 +3045,7 @@ var useContactUs = () => {
|
|
|
2946
3045
|
};
|
|
2947
3046
|
|
|
2948
3047
|
// src/graphql/hooks/event/hooksMutation.ts
|
|
2949
|
-
import { useMutation as useMutation5 } from "@apollo/client";
|
|
3048
|
+
import { useMutation as useMutation5 } from "@apollo/client/react";
|
|
2950
3049
|
|
|
2951
3050
|
// src/graphql/mutations/event.ts
|
|
2952
3051
|
import { gql as gql10 } from "@apollo/client";
|
|
@@ -3176,73 +3275,73 @@ var useDeleteEvent = () => {
|
|
|
3176
3275
|
return { deleteEvent, error, loading };
|
|
3177
3276
|
};
|
|
3178
3277
|
var useCreateEventInfo = () => {
|
|
3179
|
-
const [createEventInfo, { loading, error }] = useMutation5(
|
|
3180
|
-
|
|
3181
|
-
{
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
{
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
{
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
}
|
|
3199
|
-
];
|
|
3200
|
-
}
|
|
3278
|
+
const [createEventInfo, { loading, error }] = useMutation5(CREATE_EVENT_INFO_MUTATION, {
|
|
3279
|
+
awaitRefetchQueries: true,
|
|
3280
|
+
refetchQueries: (mutationResult) => {
|
|
3281
|
+
const eventId = mutationResult?.data?.createEventInfo?.eventId;
|
|
3282
|
+
if (!eventId) return [];
|
|
3283
|
+
return [
|
|
3284
|
+
{
|
|
3285
|
+
query: GET_EVENT_INFO,
|
|
3286
|
+
variables: { eventId }
|
|
3287
|
+
// Pass the eventId for refetching
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
query: GET_USER_EVENTS
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
query: GET_EVENT,
|
|
3294
|
+
variables: { _id: eventId }
|
|
3295
|
+
}
|
|
3296
|
+
];
|
|
3201
3297
|
}
|
|
3202
|
-
);
|
|
3298
|
+
});
|
|
3203
3299
|
return { createEventInfo, error, loading };
|
|
3204
3300
|
};
|
|
3205
3301
|
var useUpdateEventInfo = () => {
|
|
3206
|
-
const [updateEventInfo, { loading, error }] = useMutation5(
|
|
3207
|
-
|
|
3208
|
-
{
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
{
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
{
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
}
|
|
3224
|
-
];
|
|
3225
|
-
}
|
|
3302
|
+
const [updateEventInfo, { loading, error }] = useMutation5(UPDATE_EVENT_INFO_MUTATION, {
|
|
3303
|
+
awaitRefetchQueries: true,
|
|
3304
|
+
refetchQueries: (mutationResult) => {
|
|
3305
|
+
const eventId = mutationResult?.data?.updateEventInfo?.eventId;
|
|
3306
|
+
if (!eventId) return [];
|
|
3307
|
+
return [
|
|
3308
|
+
{
|
|
3309
|
+
query: GET_EVENT_INFO,
|
|
3310
|
+
variables: { eventId }
|
|
3311
|
+
// Pass the eventId for refetching
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
query: GET_EVENT,
|
|
3315
|
+
variables: { _id: eventId }
|
|
3316
|
+
// Pass the eventId for refetching
|
|
3317
|
+
}
|
|
3318
|
+
];
|
|
3226
3319
|
}
|
|
3227
|
-
);
|
|
3320
|
+
});
|
|
3228
3321
|
return { error, loading, updateEventInfo };
|
|
3229
3322
|
};
|
|
3230
3323
|
|
|
3231
3324
|
// src/graphql/hooks/event/hooksQuery.ts
|
|
3232
|
-
import { useQuery as useQuery2 } from "@apollo/client";
|
|
3325
|
+
import { useQuery as useQuery2 } from "@apollo/client/react";
|
|
3233
3326
|
var useGetEvents = () => {
|
|
3234
|
-
const { loading, error, data, refetch } = useQuery2(
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3327
|
+
const { loading, error, data, refetch } = useQuery2(
|
|
3328
|
+
GET_EVENTS,
|
|
3329
|
+
{
|
|
3330
|
+
fetchPolicy: "network-only"
|
|
3331
|
+
}
|
|
3332
|
+
);
|
|
3333
|
+
const events = data?.events || [];
|
|
3238
3334
|
return { error, events, loading, refetch };
|
|
3239
3335
|
};
|
|
3240
3336
|
var useGetEvent = (_id) => {
|
|
3241
|
-
const { loading, error, data, refetch } = useQuery2(
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3337
|
+
const { loading, error, data, refetch } = useQuery2(
|
|
3338
|
+
GET_EVENT,
|
|
3339
|
+
{
|
|
3340
|
+
fetchPolicy: "network-only",
|
|
3341
|
+
skip: !_id,
|
|
3342
|
+
variables: { _id }
|
|
3343
|
+
}
|
|
3344
|
+
);
|
|
3246
3345
|
const event = data?.event;
|
|
3247
3346
|
return { error, event, loading, refetch };
|
|
3248
3347
|
};
|
|
@@ -3252,7 +3351,7 @@ var useGetEventsByRegion = (region) => {
|
|
|
3252
3351
|
skip: !region,
|
|
3253
3352
|
variables: { region }
|
|
3254
3353
|
});
|
|
3255
|
-
const eventsByRegion = data?.eventsByRegion;
|
|
3354
|
+
const eventsByRegion = data?.eventsByRegion || [];
|
|
3256
3355
|
return { error, eventsByRegion, loading, refetch };
|
|
3257
3356
|
};
|
|
3258
3357
|
var useSearchEvents = (search, region) => {
|
|
@@ -3261,7 +3360,7 @@ var useSearchEvents = (search, region) => {
|
|
|
3261
3360
|
skip: search.length < 3,
|
|
3262
3361
|
variables: { region, search }
|
|
3263
3362
|
});
|
|
3264
|
-
const eventsSearch = data?.eventsSearch;
|
|
3363
|
+
const eventsSearch = data?.eventsSearch || [];
|
|
3265
3364
|
return { error, eventsSearch, loading, refetch };
|
|
3266
3365
|
};
|
|
3267
3366
|
var useGetEventsNearMe = (location) => {
|
|
@@ -3275,7 +3374,7 @@ var useGetEventsNearMe = (location) => {
|
|
|
3275
3374
|
// Default to 10km if no radius is provided
|
|
3276
3375
|
}
|
|
3277
3376
|
});
|
|
3278
|
-
const eventsNearMe = data?.eventsNearMe;
|
|
3377
|
+
const eventsNearMe = data?.eventsNearMe || [];
|
|
3279
3378
|
return { error, eventsNearMe, loading, refetch };
|
|
3280
3379
|
};
|
|
3281
3380
|
var useGetEventInfo = (eventId) => {
|
|
@@ -3289,7 +3388,7 @@ var useGetEventInfo = (eventId) => {
|
|
|
3289
3388
|
};
|
|
3290
3389
|
|
|
3291
3390
|
// src/graphql/hooks/notifications/hooksMutation.ts
|
|
3292
|
-
import { useMutation as useMutation6 } from "@apollo/client";
|
|
3391
|
+
import { useMutation as useMutation6 } from "@apollo/client/react";
|
|
3293
3392
|
|
|
3294
3393
|
// src/graphql/mutations/notification.ts
|
|
3295
3394
|
import { gql as gql14 } from "@apollo/client";
|
|
@@ -3436,7 +3535,7 @@ var useDeleteAllNotifications = () => {
|
|
|
3436
3535
|
};
|
|
3437
3536
|
|
|
3438
3537
|
// src/graphql/hooks/notifications/hooksQuery.ts
|
|
3439
|
-
import { useQuery as useQuery3 } from "@apollo/client";
|
|
3538
|
+
import { useQuery as useQuery3 } from "@apollo/client/react";
|
|
3440
3539
|
var useGetUserNotifications = (limit, offset) => {
|
|
3441
3540
|
const { data, loading, error, refetch } = useQuery3(GET_USER_NOTIFICATIONS, {
|
|
3442
3541
|
fetchPolicy: "no-cache",
|
|
@@ -3462,7 +3561,7 @@ var useGetNotificationCount = () => {
|
|
|
3462
3561
|
};
|
|
3463
3562
|
|
|
3464
3563
|
// src/graphql/hooks/notifications/hooksSubscription.ts
|
|
3465
|
-
import { useSubscription as useSubscription2 } from "@apollo/client";
|
|
3564
|
+
import { useSubscription as useSubscription2 } from "@apollo/client/react";
|
|
3466
3565
|
|
|
3467
3566
|
// src/graphql/subscriptions/notification.ts
|
|
3468
3567
|
import { gql as gql15 } from "@apollo/client";
|
|
@@ -3508,7 +3607,7 @@ var useGetNotificationCountSubscription = () => {
|
|
|
3508
3607
|
};
|
|
3509
3608
|
|
|
3510
3609
|
// src/graphql/hooks/poster.ts
|
|
3511
|
-
import { useMutation as useMutation7 } from "@apollo/client";
|
|
3610
|
+
import { useMutation as useMutation7 } from "@apollo/client/react";
|
|
3512
3611
|
|
|
3513
3612
|
// src/graphql/mutations/poster.ts
|
|
3514
3613
|
import { gql as gql16 } from "@apollo/client";
|
|
@@ -3536,7 +3635,7 @@ var useCreatePoster = () => {
|
|
|
3536
3635
|
};
|
|
3537
3636
|
|
|
3538
3637
|
// src/graphql/hooks/pushToken.ts
|
|
3539
|
-
import { useMutation as useMutation8 } from "@apollo/client";
|
|
3638
|
+
import { useMutation as useMutation8 } from "@apollo/client/react";
|
|
3540
3639
|
|
|
3541
3640
|
// src/graphql/mutations/pushToken.ts
|
|
3542
3641
|
import { gql as gql17 } from "@apollo/client";
|
|
@@ -3557,7 +3656,7 @@ var useCreatePushToken = () => {
|
|
|
3557
3656
|
};
|
|
3558
3657
|
|
|
3559
3658
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
3560
|
-
import { useMutation as useMutation9 } from "@apollo/client";
|
|
3659
|
+
import { useMutation as useMutation9 } from "@apollo/client/react";
|
|
3561
3660
|
|
|
3562
3661
|
// src/graphql/mutations/relation.ts
|
|
3563
3662
|
import { gql as gql19 } from "@apollo/client";
|
|
@@ -3659,144 +3758,135 @@ var DELETE_RELATION_MUTATION = gql19`
|
|
|
3659
3758
|
|
|
3660
3759
|
// src/graphql/hooks/relation/hooksMutation.ts
|
|
3661
3760
|
var useCreateRelation = () => {
|
|
3662
|
-
const [createRelation, { loading, error }] = useMutation9(
|
|
3663
|
-
|
|
3664
|
-
{
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
{
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
{
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
{
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
{
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
{
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
{
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
{
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
}
|
|
3704
|
-
];
|
|
3705
|
-
}
|
|
3761
|
+
const [createRelation, { loading, error }] = useMutation9(CREATE_RELATION_MUTATION, {
|
|
3762
|
+
awaitRefetchQueries: true,
|
|
3763
|
+
refetchQueries: (mutationResult) => {
|
|
3764
|
+
const createRelation2 = mutationResult?.data?.createRelation;
|
|
3765
|
+
const eventId = createRelation2?.eventId;
|
|
3766
|
+
const vendorId = createRelation2?.vendorId;
|
|
3767
|
+
const resourceType = createRelation2?.lastUpdateBy;
|
|
3768
|
+
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3769
|
+
return [
|
|
3770
|
+
{
|
|
3771
|
+
query: GET_EVENT_RELATIONS,
|
|
3772
|
+
variables: { eventId }
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
query: GET_EVENT,
|
|
3776
|
+
variables: { _id: eventId }
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
query: GET_EVENT_INFO,
|
|
3780
|
+
variables: { eventId }
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
query: GET_VENDOR_RELATIONS,
|
|
3784
|
+
variables: { vendorId }
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
query: GET_VENDOR,
|
|
3788
|
+
variables: { _id: vendorId }
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3792
|
+
variables: { eventId, vendorId }
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
query: GET_RESOURCE_CONNECTIONS,
|
|
3796
|
+
variables: { resourceId, resourceType }
|
|
3797
|
+
},
|
|
3798
|
+
{
|
|
3799
|
+
query: USER_CHATS
|
|
3800
|
+
}
|
|
3801
|
+
];
|
|
3706
3802
|
}
|
|
3707
|
-
);
|
|
3803
|
+
});
|
|
3708
3804
|
return { createRelation, error, loading };
|
|
3709
3805
|
};
|
|
3710
3806
|
var useUpdateRelation = () => {
|
|
3711
|
-
const [updateRelation, { loading, error }] = useMutation9(
|
|
3712
|
-
|
|
3713
|
-
{
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
{
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
{
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
{
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
{
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
{
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
{
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
{
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
}
|
|
3750
|
-
];
|
|
3751
|
-
}
|
|
3807
|
+
const [updateRelation, { loading, error }] = useMutation9(UPDATE_RELATION_MUTATION, {
|
|
3808
|
+
awaitRefetchQueries: true,
|
|
3809
|
+
refetchQueries: (mutationResult) => {
|
|
3810
|
+
const updateRelation2 = mutationResult?.data?.updateRelation;
|
|
3811
|
+
const eventId = updateRelation2?.eventId;
|
|
3812
|
+
const vendorId = updateRelation2?.vendorId;
|
|
3813
|
+
const resourceType = updateRelation2?.lastUpdateBy;
|
|
3814
|
+
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3815
|
+
return [
|
|
3816
|
+
{
|
|
3817
|
+
query: GET_EVENT_RELATIONS,
|
|
3818
|
+
variables: { eventId }
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
query: GET_EVENT,
|
|
3822
|
+
variables: { _id: eventId }
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
query: GET_EVENT_INFO,
|
|
3826
|
+
variables: { eventId }
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
query: GET_VENDOR_RELATIONS,
|
|
3830
|
+
variables: { vendorId }
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
query: GET_VENDOR,
|
|
3834
|
+
variables: { _id: vendorId }
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3838
|
+
variables: { eventId, vendorId }
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
query: GET_RESOURCE_CONNECTIONS,
|
|
3842
|
+
variables: { resourceId, resourceType }
|
|
3843
|
+
}
|
|
3844
|
+
];
|
|
3752
3845
|
}
|
|
3753
|
-
);
|
|
3846
|
+
});
|
|
3754
3847
|
return { error, loading, updateRelation };
|
|
3755
3848
|
};
|
|
3756
3849
|
var useDeleteRelation = () => {
|
|
3757
|
-
const [deleteRelation, { loading, error }] = useMutation9(
|
|
3758
|
-
|
|
3759
|
-
{
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
{
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
{
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
{
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
{
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
{
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
}
|
|
3791
|
-
];
|
|
3792
|
-
}
|
|
3850
|
+
const [deleteRelation, { loading, error }] = useMutation9(DELETE_RELATION_MUTATION, {
|
|
3851
|
+
awaitRefetchQueries: true,
|
|
3852
|
+
refetchQueries: (mutationResult) => {
|
|
3853
|
+
const deleteRelation2 = mutationResult?.data?.deleteRelation;
|
|
3854
|
+
const eventId = deleteRelation2?.eventId;
|
|
3855
|
+
const vendorId = deleteRelation2?.vendorId;
|
|
3856
|
+
const resourceType = deleteRelation2?.lastUpdateBy;
|
|
3857
|
+
const resourceId = resourceType === "event" /* EVENT */ ? eventId : vendorId;
|
|
3858
|
+
return [
|
|
3859
|
+
{
|
|
3860
|
+
query: GET_EVENT_INFO,
|
|
3861
|
+
variables: { eventId }
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
query: GET_EVENT_RELATIONS,
|
|
3865
|
+
variables: { eventId }
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
query: GET_VENDOR_RELATIONS,
|
|
3869
|
+
variables: { vendorId }
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
query: GET_RELATION_BY_EVENT_AND_VENDOR,
|
|
3873
|
+
variables: { eventId, vendorId }
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
query: GET_RESOURCE_CONNECTIONS,
|
|
3877
|
+
variables: { resourceId, resourceType }
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
query: USER_CHATS
|
|
3881
|
+
}
|
|
3882
|
+
];
|
|
3793
3883
|
}
|
|
3794
|
-
);
|
|
3884
|
+
});
|
|
3795
3885
|
return { deleteRelation, error, loading };
|
|
3796
3886
|
};
|
|
3797
3887
|
|
|
3798
3888
|
// src/graphql/hooks/relation/hooksQuery.ts
|
|
3799
|
-
import { useQuery as useQuery4 } from "@apollo/client";
|
|
3889
|
+
import { useQuery as useQuery4 } from "@apollo/client/react";
|
|
3800
3890
|
var useGetRelation = (_id) => {
|
|
3801
3891
|
const { loading, error, data, refetch } = useQuery4(GET_RELATION, {
|
|
3802
3892
|
fetchPolicy: "network-only",
|
|
@@ -3807,14 +3897,11 @@ var useGetRelation = (_id) => {
|
|
|
3807
3897
|
return { error, loading, refetch, relation };
|
|
3808
3898
|
};
|
|
3809
3899
|
var useGetRelationByEventAndVendor = (eventId, vendorId) => {
|
|
3810
|
-
const { loading, error, data, refetch } = useQuery4(
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
variables: { eventId, vendorId }
|
|
3816
|
-
}
|
|
3817
|
-
);
|
|
3900
|
+
const { loading, error, data, refetch } = useQuery4(GET_RELATION_BY_EVENT_AND_VENDOR, {
|
|
3901
|
+
fetchPolicy: "network-only",
|
|
3902
|
+
skip: !eventId || !vendorId,
|
|
3903
|
+
variables: { eventId, vendorId }
|
|
3904
|
+
});
|
|
3818
3905
|
const relationByEventAndVendor = data?.relationByEventAndVendor;
|
|
3819
3906
|
return { error, loading, refetch, relationByEventAndVendor };
|
|
3820
3907
|
};
|
|
@@ -3824,7 +3911,7 @@ var useGetEventRelations = (eventId) => {
|
|
|
3824
3911
|
skip: !eventId,
|
|
3825
3912
|
variables: { eventId }
|
|
3826
3913
|
});
|
|
3827
|
-
const eventRelations = data?.eventRelations;
|
|
3914
|
+
const eventRelations = data?.eventRelations || [];
|
|
3828
3915
|
return { error, eventRelations, loading, refetch };
|
|
3829
3916
|
};
|
|
3830
3917
|
var useGetVendorRelations = (vendorId) => {
|
|
@@ -3833,7 +3920,7 @@ var useGetVendorRelations = (vendorId) => {
|
|
|
3833
3920
|
skip: !vendorId,
|
|
3834
3921
|
variables: { vendorId }
|
|
3835
3922
|
});
|
|
3836
|
-
const vendorRelations = data?.vendorRelations;
|
|
3923
|
+
const vendorRelations = data?.vendorRelations || [];
|
|
3837
3924
|
return { error, loading, refetch, vendorRelations };
|
|
3838
3925
|
};
|
|
3839
3926
|
var useGetResourceConnections = (resourceId, resourceType) => {
|
|
@@ -3841,12 +3928,12 @@ var useGetResourceConnections = (resourceId, resourceType) => {
|
|
|
3841
3928
|
fetchPolicy: "network-only",
|
|
3842
3929
|
variables: { resourceId, resourceType }
|
|
3843
3930
|
});
|
|
3844
|
-
const resourceConnections = data?.resourceConnections;
|
|
3931
|
+
const resourceConnections = data?.resourceConnections || [];
|
|
3845
3932
|
return { error, loading, refetch, resourceConnections };
|
|
3846
3933
|
};
|
|
3847
3934
|
|
|
3848
3935
|
// src/graphql/hooks/vendor/hooksMutation.ts
|
|
3849
|
-
import { useMutation as useMutation10 } from "@apollo/client";
|
|
3936
|
+
import { useMutation as useMutation10 } from "@apollo/client/react";
|
|
3850
3937
|
|
|
3851
3938
|
// src/graphql/mutations/vendor.ts
|
|
3852
3939
|
import { gql as gql20 } from "@apollo/client";
|
|
@@ -3920,60 +4007,57 @@ var useDeleteVendor = () => {
|
|
|
3920
4007
|
return { deleteVendor, error, loading };
|
|
3921
4008
|
};
|
|
3922
4009
|
var useCreateVendorInfo = () => {
|
|
3923
|
-
const [createVendorInfo, { loading, error }] = useMutation10(
|
|
3924
|
-
|
|
3925
|
-
{
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
{
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
{
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
}
|
|
3943
|
-
];
|
|
3944
|
-
}
|
|
4010
|
+
const [createVendorInfo, { loading, error }] = useMutation10(CREATE_VENDOR_INFO_MUTATION, {
|
|
4011
|
+
awaitRefetchQueries: true,
|
|
4012
|
+
refetchQueries: (mutationResult) => {
|
|
4013
|
+
const vendorId = mutationResult?.data?.createVendorInfo?.vendorId;
|
|
4014
|
+
if (!vendorId) return [];
|
|
4015
|
+
return [
|
|
4016
|
+
{
|
|
4017
|
+
query: GET_VENDOR_INFO,
|
|
4018
|
+
variables: { vendorId }
|
|
4019
|
+
// Pass the vendorId for refetching
|
|
4020
|
+
},
|
|
4021
|
+
{
|
|
4022
|
+
query: GET_USER_VENDORS
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
query: GET_VENDOR,
|
|
4026
|
+
variables: { _id: vendorId }
|
|
4027
|
+
}
|
|
4028
|
+
];
|
|
3945
4029
|
}
|
|
3946
|
-
);
|
|
4030
|
+
});
|
|
3947
4031
|
return { createVendorInfo, error, loading };
|
|
3948
4032
|
};
|
|
3949
4033
|
var useUpdateVendorInfo = () => {
|
|
3950
|
-
const [updateVendorInfo, { loading, error }] = useMutation10(
|
|
3951
|
-
|
|
3952
|
-
{
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
{
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
}
|
|
3963
|
-
];
|
|
3964
|
-
}
|
|
4034
|
+
const [updateVendorInfo, { loading, error }] = useMutation10(UPDATE_VENDOR_INFO_MUTATION, {
|
|
4035
|
+
awaitRefetchQueries: true,
|
|
4036
|
+
refetchQueries: (mutationResult) => {
|
|
4037
|
+
const vendorId = mutationResult?.data?.updateVendorInfo?.vendorId;
|
|
4038
|
+
if (!vendorId) return [];
|
|
4039
|
+
return [
|
|
4040
|
+
{
|
|
4041
|
+
query: GET_VENDOR_INFO,
|
|
4042
|
+
variables: { vendorId }
|
|
4043
|
+
// Pass the vendorId for refetching
|
|
4044
|
+
}
|
|
4045
|
+
];
|
|
3965
4046
|
}
|
|
3966
|
-
);
|
|
4047
|
+
});
|
|
3967
4048
|
return { error, loading, updateVendorInfo };
|
|
3968
4049
|
};
|
|
3969
4050
|
|
|
3970
4051
|
// src/graphql/hooks/vendor/hooksQuery.ts
|
|
3971
|
-
import { useQuery as useQuery5 } from "@apollo/client";
|
|
4052
|
+
import { useQuery as useQuery5 } from "@apollo/client/react";
|
|
3972
4053
|
var useGetVendors = () => {
|
|
3973
|
-
const { loading, error, data, refetch } = useQuery5(
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
4054
|
+
const { loading, error, data, refetch } = useQuery5(
|
|
4055
|
+
GET_VENDORS,
|
|
4056
|
+
{
|
|
4057
|
+
fetchPolicy: "network-only"
|
|
4058
|
+
}
|
|
4059
|
+
);
|
|
4060
|
+
const vendors = data?.vendors || [];
|
|
3977
4061
|
return {
|
|
3978
4062
|
error,
|
|
3979
4063
|
loading,
|
|
@@ -3982,11 +4066,14 @@ var useGetVendors = () => {
|
|
|
3982
4066
|
};
|
|
3983
4067
|
};
|
|
3984
4068
|
var useGetVendor = (_id) => {
|
|
3985
|
-
const { loading, error, data, refetch } = useQuery5(
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
4069
|
+
const { loading, error, data, refetch } = useQuery5(
|
|
4070
|
+
GET_VENDOR,
|
|
4071
|
+
{
|
|
4072
|
+
fetchPolicy: "network-only",
|
|
4073
|
+
skip: !_id,
|
|
4074
|
+
variables: { _id }
|
|
4075
|
+
}
|
|
4076
|
+
);
|
|
3990
4077
|
const vendor = data?.vendor;
|
|
3991
4078
|
return { error, loading, refetch, vendor };
|
|
3992
4079
|
};
|
|
@@ -3996,7 +4083,7 @@ var useGetVendorsByRegion = (region) => {
|
|
|
3996
4083
|
skip: !region,
|
|
3997
4084
|
variables: { region }
|
|
3998
4085
|
});
|
|
3999
|
-
const vendorsByRegion = data?.vendorsByRegion;
|
|
4086
|
+
const vendorsByRegion = data?.vendorsByRegion || [];
|
|
4000
4087
|
return { error, loading, refetch, vendorsByRegion };
|
|
4001
4088
|
};
|
|
4002
4089
|
var useSearchVendors = (search, region) => {
|
|
@@ -4005,7 +4092,7 @@ var useSearchVendors = (search, region) => {
|
|
|
4005
4092
|
skip: search.length < 3,
|
|
4006
4093
|
variables: { region, search }
|
|
4007
4094
|
});
|
|
4008
|
-
const vendorSearch = data?.vendorSearch;
|
|
4095
|
+
const vendorSearch = data?.vendorSearch || [];
|
|
4009
4096
|
return { error, loading, refetch, vendorSearch };
|
|
4010
4097
|
};
|
|
4011
4098
|
var useGetVendorInfo = (vendorId) => {
|
|
@@ -4024,7 +4111,7 @@ var useGetVendorInfo = (vendorId) => {
|
|
|
4024
4111
|
};
|
|
4025
4112
|
|
|
4026
4113
|
// src/graphql/hooks/tester/hooksMutation.ts
|
|
4027
|
-
import { useMutation as useMutation11 } from "@apollo/client";
|
|
4114
|
+
import { useMutation as useMutation11 } from "@apollo/client/react";
|
|
4028
4115
|
|
|
4029
4116
|
// src/graphql/mutations/tester.ts
|
|
4030
4117
|
import { gql as gql22 } from "@apollo/client";
|
|
@@ -4122,10 +4209,12 @@ var useDeleteTester = () => {
|
|
|
4122
4209
|
};
|
|
4123
4210
|
|
|
4124
4211
|
// src/graphql/hooks/tester/hooksQuery.ts
|
|
4125
|
-
import { useQuery as useQuery6 } from "@apollo/client";
|
|
4212
|
+
import { useQuery as useQuery6 } from "@apollo/client/react";
|
|
4126
4213
|
var useGetTesters = () => {
|
|
4127
|
-
const { data, loading, error, refetch } = useQuery6(
|
|
4128
|
-
|
|
4214
|
+
const { data, loading, error, refetch } = useQuery6(
|
|
4215
|
+
GET_TESTERS
|
|
4216
|
+
);
|
|
4217
|
+
const testers = data?.testers || [];
|
|
4129
4218
|
return {
|
|
4130
4219
|
error,
|
|
4131
4220
|
loading,
|
|
@@ -4134,16 +4223,19 @@ var useGetTesters = () => {
|
|
|
4134
4223
|
};
|
|
4135
4224
|
};
|
|
4136
4225
|
var useGetTester = (_id) => {
|
|
4137
|
-
const { data, loading, error, refetch } = useQuery6(
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4226
|
+
const { data, loading, error, refetch } = useQuery6(
|
|
4227
|
+
GET_TESTER,
|
|
4228
|
+
{
|
|
4229
|
+
skip: !_id,
|
|
4230
|
+
variables: { _id }
|
|
4231
|
+
}
|
|
4232
|
+
);
|
|
4141
4233
|
const tester = data?.tester;
|
|
4142
4234
|
return { error, loading, refetch, tester };
|
|
4143
4235
|
};
|
|
4144
4236
|
|
|
4145
4237
|
// src/graphql/hooks/user/hooksMutation.ts
|
|
4146
|
-
import { useMutation as useMutation12 } from "@apollo/client";
|
|
4238
|
+
import { useMutation as useMutation12 } from "@apollo/client/react";
|
|
4147
4239
|
|
|
4148
4240
|
// src/graphql/mutations/user.ts
|
|
4149
4241
|
import { gql as gql23 } from "@apollo/client";
|
|
@@ -4205,10 +4297,13 @@ var SELECT_PACKAGE_MUTATION = gql23`
|
|
|
4205
4297
|
selectedLicence: $selectedLicence
|
|
4206
4298
|
removedLicence: $removedLicence
|
|
4207
4299
|
) {
|
|
4208
|
-
licences
|
|
4300
|
+
licences {
|
|
4301
|
+
...LicenceFields
|
|
4302
|
+
}
|
|
4209
4303
|
message
|
|
4210
4304
|
}
|
|
4211
4305
|
}
|
|
4306
|
+
${LICENCE_FIELDS_FRAGMENT}
|
|
4212
4307
|
`;
|
|
4213
4308
|
var ADD_USER_INTEREST_RESOURCE_MUTATION = gql23`
|
|
4214
4309
|
mutation addUserInterestResource($input: UserActivityInputType!) {
|
|
@@ -4300,21 +4395,18 @@ var useRemoveUserFavouriteResource = () => {
|
|
|
4300
4395
|
return { error, loading, removeUserFavouriteResource };
|
|
4301
4396
|
};
|
|
4302
4397
|
var useSelectPackage = () => {
|
|
4303
|
-
const [selectPackage, { loading, error }] = useMutation12(
|
|
4304
|
-
|
|
4305
|
-
{
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
{ query: GET_USER_VENDORS }
|
|
4314
|
-
];
|
|
4315
|
-
}
|
|
4398
|
+
const [selectPackage, { loading, error }] = useMutation12(SELECT_PACKAGE_MUTATION, {
|
|
4399
|
+
awaitRefetchQueries: true,
|
|
4400
|
+
refetchQueries: (mutationResult) => {
|
|
4401
|
+
const userId = mutationResult?.data?.selectPackage?.userId;
|
|
4402
|
+
if (!userId) return [];
|
|
4403
|
+
return [
|
|
4404
|
+
{ query: GET_USER, variables: { _id: userId } },
|
|
4405
|
+
{ query: GET_USER_EVENTS },
|
|
4406
|
+
{ query: GET_USER_VENDORS }
|
|
4407
|
+
];
|
|
4316
4408
|
}
|
|
4317
|
-
);
|
|
4409
|
+
});
|
|
4318
4410
|
return { error, loading, selectPackage };
|
|
4319
4411
|
};
|
|
4320
4412
|
var useAddUserInterestResource = () => {
|
|
@@ -4379,18 +4471,24 @@ var useRemoveUserPresentResource = () => {
|
|
|
4379
4471
|
};
|
|
4380
4472
|
|
|
4381
4473
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
4382
|
-
import { useQuery as useQuery7 } from "@apollo/client";
|
|
4474
|
+
import { useQuery as useQuery7 } from "@apollo/client/react";
|
|
4383
4475
|
var useGetUsers = () => {
|
|
4384
|
-
const { loading, error, data, refetch } = useQuery7(
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4476
|
+
const { loading, error, data, refetch } = useQuery7(
|
|
4477
|
+
GET_USERS,
|
|
4478
|
+
{
|
|
4479
|
+
fetchPolicy: "network-only"
|
|
4480
|
+
}
|
|
4481
|
+
);
|
|
4482
|
+
const users = data?.users || [];
|
|
4388
4483
|
return { error, loading, refetch, users };
|
|
4389
4484
|
};
|
|
4390
4485
|
var useGetUser = (_id) => {
|
|
4391
|
-
const { loading, error, data, refetch } = useQuery7(
|
|
4392
|
-
|
|
4393
|
-
|
|
4486
|
+
const { loading, error, data, refetch } = useQuery7(
|
|
4487
|
+
GET_USER,
|
|
4488
|
+
{
|
|
4489
|
+
variables: { _id }
|
|
4490
|
+
}
|
|
4491
|
+
);
|
|
4394
4492
|
const user = data?.user;
|
|
4395
4493
|
return { error, loading, refetch, user };
|
|
4396
4494
|
};
|
|
@@ -4398,14 +4496,14 @@ var useGetUserEvents = () => {
|
|
|
4398
4496
|
const { loading, error, data, refetch } = useQuery7(GET_USER_EVENTS, {
|
|
4399
4497
|
fetchPolicy: "network-only"
|
|
4400
4498
|
});
|
|
4401
|
-
const userEvents = data?.userEvents;
|
|
4499
|
+
const userEvents = data?.userEvents || [];
|
|
4402
4500
|
return { error, loading, refetch, userEvents };
|
|
4403
4501
|
};
|
|
4404
4502
|
var useGetUserVendors = () => {
|
|
4405
4503
|
const { loading, error, data, refetch } = useQuery7(GET_USER_VENDORS, {
|
|
4406
4504
|
fetchPolicy: "network-only"
|
|
4407
4505
|
});
|
|
4408
|
-
const userVendors = data?.userVendors;
|
|
4506
|
+
const userVendors = data?.userVendors || [];
|
|
4409
4507
|
return { error, loading, refetch, userVendors };
|
|
4410
4508
|
};
|
|
4411
4509
|
var useGetUserActivities = () => {
|
|
@@ -4414,24 +4512,24 @@ var useGetUserActivities = () => {
|
|
|
4414
4512
|
});
|
|
4415
4513
|
const userActivities = {
|
|
4416
4514
|
favourites: {
|
|
4417
|
-
events: data?.userActivities.favourites.events,
|
|
4418
|
-
vendors: data?.userActivities.favourites.vendors
|
|
4515
|
+
events: data?.userActivities.favourites.events || [],
|
|
4516
|
+
vendors: data?.userActivities.favourites.vendors || []
|
|
4419
4517
|
},
|
|
4420
4518
|
going: {
|
|
4421
|
-
events: data?.userActivities.going.events
|
|
4519
|
+
events: data?.userActivities.going.events || []
|
|
4422
4520
|
},
|
|
4423
4521
|
interested: {
|
|
4424
|
-
events: data?.userActivities.interested.events
|
|
4522
|
+
events: data?.userActivities.interested.events || []
|
|
4425
4523
|
},
|
|
4426
4524
|
present: {
|
|
4427
|
-
events: data?.userActivities.present.events
|
|
4525
|
+
events: data?.userActivities.present.events || []
|
|
4428
4526
|
}
|
|
4429
4527
|
};
|
|
4430
4528
|
return { error, loading, refetch, userActivities };
|
|
4431
4529
|
};
|
|
4432
4530
|
|
|
4433
4531
|
// src/graphql/hooks/ad/hooksMutation.ts
|
|
4434
|
-
import { useMutation as useMutation13 } from "@apollo/client";
|
|
4532
|
+
import { useMutation as useMutation13 } from "@apollo/client/react";
|
|
4435
4533
|
|
|
4436
4534
|
// src/graphql/mutations/ad.ts
|
|
4437
4535
|
import { gql as gql25 } from "@apollo/client";
|
|
@@ -4550,7 +4648,7 @@ var useDeleteAd = () => {
|
|
|
4550
4648
|
};
|
|
4551
4649
|
|
|
4552
4650
|
// src/graphql/hooks/ad/hooksQuery.ts
|
|
4553
|
-
import { useQuery as useQuery8 } from "@apollo/client";
|
|
4651
|
+
import { useQuery as useQuery8 } from "@apollo/client/react";
|
|
4554
4652
|
var useGetAds = () => {
|
|
4555
4653
|
const { data, loading, error, refetch } = useQuery8(
|
|
4556
4654
|
GET_ADS,
|
|
@@ -4559,7 +4657,7 @@ var useGetAds = () => {
|
|
|
4559
4657
|
}
|
|
4560
4658
|
);
|
|
4561
4659
|
return {
|
|
4562
|
-
ads: data?.ads,
|
|
4660
|
+
ads: data?.ads || [],
|
|
4563
4661
|
error,
|
|
4564
4662
|
loading,
|
|
4565
4663
|
refetch
|
|
@@ -4585,7 +4683,7 @@ var useGetAdsByRegion = (region, status) => {
|
|
|
4585
4683
|
variables: { region, status }
|
|
4586
4684
|
});
|
|
4587
4685
|
return {
|
|
4588
|
-
adsByRegion: data?.adsByRegion,
|
|
4686
|
+
adsByRegion: data?.adsByRegion || [],
|
|
4589
4687
|
error,
|
|
4590
4688
|
loading,
|
|
4591
4689
|
refetch
|
|
@@ -4593,7 +4691,7 @@ var useGetAdsByRegion = (region, status) => {
|
|
|
4593
4691
|
};
|
|
4594
4692
|
|
|
4595
4693
|
// src/graphql/hooks/resourceActivities/hooksMutation.ts
|
|
4596
|
-
import { useMutation as useMutation14 } from "@apollo/client";
|
|
4694
|
+
import { useMutation as useMutation14 } from "@apollo/client/react";
|
|
4597
4695
|
|
|
4598
4696
|
// src/graphql/mutations/resourceActivities.ts
|
|
4599
4697
|
import { gql as gql26 } from "@apollo/client";
|
|
@@ -4612,7 +4710,7 @@ var useCreateResourceActivity = () => {
|
|
|
4612
4710
|
};
|
|
4613
4711
|
|
|
4614
4712
|
// src/graphql/hooks/resourceActivities/hooksQuery.ts
|
|
4615
|
-
import { useQuery as useQuery9 } from "@apollo/client";
|
|
4713
|
+
import { useQuery as useQuery9 } from "@apollo/client/react";
|
|
4616
4714
|
|
|
4617
4715
|
// src/graphql/queries/resourceActivities.ts
|
|
4618
4716
|
import { gql as gql27 } from "@apollo/client";
|
|
@@ -4657,12 +4755,12 @@ var useGetResourceActivities = (resourceId, resourceType) => {
|
|
|
4657
4755
|
error,
|
|
4658
4756
|
loading,
|
|
4659
4757
|
refetch,
|
|
4660
|
-
resourceActivities: data?.resourceActivities
|
|
4758
|
+
resourceActivities: data?.resourceActivities || []
|
|
4661
4759
|
};
|
|
4662
4760
|
};
|
|
4663
4761
|
|
|
4664
4762
|
// src/graphql/hooks/stripe/hooksMutation.ts
|
|
4665
|
-
import { useMutation as useMutation15 } from "@apollo/client";
|
|
4763
|
+
import { useMutation as useMutation15 } from "@apollo/client/react";
|
|
4666
4764
|
|
|
4667
4765
|
// src/graphql/mutations/stripe.ts
|
|
4668
4766
|
import { gql as gql28 } from "@apollo/client";
|
|
@@ -4711,7 +4809,7 @@ var useUpdateSubscriptionPlan = () => {
|
|
|
4711
4809
|
};
|
|
4712
4810
|
|
|
4713
4811
|
// src/graphql/hooks/stripe/hooksQuery.ts
|
|
4714
|
-
import { useQuery as useQuery10 } from "@apollo/client";
|
|
4812
|
+
import { useQuery as useQuery10 } from "@apollo/client/react";
|
|
4715
4813
|
|
|
4716
4814
|
// src/graphql/queries/stripe.ts
|
|
4717
4815
|
import { gql as gql29 } from "@apollo/client";
|
|
@@ -4738,7 +4836,7 @@ var useGetSubscriptionStatus = () => {
|
|
|
4738
4836
|
};
|
|
4739
4837
|
|
|
4740
4838
|
// src/graphql/hooks/partner/hooksMutation.ts
|
|
4741
|
-
import { useMutation as useMutation16 } from "@apollo/client";
|
|
4839
|
+
import { useMutation as useMutation16 } from "@apollo/client/react";
|
|
4742
4840
|
|
|
4743
4841
|
// src/graphql/mutations/partner.ts
|
|
4744
4842
|
import { gql as gql30 } from "@apollo/client";
|
|
@@ -4797,12 +4895,12 @@ var useDeletePartner = () => {
|
|
|
4797
4895
|
};
|
|
4798
4896
|
|
|
4799
4897
|
// src/graphql/hooks/partner/hooksQuery.ts
|
|
4800
|
-
import { useQuery as useQuery11 } from "@apollo/client";
|
|
4898
|
+
import { useQuery as useQuery11 } from "@apollo/client/react";
|
|
4801
4899
|
var useGetPartners = () => {
|
|
4802
4900
|
const { loading, error, data, refetch } = useQuery11(GET_PARTNERS, {
|
|
4803
4901
|
fetchPolicy: "network-only"
|
|
4804
4902
|
});
|
|
4805
|
-
const partners = data?.partners;
|
|
4903
|
+
const partners = data?.partners || [];
|
|
4806
4904
|
return {
|
|
4807
4905
|
error,
|
|
4808
4906
|
loading,
|
|
@@ -4811,11 +4909,14 @@ var useGetPartners = () => {
|
|
|
4811
4909
|
};
|
|
4812
4910
|
};
|
|
4813
4911
|
var useGetPartner = (_id) => {
|
|
4814
|
-
const { loading, error, data, refetch } = useQuery11(
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4912
|
+
const { loading, error, data, refetch } = useQuery11(
|
|
4913
|
+
GET_PARTNER,
|
|
4914
|
+
{
|
|
4915
|
+
fetchPolicy: "network-only",
|
|
4916
|
+
skip: !_id,
|
|
4917
|
+
variables: { _id }
|
|
4918
|
+
}
|
|
4919
|
+
);
|
|
4819
4920
|
const partner = data?.partner;
|
|
4820
4921
|
return { error, loading, partner, refetch };
|
|
4821
4922
|
};
|
|
@@ -4825,7 +4926,7 @@ var useGetPartnersByRegion = (region) => {
|
|
|
4825
4926
|
skip: !region,
|
|
4826
4927
|
variables: { region }
|
|
4827
4928
|
});
|
|
4828
|
-
const partnersByRegion = data?.partnersByRegion;
|
|
4929
|
+
const partnersByRegion = data?.partnersByRegion || [];
|
|
4829
4930
|
return { error, loading, partnersByRegion, refetch };
|
|
4830
4931
|
};
|
|
4831
4932
|
var useSearchPartners = (search, region) => {
|
|
@@ -4834,7 +4935,7 @@ var useSearchPartners = (search, region) => {
|
|
|
4834
4935
|
skip: search.length < 3,
|
|
4835
4936
|
variables: { region, search }
|
|
4836
4937
|
});
|
|
4837
|
-
const partnersSearch = data?.partnersSearch;
|
|
4938
|
+
const partnersSearch = data?.partnersSearch || [];
|
|
4838
4939
|
return { error, loading, partnersSearch, refetch };
|
|
4839
4940
|
};
|
|
4840
4941
|
|
|
@@ -4969,7 +5070,7 @@ var contactDetailsSchema = yup.object({
|
|
|
4969
5070
|
(value) => !value || landlineRegex.test(value)
|
|
4970
5071
|
// skip empty values
|
|
4971
5072
|
)
|
|
4972
|
-
}).nullable().
|
|
5073
|
+
}).nullable().default(void 0);
|
|
4973
5074
|
var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
|
|
4974
5075
|
const now = dayjs2();
|
|
4975
5076
|
return value ? dayjs2(value, dateFormat, true).isSameOrAfter(now, "day") : false;
|
|
@@ -5086,7 +5187,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
5086
5187
|
description: yup.string().label("Description").trim().min(3).required("Description is required"),
|
|
5087
5188
|
name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
|
|
5088
5189
|
region: yup.string().label("Region").required("Region is required"),
|
|
5089
|
-
socialMedia: yup.array().of(socialMediaSchema).nullable().
|
|
5190
|
+
socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),
|
|
5090
5191
|
associates: yup.array().of(
|
|
5091
5192
|
yup.object().shape({
|
|
5092
5193
|
email: emailRequiredSchema,
|
|
@@ -5098,7 +5199,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
5098
5199
|
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
5099
5200
|
})
|
|
5100
5201
|
})
|
|
5101
|
-
).nullable().
|
|
5202
|
+
).nullable().default(null)
|
|
5102
5203
|
});
|
|
5103
5204
|
var categorySchema = yup.array().of(
|
|
5104
5205
|
yup.object().shape({
|
|
@@ -5192,8 +5293,7 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
5192
5293
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
5193
5294
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
5194
5295
|
multiLocation: yup3.boolean().required("Multi location is required"),
|
|
5195
|
-
products: yup3.array().of(vendroMenuSchema).
|
|
5196
|
-
specialties: yup3.array().of(vendroMenuSchema).optional().nullable(),
|
|
5296
|
+
products: yup3.array().of(vendroMenuSchema).nullable().default(null),
|
|
5197
5297
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
5198
5298
|
});
|
|
5199
5299
|
var vendorInfoSchema = yup3.object().shape({
|
|
@@ -5549,6 +5649,7 @@ function useVendorForm(data) {
|
|
|
5549
5649
|
associates,
|
|
5550
5650
|
availability,
|
|
5551
5651
|
categories,
|
|
5652
|
+
contactDetails,
|
|
5552
5653
|
cover,
|
|
5553
5654
|
coverUpload,
|
|
5554
5655
|
foodTruck,
|
|
@@ -5576,6 +5677,7 @@ function useVendorForm(data) {
|
|
|
5576
5677
|
associates,
|
|
5577
5678
|
availability,
|
|
5578
5679
|
categories,
|
|
5680
|
+
contactDetails,
|
|
5579
5681
|
cover,
|
|
5580
5682
|
coverUpload,
|
|
5581
5683
|
description,
|
|
@@ -5703,6 +5805,7 @@ function useEventForm(data) {
|
|
|
5703
5805
|
_id,
|
|
5704
5806
|
active,
|
|
5705
5807
|
associates,
|
|
5808
|
+
contactDetails,
|
|
5706
5809
|
cover,
|
|
5707
5810
|
coverUpload,
|
|
5708
5811
|
dateTime,
|
|
@@ -5730,6 +5833,7 @@ function useEventForm(data) {
|
|
|
5730
5833
|
_id,
|
|
5731
5834
|
active,
|
|
5732
5835
|
associates,
|
|
5836
|
+
contactDetails,
|
|
5733
5837
|
cover,
|
|
5734
5838
|
coverUpload,
|
|
5735
5839
|
dateTime,
|
|
@@ -6377,6 +6481,7 @@ function usePartnerForm(data) {
|
|
|
6377
6481
|
_id,
|
|
6378
6482
|
active,
|
|
6379
6483
|
associates,
|
|
6484
|
+
contactDetails,
|
|
6380
6485
|
cover,
|
|
6381
6486
|
coverUpload,
|
|
6382
6487
|
description,
|
|
@@ -6400,6 +6505,7 @@ function usePartnerForm(data) {
|
|
|
6400
6505
|
_id,
|
|
6401
6506
|
active,
|
|
6402
6507
|
associates,
|
|
6508
|
+
contactDetails,
|
|
6403
6509
|
cover,
|
|
6404
6510
|
coverUpload,
|
|
6405
6511
|
description,
|